is an SNMP application that uses the SNMP SET request to set
information on a network entity. One or more object identifiers
(OIDs) must be given as arguments on the command line. A type and a
value to be set must accompany each object identifier. Each variable
name is given in the format specified in
is a single character, one of:
Most of these will use the obvious corresponding ASN.1 type.
‘s’, ‘x’, ‘d’ and ‘b’ are all different ways of specifying an OCTET STRING
value, and the ‘u’ unsigned type is also used for handling Gauge32 values.
If you have the proper MIB file loaded, you can, in most cases, replace the
type with an ‘=’ sign. For an object of type OCTET STRING this will assume
a string like the ‘s’ type notation. For other types it will do "The
snmpset -c private -v 1 test-hub system.sysContact.0 s [email protected] ip.ipforwarding.0 = 2
will set the variables sysContact.0 and ipForwarding.0:
system.sysContact.0 = STRING: "[email protected]"
ip.ipForwarding.0 = INTEGER: not-forwarding(2)
takes the common options described in the