Previous Topic: awtrap-Send an SNMP Trap PDU from one Node to AnotherNext Topic: clean_sadmin-Remove Static Data and MIBs


awwalk-Retrieve Value of Every Attribute Defined in the MIB

Valid on UNIX/Linux, Windows, z/OS

awwalk retrieves the value of every instance of every attribute that is defined in the MIB, from the specified OID through the last OID in the tree, inclusive. Walking the MIB is the equivalent of repeated calls to awnext. If you use the -o option, the attribute OID is printed followed by the OID value.

This utility is most useful for obtaining all the values of the attributes in a MIB, group, table, or column. To see the values of all subordinate OIDs, specify the top (root) OID, group OID, table OID, or the OID of the first attribute in a column.

UNIX/Linux, z/OS

Many UNIX/Linux nodes have a MIB II-compliant SNMP agent that is built into the operating system, as does z/OS. These agents are hard coded to listen for manager requests on UDP port number 161. To prevent port conflicts between the operating system agent and your agent, the SNMP Administrator defaults to listening for requests on UDP port number 6665.

Windows

install-path\services\bin

UNIX/Linux, z/OS

install-path/services/bin

z/OS JCL

&CAI.MFNSM.CAW0JCL(AWWALK)

Syntax

awwalk [-h hostname ] [-c community] [-p service] [-o] OID [-t timeout]
-h hostName\ipaddr

Host name or IP address of the node on which the agent is running.

Default: local node

-c community

Name of any valid community in the agent configuration.

To retrieve the MIB attribute value from a specific instance of an agent, postfix the community string with the @ sign, followed by the specific instance name for the agent.

Default: public, which is supported for read

-p service

Name in the /etc/services file that translates to a port number, or the number of the UDP port where the agent listens for incoming requests. This value must match the one used by the SNMP Administrator, typically 6665.

Default: 6665 for z/OS

-o OID

Object identifier of any node in the MIB for the agent where you want to begin traversing the tree.

-t timeout

Maximum time value (in seconds) this program waits for a response to an SNMP request before exiting.

Default: 10 seconds