.TH SNMPGET 1
.SH NAME
snmp/get, snmp/set, snmp/walk \- snmp clients
.SH SYNOPSIS
.B snmp/get
[
.B -d
] [
.B -v
.I 1|2c
] [
.B -c
.I community
] [
.B -t
.I timeout
] [
.B -r
.I retries
]
.I oid ...
.br
.B snmp/set
.I options
.I oid value ... ...
.br
.B snmp/walk
.I options
.I oid ...
.SH DESCRIPTION
.IR Snmp/get ,
.I snmp/set
and
.B snmp/walk
are command-line tools talking the SNMP protocol.
.B Snmp/get
retrieves the values for the requested object id's.
.B Snmp/set
sets new values for the specified object id's.
.B Snmp/walk
lists the object id sub trees starting at the requested object id's.

These programs output lines, each line having one object id-value pair.
.B Snmp/set
prints the pairs returned by the snmp server which are the pairs after applying the requested modifications.
Values are formatted according to their type.  The type (and separating colon) is prepended to the value.  Values must be given in the same format as arguments to
.BR snmp/set .
See
.IR snmpclient (2)
for the types.

.SS Options
.TP
.B -d
Print debugging information, a second
.B -d
enables debugging information from the snmp client library.
.TP
.BI -v " 1|2c"
Use snmp version
.I 1
or
.IR 2c .
The default is
.IR 2c .
.TP
.BI -c " community"
Use the
.I community .
The default is
.IR public .
.TP
.BI -t " timeout"
Set the timeout to
.I timeout
milliseconds.
The default is that of the snmp client library.
.TP
.BI -r " retries"
Set the number of retransmissions before giving up.
The default is that of the snmp client library.
Retransmissions can be necessary because packets may be lost due to use of UDP.
Note that some operations (e.g. non-idempotent set's) are not safe for retransmissions.  This behaviour is device-specific and thus it is the responsibility of the user to handle this correctly.
.SH EXAMPLES
.EX 
% snmp/walk laser 1.3.6.1.2.1.1
1.3.6.1.2.1.1.1.0                   S:'Samsung ML-3050 Series Series OS 1.01.01.14 05-30-2006; Engine_FW_Ver_0.1; 3N21BAJP217214H.;'
1.3.6.1.2.1.1.2.0                   oid:1.3.6.1.4.1.236.11.5.1
1.3.6.1.2.1.1.3.0                   t:976400
1.3.6.1.2.1.1.4.0                   S:mechiel@xs4all.nl
1.3.6.1.2.1.1.5.0                   S:laser
1.3.6.1.2.1.1.6.0                   S:''
1.3.6.1.2.1.1.7.0                   i:104
%
.EE
.SH SOURCE
.B appl/cmd/snmp/get.b
.br
.B appl/cmd/snmp/set.b
.br
.B appl/cmd/snmp/walk.b
.SH SEE ALSO
.IR snmpclient (2).
.SH BUGS
Only snmp version 1 and 2c are supported.
.br
Object id's must be used verbatim, SMI/MIB (for symbolic names) is not supported.
