home *** CD-ROM | disk | FTP | other *** search
- %
- % $Header: snmpnext.tex,v 3.0 91/05/17 16:16:11 jrd Rel $
- % Author: J. Davin
- % Copyright 1988, 1989, Massachusetts Institute of Technology
- %
-
- \newpage
- \subsection{The Snmpnext Command}
-
- The snmpnext command attempts to retrieve and display
- specified subtrees of the MIB.
- It is coded to run in a BSD 4.3 UNIX environment.
-
- The code for the snmpnext command illustrates the use of the
- Development Kit to accelerate development
- of network management applications as well as the
- use of the SNMP protocol {\it next} operation.
-
- Sources for the snmpnext command reside in the
- \verb"snmpnext" subdirectory of the Development Kit
- distribution hierarchy.
-
- It is invoked with the syntax:
-
- {\bf snmpnext} [{\bf -h} {\it remoteHost}] [{\bf -p} {\it remotePort}]
- [{\bf -c} {\it communityName}]
- [{\bf -t} {\it timeout}]
- [{\bf -i} {\it requestId}]
- [{\it name} ] $\ldots$
-
- If the {\bf -h} flag is present, then the program
- will send its management request
- to the IP address specified as {\it remoteHost.}
-
- If the {\bf -p} flag is present, then the program
- will send its management request
- to the UDP port specified as {\it remotePort,}
- instead of that assigned to the ``snmp'' service
- in the \verb"/etc/services" database.
-
- If the {\bf -c} flag is present, then the program
- will generate and accept management requests
- associated with the community name specified as {\it communityName,}
- instead of using the community name ``public.''
-
- If the {\bf -i} flag is present, then the program
- will identify its first management request by
- the number specified as {\it requestId,}
- instead of using the value zero.
-
- If the {\bf -t} flag is present, then the program
- will terminate after the number of seconds
- specified as {\it timeout,}
- instead of waiting forever for a response from the
- remote agent.
-
- For example, the command
-
- snmpnext -h anyhost 1.3.6.1.2.1.4.21.1
-
- has the effect of retrieving the IP routing table
- for the host named {\it anyhost.} The command
-
- snmpnext -h anyhost 1.3.6.1.2.1.5
-
- has the effect of retrieving the all ICMP
- protocol statistics for the host named {\it anyhost.}
-
-