DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Configuring the Simple Network Management Protocol (SNMP)

Getting the next OID variable

The getnext(ADMN) command is used to retrieve the value of the variable that is lexically next to the given OID. The argument variable_name may be expressed either in dot-notation format or using an object name. The role of variable_name is somewhat different in getnext from that in other commands; it can refer either to an object instance ifType.1 or a variable class name ifType.

The syntax is getnext node community variable.

The following shows an example of getnext:

getnext example

   # getnext paris public ifType
   

Name: ifType.1 Value: 6

# getnext paris public ifType.1

Name: ifType.2 Value: 6

# getnext paris public ifType.2

Name: ifType.3 Value: 24

# getnext paris public ifType.3

Name: ifMtu.1 Value: 1500

See also:


Next topic: Getting many variables at once
Previous topic: Getting ID variables

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003