|
|
The optional argument -f is used to specify a file containing the mosy(ADMN) and post_mosy(ADMN) compiled list of object names and their numeric Object Identifiers, in addition to the objects in the standard MIB. This allows the user to dynamically augment the number of objects that can be recognized by the management utility.
getmany retrieves the variable class by first
calling the SNMP entity with the variable class
name to get the first variable in the class. Utilizing the
GET_NEXT() capability, it then calls the entity
again using the variable name returned in the previous call
to retrieve the next variable in the class. For instance,
running the following:
getmany suzzy public ipRouteDest
will traverse the network entity's ipRouteDest variable
class. The traversal of the variable space stops when all
of the classes being polled return a variable of a class
different than what was requested.
getmany -f cisco.objects cisco_box public ltsLineTable
will traverse the cisco_box's ltsLineTable (Local Terminal Server Line Table) variable class. The file cisco.objects contains the names and the numeric Object Identifiers of all the objects in the ``cisco'' enterprise sub-tree. This file can be generated using mibcomp (see mosy(ADMN)).
Note that a network
entity's entire variable tree can be traversed with a call
of:
getmany suzzy public iso
RFC 1155 (STD 16), RFC 1156, RFC 1157 (STD 15), RFC 1213 (STD 17), RFC 1227, RFC 1231, RFC 1354, RFC 1398, RFC 1389, RFC 1471, RFC 1473