Table of Contents Index NMS Glossary Previous Page Next Page (Page 3 of 7 in this chapter) Version


snmpnext

Purpose

Demonstrates SNMP get-next.

Usage

snmpnext Address CNmsSnmpOid Options

Description

Gets the value of the next object after the provided OID, using the following parameters:

Address: The address or DNS name of the local or remote host running an SNMP agent to return information about.

NmsSnmpOid: OID of the 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, which is 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


Table of Contents Index NMS Glossary Previous Page Next Page (Page 3 of 7 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.