snmpNext

Retrieves the value of the next object after a specified OID.

Usage

snmpNext address cnmssnmpoid options

where:

Parameter

Description

address

Address or DNS name of a local or remote host running the SNMP agent about which to return information.

nmssnmpoid

OID of an object in one of the MIBs available on the host for which you want 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

Complete the following steps to run snmpnext:

Step

Action

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 command:

snmpNext 10.1.20.46 1.3.6.1.2.1.1.1.0

The following example shows how to run snmpnext:

>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