1 .\" /***********************************************************
2 .\" Copyright 1988, 1989 by Carnegie Mellon University
4 .\" All Rights Reserved
6 .\" Permission to use, copy, modify, and distribute this software and its
7 .\" documentation for any purpose and without fee is hereby granted,
8 .\" provided that the above copyright notice appear in all copies and that
9 .\" both that copyright notice and this permission notice appear in
10 .\" supporting documentation, and that the name of CMU not be
11 .\" used in advertising or publicity pertaining to distribution of the
12 .\" software without specific, written prior permission.
14 .\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 .\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 .\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 .\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 .\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 .\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21 .\" ******************************************************************/
22 .TH SNMPSET 1 "08 Feb 2002" VVERSIONINFO "Net-SNMP"
25 snmpset - communicates with a network entity using SNMP SET Requests.
28 [COMMON OPTIONS] OID TYPE VALUE [OID TYPE VALUE]...
31 is an SNMP application that uses the SNMP SET request to set
32 information on a network entity. One or more object identifiers
33 (OIDs) must be given as arguments on the command line. A type and a
34 value to be set must accompany each object identifier. Each variable
35 name is given in the format specified in
40 is a single character, one of:
75 If you have the proper MIB file loaded, you can, in most cases, replace the
76 type with an '=' sign. For an object of type OCTET STRING this will assume
77 a string like the 's' type notation. For other types it will do "The
82 snmpset -c private -v 1 test-hub system.sysContact.0 s dpz@noc.rutgers.edu ip.ipforwarding.0 = 2
84 will set the variables sysContact.0 and ipForwarding.0:
86 system.sysContact.0 = STRING: "dpz@noc.rutgers.edu"
88 ip.ipForwarding.0 = INTEGER: not-forwarding(2)
90 If the network entity has an error processing the request packet, an
91 error packet will be returned and a message will be shown, helping to
92 pinpoint in what way the request was malformed.
95 takes the common options described in the
99 snmpcmd(1), variables(5).