Technical data

Configuring SNMP
13.6 Solving SNMP Problems
To obtain trace log messages interactively, follow these steps:
1. Shut down SNMP. Enter:
$ @SYS$STARTUP:TCPIP$SNMP_SHUTDOWN
2. From separate windows, run the master agent and subagents interactively.
For example, run each image by entering the following commands in separate
windows:
$ MCR TCPIP$ESNMP_SERVER -T
$ MCR TCPIP$OS_MIBS -TRACE
$ MCR TCPIP$HR_MIB -TRACE
To specify custom subagents located in directories other than SYS$SYSTEM,
use the MCR command and specify the full directory path. For example,
to run the Chess example subagent with trace logging, enter the following
command:
$ MCR SYS$COMMON:[SYSHLP.EXAMPLES.TCPIP.SNMP]TCPIP$CHESS_SUBAGENT -TRACE
When agents are run interactively, output comes to the terminal unless the
SNMP_GEN_LOGFILE option is enabled.
Running in trace mode can produce a great deal of output, and also slow down
performance significantly. Programs like browsers may need to allow a longer
timeout interval under these circumstance. For example, use the
-w
with the
supplied MIB browser.
For more information about the MIB browser supplied with TCP/IP Services, and
on using tracing with custom subagents, see the Compaq TCP/IP Services for
OpenVMS SNMP Programming and Reference guide.
The type of trace data written depends on the way the subagent routines are
programmed, except for logging handled within eSNMP API routines. For more
details, see the Chess example code.
13.6.5 Processing Set Requests and Traps
To make sure that the master agent processes SNMP
Set
requests from
management clients correctly, follow these steps:
1. Configure SNMP to allow the master agent to process
Set
requests, either by
using the TCPIP$CONFIG.COM configuration procedure or by using the SET
CONFIGURATION SNMP command.
2. Make sure that the management client is configured correctly for
Get
and
Set
requests, as described in the Compaq TCP/IP Services for OpenVMS SNMP
Programming and Reference guide.
3. Configure write communities as needed on the OpenVMS server. Refer to
Section 13.6.5.2.2 for more information.
4. Make sure that the requested MIB variable is defined with write access and
implemented as such in the subagent. Refer to the Compaq TCP/IP Services
for OpenVMS SNMP Programming and Reference guide for more information.
If SNMP is not responding to
Set
requests after you follow these steps, refer to
Section 13.6.6 for troubleshooting procedures and Section 13.6.5.2.2 to check the
community configuration information.
Configuring SNMP 13–23