beautypg.com

Snmp_getnext, Snmp_getnext, sn – Visara Master Console Center Scripting Guide User Manual

Page 185

background image

Chapter 5 Script Commands

Scripting Guide

185

SNMP_GETNEXT

Syntax:

SNMP_GETNEXT( $Alias, $MIBOID, $NextMIBOID) ==> $Value

Description:

Retrieves the value and the Object ID of the next logical MIB object to

a specified MIB object.

Action:

The value of the next logical object to the object specified by the

MIBOID parameter in the MIB of the Alias is returned as a string.
Additionally, the MIB object id of the next object is returned in the

NextMIBOID parameter. In other words, given the current object id in

MIBOID, this command retrieves the next MIBOID from the specified
alias. This allows the user to “walk” the MIB.

Parameters:

$Alias. String expression. The NMS alias to get the MIB object value

from. The specified alias must not be a group alias. Refer to NMS
Alias
on page 31 for more information.
$MIBOID. String expression. The MIB object id for which to get the
value. Refer to MIB OID on page 31 for more information.
$NextMIBOID. String value. The MIB object id of the next logical
MIB object from the specified MIB object (specified by the MIBOID

parameter).

Returns:

String value, as follows:
Value

Meaning

“” (null string)

The MIB object does not exist.

Any other value

The value of the MIB object.

Notes:

1. Use the SNMP_GET() command to enter a branch of the MIB, and

the SNMP_GETNEXT() command to retrieve specific values from
that branch.

2. For error checking of SNMP_GETNEXT(), refer to the description

of the ERRORNUM() command.

Example:

Refer to the example for SNMP_GET.

See Also:

SNMP_GET, SNMP_GETTABLE, SNMP_SET, SNMP_TRAPSEND