Blame man/snmpbulkwalk.1.def

Packit Service b38f0b
.\" -*- nroff -*-
Packit Service b38f0b
.\" Portions of this file are subject to the following copyright.  See
Packit Service b38f0b
.\" the Net-SNMP COPYING file for more details and other copyrights
Packit Service b38f0b
.\" that may apply:
Packit Service b38f0b
.\" /***********************************************************
Packit Service b38f0b
.\" 	Copyright 1988, 1989 by Carnegie Mellon University
Packit Service b38f0b
.\" 
Packit Service b38f0b
.\"                       All Rights Reserved
Packit Service b38f0b
.\" 
Packit Service b38f0b
.\" Permission to use, copy, modify, and distribute this software and its 
Packit Service b38f0b
.\" documentation for any purpose and without fee is hereby granted, 
Packit Service b38f0b
.\" provided that the above copyright notice appear in all copies and that
Packit Service b38f0b
.\" both that copyright notice and this permission notice appear in 
Packit Service b38f0b
.\" supporting documentation, and that the name of CMU not be
Packit Service b38f0b
.\" used in advertising or publicity pertaining to distribution of the
Packit Service b38f0b
.\" software without specific, written prior permission.  
Packit Service b38f0b
.\" 
Packit Service b38f0b
.\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
Packit Service b38f0b
.\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
Packit Service b38f0b
.\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
Packit Service b38f0b
.\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service b38f0b
.\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
Packit Service b38f0b
.\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
Packit Service b38f0b
.\" SOFTWARE.
Packit Service b38f0b
.\" ******************************************************************/
Packit Service b38f0b
.TH SNMPBULKWALK 1 "01 May 2002" VVERSIONINFO "Net-SNMP"
Packit Service b38f0b
.SH NAME
Packit Service b38f0b
snmpbulkwalk - retrieve a subtree of management values using SNMP GETBULK requests
Packit Service b38f0b
.SH SYNOPSIS
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
[APPLICATION OPTIONS] [COMMON OPTIONS] AGENT [OID]
Packit Service b38f0b
.SH DESCRIPTION
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
is an SNMP application that uses SNMP GETBULK requests to query a
Packit Service b38f0b
network entity efficiently for a tree of information.
Packit Service b38f0b
.PP
Packit Service b38f0b
An object identifier (OID) may be given on the command line.  This OID
Packit Service b38f0b
specifies which portion of the object identifier space will be
Packit Service b38f0b
searched using GETBULK requests.  All variables in the subtree below
Packit Service b38f0b
the given OID are queried and their values presented to the user.
Packit Service b38f0b
Each variable name is given in the format specified in
Packit Service b38f0b
.IR variables(5) .
Packit Service b38f0b
If no OID argument is present,
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
will search MIB\-2.
Packit Service b38f0b
.PP
Packit Service b38f0b
If the network entity has an error processing the request packet, an
Packit Service b38f0b
error packet will be returned and a message will be shown, helping to
Packit Service b38f0b
pinpoint why the request was malformed.
Packit Service b38f0b
.PP
Packit Service b38f0b
If the tree search causes attempts to search beyond the end of the
Packit Service b38f0b
MIB, the message "End of MIB" will be displayed.
Packit Service b38f0b
.SH OPTIONS
Packit Service b38f0b
.TP 8
Packit Service b38f0b
.B \-Cc
Packit Service b38f0b
Do not check whether the returned OIDs are increasing.  Some agents
Packit Service b38f0b
(LaserJets are an example) return OIDs out of order, but can
Packit Service b38f0b
complete the walk anyway.  Other agents return OIDs that are out of
Packit Service b38f0b
order and can cause
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
to loop indefinitely.  By default,
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
tries to detect this behavior and warns you when it hits an agent
Packit Service b38f0b
acting illegally.  Use
Packit Service b38f0b
.B \-Cc
Packit Service b38f0b
to turn off this behaviour.
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-Ci
Packit Service b38f0b
Include the given OID in the search range.  Normally
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
uses GETBULK requests starting with the OID you specified and returns
Packit Service b38f0b
all results in the MIB tree after that OID.  Sometimes, you may wish
Packit Service b38f0b
to include the OID specified on the command line in the printed
Packit Service b38f0b
results if it is a valid OID in the tree itself.  This option lets you
Packit Service b38f0b
do this.
Packit Service b38f0b
.TP
Packit Service b38f0b
.BI \-Cn <NUM>
Packit Service b38f0b
Set the
Packit Service b38f0b
.I non-repeaters
Packit Service b38f0b
field in the GETBULK PDUs.  This specifies the number of supplied
Packit Service b38f0b
variables that should not be iterated over.  The default is 0.
Packit Service b38f0b
.TP
Packit Service b38f0b
.B \-Cp
Packit Service b38f0b
Upon completion of the walk, print the number of variables found.
Packit Service b38f0b
.TP
Packit Service b38f0b
.BI \-Cr <NUM>
Packit Service b38f0b
Set the
Packit Service b38f0b
.I max-repetitions
Packit Service b38f0b
field in the GETBULK PDUs.  This specifies the maximum number of
Packit Service b38f0b
iterations over the repeating variables.  The default is 10.
Packit Service b38f0b
.PP
Packit Service b38f0b
In addition to these options,
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
takes the common options described in the 
Packit Service b38f0b
.I snmpcmd(1)
Packit Service b38f0b
manual page.
Packit Service b38f0b
Note that
Packit Service b38f0b
.B snmpbulkget
Packit Service b38f0b
REQUIRES an argument specifying the agent to query
Packit Service b38f0b
and at most one OID argument, as described above.
Packit Service b38f0b
.SH EXAMPLE
Packit Service b38f0b
The command:
Packit Service b38f0b
.PP
Packit Service b38f0b
snmpbulkwalk \-v2c \-Os \-c public zeus system
Packit Service b38f0b
.PP
Packit Service b38f0b
will retrieve all of the variables under system:
Packit Service b38f0b
.PP
Packit Service b38f0b
sysDescr.0 = STRING: "SunOS zeus.net.cmu.edu 4.1.3_U1 1 sun4m"
Packit Service b38f0b
.br
Packit Service b38f0b
sysObjectID.0 = OID: enterprises.hp.nm.hpsystem.10.1.1
Packit Service b38f0b
.br
Packit Service b38f0b
sysUpTime.0 = Timeticks: (155274552) 17 days, 23:19:05
Packit Service b38f0b
.br
Packit Service b38f0b
sysContact.0 = STRING: ""
Packit Service b38f0b
.br
Packit Service b38f0b
sysName.0 = STRING: "zeus.net.cmu.edu"
Packit Service b38f0b
.br
Packit Service b38f0b
sysLocation.0 = STRING: ""
Packit Service b38f0b
.br
Packit Service b38f0b
sysServices.0 = INTEGER: 72
Packit Service b38f0b
.PP
Packit Service b38f0b
In contrast to
Packit Service b38f0b
.BR snmpwalk ,
Packit Service b38f0b
this information will typically be gathered in a single transaction
Packit Service b38f0b
with the agent, rather than one transaction per variable found.
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
is thus more efficient in terms of network utilisation, which may be
Packit Service b38f0b
especially important when retrieving large tables.
Packit Service b38f0b
.SH NOTE
Packit Service b38f0b
As the name implies,
Packit Service b38f0b
.B snmpbulkwalk
Packit Service b38f0b
utilizes the SNMP GETBULK message, which is not available in SNMP v1.
Packit Service b38f0b
.SH "SEE ALSO"
Packit Service b38f0b
snmpcmd(1), variables(5).