This is a convenience class for doing repeated GETNEXT requests when reading in a
table.
Constructor
var request = new SnmpWalk( context );
Properties
There are no SnmpList properties accessible to JavaScript.
Methods
Return Value | Name | Description |
String | get( int index ) | Returns the element at the specified position in the list. |
String | getIndex( int index ) | Returns the instance OID as a suffix of the requested OID. For example, if the requested OID is '1.3.6.1.2.1.1' and the instance OID for an entry is '1.3.6.1.2.1.1.1.2', then getIndex on that entry would return '2'. |
boolean | isEmpty() | Returns true if the list contains no elements. |
int | size() | Returns the number of elements in the list. |
List<String> | walk( String oid ) | Performs GETNEXT requests with the specified OID until the response OID is no longer under the specified OID. Returns the complete list of results. |
Sample usage
var request = new SnmpWalk( context ); var list = request.walk( “1.2.3.4.5” );