Technical data

Commands for Retrieving the Value of WebLogic Server Attributes
Administration Guide C-51
snmpgetnext
Returns a description of the managed object that immediately follows one or more
OIDs that you specify.
Instead of the recursive listing that the
snmpwalk command provides, this command
returns the description of only the one managed object whose OID is the next in
sequence. You could string together a series of
snmpgetnext commands to achieve
the same result as the
snmpwalk command.
If you specify an object type, this command returns the first instance of the object type,
regardless of how many instances of the type exist.
To see the WebLogic Server MIB tree, refer to the WebLogic Server SNMP MIB
Reference. For information about the structure of the MIB and its object identifiers
(OIDs), refer to “SNMP MIB for WebLogic” in WebLogic SNMP Management Guide.
Syntax
java snmpgetnext [-d] [-c snmpCommunity] [-p snmpPort]
[-t timeout] [-r retries] host OID [OID]...
For information about the command arguments that are not listed in the above table,
refer to Table C-1.
Example
The following example retrieves the name of a JDBC connection pool that has been
deployed on the Administration Server. The OID in the example command is for the
jdbcConnectionPoolRuntimeName object type, which represents the Name attribute
of the
JDBCConnectionPoolRuntime MBean.
java snmpgetnext localhost .1.3.6.1.4.1.140.625.190.1.15
Argument Definition
OID [OID]... Specifies one or more object IDs. You can specify an OID for an object type
or an object instance.
Start the values with '.'; otherwise, references are assumed to be relative to the
standard MIB ( .1.3.6.1.2.1), not the WebLogic Server MIB.