Download NMS SNMP Reference Manual
Transcript
NMS SNMP Reference Manual Demonstration programs snmpnext Purpose Demonstrates SNMP get-next. Retrieves the value of the next object after a specified OID. Usage snmpnext address cnmssnmpoid options Use the following parameters: Parameter Description address The address or DNS name of a local or remote host running an SNMP agent about which to return information. nmssnmpoid OID of an object in one of the MIBs available on the host for which you wish to see information. The default is sysDescr. Valid options include: Option Description -v1 Use SNMPv1 (default). -v2 Use SNMPv2. -ccommunity_name Specify a community name. The default is public. -rn Number of retries. The default is 1 retry. -tn Timeout in hundredths of a second. The default is 100 (1 second). Procedure To run snmpnext: 1. From the command line, navigate to the \nms\ctaccess\demos\snmp\snmpnext directory (or the /opt/nms/ctaccess/demos/snmp/snmpnext directory under UNIX). 2. Enter the following: snmpnext 10.1.20.46 1.3.6.1.2.1.1.1.0 An example of running this command is: >snmpnext 10.1.20.46 1.3.6.1.2.1.1.1.0 SNMP++ GetNext to 10.1.20.46 SNMPV1 Retries=1 Timeout=1000ms Community=public Oid = 1.3.6.1.2.1.1.2.0 Value = 1.3.6.1.4.1.311.1.1.3.1.1 NMS Communications 261