1SNMPSET(1)                         Net-SNMP                         SNMPSET(1)
2
3
4

NAME

6       snmpset - communicates with a network entity using SNMP SET requests
7

SYNOPSIS

9       snmpset [COMMON OPTIONS] AGENT OID TYPE VALUE [OID TYPE VALUE]...
10

DESCRIPTION

12       snmpset  is  an  SNMP application that uses the SNMP SET request to set
13       information on a network entity.  One or more object identifiers (OIDs)
14       must  be given as arguments on the command line.  A type and a value to
15       be set must accompany each object identifier.  Each  variable  name  is
16       given in the format specified in variables(5).
17
18       The TYPE is a single character, one of:
19              i  INTEGER
20              u  UNSIGNED
21              s  STRING
22              x  HEX STRING
23              d  DECIMAL STRING
24              n  NULLOBJ
25              o  OBJID
26              t  TIMETICKS
27              a  IPADDRESS
28              b  BITS
29       Most of these will use the obvious corresponding ASN.1 type.  's', 'x',
30       'd' and 'b' are all different ways of specifying an OCTET STRING value,
31       and the 'u' unsigned type is also used for handling Gauge32 values.
32
33       If you have the proper MIB file loaded, you can, in most cases, replace
34       the type with an '=' sign. For an object of type OCTET STRING this will
35       assume  a string like the 's' type notation. For other types it will do
36       "The Right Thing".
37
38       For example:
39
40       snmpset -c private -v 1  test-hub  system.sysContact.0  s  dpz@noc.rut‐
41       gers.edu ip.ipforwarding.0 = 2
42
43       will set the variables sysContact.0 and ipForwarding.0:
44
45       system.sysContact.0 = STRING: "dpz@noc.rutgers.edu"
46       ip.ipForwarding.0 = INTEGER: not-forwarding(2)
47
48       If  the  network  entity has an error processing the request packet, an
49       error packet will be returned and a message will be shown,  helping  to
50       pinpoint in what way the request was malformed.
51

OPTIONS

53       snmpset  takes  the  common  options described in the snmpcmd(1) manual
54       page.  Note that snmpset REQUIRES  an argument specifying the agent  to
55       query and at least one set of OID/type/value arguments, as described in
56       there.
57

SEE ALSO

59       snmpcmd(1), variables(5).
60
61
62
63V5.9                              19 Jun 2003                       SNMPSET(1)
Impressum