JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Solaris System Management Agent Developer's Guide
search filter icon
search icon

Document Information

Preface

1.  Introduction to the System Management Agent

2.  Creating Modules

3.  Data Modeling

4.  Storing Module Data

5.  Implementing Alarms

6.  Deploying Modules

7.  Multiple Instance Modules

8.  Long-Running Data Collection

9.  Entity MIB

About the Entity MIB

SMA Entity MIB Implementation

Using the Entity MIB

How to Set Up the Agent to Use the Entity MIB

Entity MIB API

Physical Table Functions

allocPhysicalEntry()

Synopsis

Description

Returns

getPhysicalEntry()

Synopsis

Description

Returns

deletePhysicalTableEntry()

Synopsis

Description

Returns

makePhysicalTableEntryStale()

Synopsis

Description

Returns

makePhysicalTableEntryLive()

Synopsis

Description

Returns

getPhysicalStaleEntry()

Synopsis

Description

Returns

getAllChildrenFromPhysicalContainedIn()

Synopsis

Description

Returns

Physical Contains Table Functions

addPhysicalContainsTableEntry()

Synopsis

Description

Returns

deletePhysicalContainsTableEntry()

Synopsis

Description

Returns

deletePhysicalContainsParentIndex()

Synopsis

Description

Returns

deletePhysicalContainsChildIndex()

Synopsis

Description

Returns

getPhysicalContainsChildren()

Synopsis

Description

Returns

Logical Table Functions

allocLogicalEntry()

Synopsis

Description

Returns

getLogicalTableEntry()

Synopsis

Description

Returns

deleteLogicalTableEntry()

Synopsis

Description

Returns

makeLogicalTableEntryStale()

Synopsis

Description

Returns

makeLogicalTableEntryLive()

Synopsis

Description

Returns

getLogicalStaleEntry()

Synopsis

Description

Returns

LP Mapping Table Functions

addLPMappingTableEntry()

Synopsis

Description

Returns

deleteLPMappingTableEntry()

Synopsis

Description

Returns

deleteLPMappingLogicalIndex()

Synopsis

Description

Returns

deleteLPMappingPhysicalIndex()

Synopsis

Description

Returns

Alias Mapping Table Functions

addAliasMappingTableEntry()

Synopsis

Description

Returns

deleteAliasMappingTableEntry()

Synopsis

Description

Returns

deleteAliasMappingLogicalIndex()

Synopsis

Description

Returns

deleteAliasMappingPhysicalIndex()

Synopsis

Description

Returns

Header Files for Entity MIB Functions

entPhysicalEntry_t Structure

entLogicalEntry_t Structure

Tips for Using Entity MIB Functions

demo_module_11 Code Example for Entity MIB

10.  Migration of Solstice Enterprise Agents to the System Management Agent

A.  SMA Resources

B.  MIBs Implemented in SMA

Glossary

Index

Header Files for Entity MIB Functions

Data declarations and defines that are needed by the Entity MIB functions are included in header files. The following header files in /usr/demo/sma_snmp/demo_module_11 can be copied and modified for use with your own modules:

entAliasMappingTable.h
entLastChangeTime.h
entLogicalTable.h
entLPMappingTable.h
entPhysicalContainsTable.h
entPhysicalTable.h

The structures defined in entPhysicalTable.h and entLogicalTable.h are shown in the following sections.

entPhysicalEntry_t Structure

The entPhysicalTable.h header file contains the typedef for the entPhysicalEntry_t structure. This structure is representative of the entPhysicalTable columns that are defined in RFC 2737. The entPhysicalEntry_t is defined as follows:

typedef struct entPhysicalEntry_s {
    int_l entPhysicalIndex;
    char *entPhysicalDescr;
    oid *entPhysicalVendorType;
    int_l entPhysicalVendorTypeSize;
    int_l entPhysicalContainedIn;
    int_l entPhysicalClass;
    int_l entPhysicalParentRelPos;
    char *entPhysicalName;
    char *entPhysicalHardwareRev;
    char *entPhysicalFirmwareRev;
    char *entPhysicalSoftwareRev;
    char *entPhysicalSerialNum;
    char *entPhysicalMfgName;
    char *entPhysicalModelName;
    char *entPhysicalAlias;
    char *entPhysicalAssetID;
    int_l entPhysicalIsFRU;
    struct entPhysicalEntry_s *pNextEntry;
} entPhysicalEntry_t;

entLogicalEntry_t Structure

The entLogicalTable.h header file contains the typedef for the entLogicalEntry_tstructure. This structure is representative of the entLogicalTable columns that are defined in RFC 2737. The entLogicalEntry_t is defined as follows:

typedef struct entLogicalEntry_s {

   int_l   entLogicalIndex;
   char *entLogicalDescr;
   oid  *entLogicalType;
   int_l   entLogicalTypeSize;
   char *entLogicalCommunity;
   char *entLogicalTAddress;
   oid  *entLogicalTDomain; 
   int_l   entLogicalTDomainSize; 
   char *entLogicalContextEngineId;
   char *entLogicalContextName;
   struct entLogicalEntry_s* pNextEntry;

} entLogicalEntry_t;