Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getmany(1M) — DG/UX 5.4.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getone(1M)

getnext(1M)

setany(1M)

snmpd(1M)

snmpd.communities(4M)

snmpd.config(4M)



getmany(1M)                     TCP/IP 5.4.2                     getmany(1M)


NAME
       getmany - get MIB-classes from SNMP agent

SYNOPSIS
       getmany host community object ...

   where:
       host is a hostname or Internet address
       community is a community string
       object is a class name

DESCRIPTION
       Use the getmany command to retrieve classes of object instances or to
       walk the entire Management Information Base (MIB).  The command sends
       an SNMP message containing the community string and a GetNextRequest-
       PDU requesting the specified object to the agent running on host.
       The command continues to query the agent with GetNextRequest-PDUs
       until either the end of the MIB is detected or the agent returns an
       object not in the current class.

       Specify the host as either a hostname or an Internet address in dot-
       notation.

       The community string is a text string used by the agent to
       authenticate the request.  You must configure the agent to accept
       requests from the specified community for the operation to be
       successful.

       The object is specified as an object class which may be either an
       object type, object instance, or group name.  You can specify the
       object in either dot-notation representing an object identifier or as
       a text string representing an object descriptor.

EXAMPLES
       The first example shows getmany using the object class system.

       $ getmany myhost public system

       Name: sysDescr.0
       Value: DG/UX TCP/IP SNMP AGENT

       Name: sysObjectID.0
       Value: DataGeneral

       Name: sysUpTime.0
       Value: 1342175

       Name: sysContact.0
       Value: myname@myhost

       Name: sysName.0
       Value: myhost

       Name: sysLocation.0



Licensed material--property of copyright holder(s)                         1




getmany(1M)                     TCP/IP 5.4.2                     getmany(1M)


       Value: Hall 106 Office 1

       Name: sysServices.0
       Value: 72

       The second example shows how getmany could be used to retrieve the
       entire MIB.

       $ getmany myhost public iso

       Name: sysDescr.0
       Value: DG/UX TCP/IP SNMP AGENT

       Name: sysObjectID.0
       Value: DataGeneral

       .
       .
       .

       Name: udpLocalPort.0.0.0.0.1212
       Value: 1212

       Name: udpLocalPort.0.0.0.0.2049
       Value: 2049
       End of MIB.


DIAGNOSTICS
       Exit status is 0 upon success.

       Exit status is -1 if there are errors parsing the command line.

       Exit status is 1 if there is an error returned from the agent.

SEE ALSO
       getone(1M), getnext(1M), setany(1M), snmpd(1M), traprecv(1M),
       trapsend(1M), snmpd.communities(4M), snmpd.config(4M),
       snmpd.trapcommunities(4M).


















Licensed material--property of copyright holder(s)                         2


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026