HP SNMP/XL User's Guide (36922-90036)
30 Chapter3
Using SNMPUTIL
SNMPCONTROL User Defined Command
SNMPCONTROL User Defined Command
The SNMPCONTROL command allows you to control the HP SNMP/XL
subsystem. This command allows you to start and stop the subsystem
manually, enable the internal trace facility, gather version information,
obtain the current status of the subsystem, enter the help facility, dump
the internal data structures to a flat-ascii file, and update the
subsystem configuration.
To facilitate access to the SNMPCONTROL command, the
SNMPUDC.NET.SYS must be enabled for those users who require access.
This is accomplished by using the SETCATALOG command as follows:
SETCATALOG SNMPUDC.NET.SYS;SYSTEM.
Before the initial SETCATALOG you must make sure the TZ variable is
properly set for your local time zone by adding the following set of lines
to SNMPUDC.NET.SYS after the setvar opt ups(“!cmd”):
if (not(bound(TZ))) then
setvar TZ “timezonevariable”
endif
See Appendix D , “Time Zones,” for a list of commonly used time zones
and the TZ environment variable strings that correspond to them.
You must also have NM capability to issue the SNMPCONTROL command.
NOTE
Three clock parameters must be set to the correct value for the
SNMPCONTROL STATUS command to display the correct time. They
are the “hardware” clock, set vial CLKUTIL, the system start up clock,
and the SNMPCONTROL time zone variable TZ. CLKUTIL must be set
at the ISL prompt using Greenwich Mean Time (GMT). SNMP uses
GMT to print out the time, therefore if the “hardware” clock is not set or
set inaccurately the SNMPCONTROL STATUS will report the
incorrect time.
It should be noted that the CLKUTIL is linked to the system start up
clock, and when the CLKUTIL clock is changed the system start up
clock will change accordingly. The system start up clock is set by the
user when prompted by the console at start up. However, if the system
start up clock is changed during bookup, the CLKUTIL clock is not
affected. To verify that the correct time is set, ensure that the time
shown by SHOWTIME (displays system start up clock) and
SNMPCONTROL STATUS display match whenever a time change is
made.