Solaris WBEM Services Administration Guide

SNMP Provider

The SNMP Provider is a software component that provides information about managed elements to the CIM Object Manager, including configuration information about an SNMP device.


Note –

The SNMP Provider supports traps by listening to port 162 for SNMP V1 and SNMP V2 traps. To display the events that are generated by these traps, you must subscribe to CIM_SNMPTrapIndication.


Generating a MOF File From an SNMP MIB File

When you want to access Simple Network Management Protocol (SNMP) information through the SNMP Provider, you use a Management Information Base (MIB) file to generate a Managed Object Format (MOF) file. The mib2mof command generates qualifiers that enable the SNMP Provider to map CIM operations that are performed on the CIM classes in the MOF file to SNMP operations. The mib2mof command is described in mib2mof(1M).


Note –

The SNMP Provider supports SNMP traps. Traps are reported in the CIM process indication event CIM_SNMPTrapIndication. When a client subscribes to the provider for this event, the provider listens on port 162 for SNMP V1 and SNMP V2 traps. The information is copied from the trap to the indication. Then, the indication is delivered to the client.


The MOF files that describe the CIM Schema and the Solaris Schema are located in /usr/sadm/mof. MOF files are described in more detail in the Solaris WBEM SDK Developer's Guide.

How to Generate a MOF File From an SNMP MIB File

  1. Become superuser.

  2. Type the command:


    # mib2mof SNMP_MIB_filename
    

    Example:


    # /usr/sadm/bin/mib2mof sysctl.mib