Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
3.  Using SNMP Services for WBEM (Tasks) Configuring the Adapter and Mapping SNMP to CIM Objects Mapping Files Syntax of the Contents of a Mapping File  Previous   Contents   Next 
   
 

Installing and Using the SNMP Adapter for WBEM (Task Map)

The following table identifies the procedures that you need to follow to install, start, stop, and use the SNMP Adapter for WBEM, the Adapter.

Task

Description

For Instructions

Install the SNMP Adapter for WBEM.

Install the Adapter when you install the Solaris operating environment.

"How to Install the SNMP Adapter for WBEM"

Start the SNMP Adapter for WBEM.

Start the SNMP Adapter for WBEM by moving snmpXwbem.rsrc- into snmpXwbem.rsrc.

"How to Start the SNMP Adapter for WBEM"

Disable or stop the SNMP Adapter for WBEM.

Stop the SNMP Adapter for WBEM by using the pkill command.

"How to Disable the SNMP Adapter for WBEM"

Force the SNMP Adapter for WBEM to reread the mapping file directory.

Force the SNMP Adapter for WBEM to reread the mapping file directory by updating snmpXwbem.reg so that it includes the new subtree, and by using the pkill command.

"How to Force the SNMP Adapter for WBEM to Reread the Mapping File Directory"

Installing and Using the SNMP Adapter for WBEM

This section describes how to install, start, stop, and use the SNMP Adapter for WBEM.

How to Install the SNMP Adapter for WBEM

  • Install the Solaris operating environment on your system.

    The Adapter software is installed on your system along with the Solaris software.

How to Start the SNMP Adapter for WBEM

When you are ready to retrieve data from the CIM Object Manager through your SNMP application, follow these steps to start the Adapter.

  1. Become superuser.

  2. Stop the Master Agent.

    # /etc/init.d/init.snmpdx stop

  3. Change directory to /etc/snmp/conf.

  4. Move snmpXwbem.rsrc- into the Adapter resource file.

    # mv snmpXwbem.rsrc- snmpXwbem.rsrc

  5. Restart the Master Agent.

    # /etc/init.d/init.snmpdx start

How to Disable the SNMP Adapter for WBEM

When you are finished retrieving data from the CIM Object Manager or to modify a file in /etc/snmp/conf, you need to disable the Adapter. Follow these steps.

  1. Become superuser.

  2. Stop the Master Agent.

    # /etc/init.d/init.snmpdx stop

  3. Stop the Adapter.

    # /usr/bin/pkill -9 -x -u 0 snmpXwbemd

  4. Change directory to /etc/snmp/conf.

  5. Temporarily rename snmpXwbem.rsrc.

    # mv snmpXwbem.rsrc snmpXwbem.rsrc-

  6. Restart the Master Agent.

    # /etc/init.d/init.snmpdx start

How to Force the SNMP Adapter for WBEM to Reread the Mapping File Directory

After you place a new mapping file or update an existing mapping file in /var/sadm/wbem/snmp/map, you must signal the Adapter to reread all mapping files in the directory. You specify the signal SIGHUP to signal the Adapter.

Follow these steps to force the Adapter to reread all mapping files (without having to restart the CIM Object Manager).

  1. Become superuser.

  2. Does a new mapping file or a new entry in a mapping file reference a subtree that is not registered by the Adapter?

    • If yes, go to the next step.

    • If no, go to Step 5.

  3. Update /etc/snmp/conf/snmpXwbem.reg so that it includes the new subtree.

  4. Stop and restart the Master Agent.

    # /etc/init.d/init.snmpdx stop

    # /etc/init.d/init.snmpdx start

  5. Signal the Adapter that you have updated a mapping file.

    # /usr/bin/pkill -1 -x -u 0 snmpXwbemd

Troubleshooting Problems With the SNMP Adapter for WBEM

This section lists specific console error messages that you might encounter when using the Adapter.

If you encounter errors, problems, or unexpected results that are not described in this section or if you want to troubleshoot problems more precisely, use the Solaris Management Console Log Viewer to view log data.

Instructions that describe how to start the Solaris Management Console Log Viewer are presented in "Viewing Log Data Through Log Viewer".

Sending and Receiving Requests

Error Message

ERROR: sending request to Adapter Service.
ERROR: receiving request from Adapter Service.

Cause

Either snmpXwbemd believes WBEM is enabled but cannot communicate with the Adapter Service, or the request timed out.

 
 
 
  Previous   Contents   Next