Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/snmpset.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/snmpset.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/snmpset.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/snmpset.html on line 8

snmpset

Communicate with a network entity using SNMP SET requests

Syntax:

snmpset [-d] [-p port] [-r retry] [-t timeout] -v 1 
        host community variable_name type value
        [variable_name type value]

snmpset [-d] [-p port] [-r retry] [-t timeout] [-v 2]
        host noAuth variable_name type value
        [variable_name type value]

snmpset [-d] [-p port] [-r retry] [-t timeout] [-v 2]
        host scrparty dstparty context variable_name type value
        [variable_name type value]

Runs on:

Neutrino

Options:

-d
Dump input and output packets.
-p port
Specify the destination port number.
-r retry
Specify the number of retries.
-t timeout
Specify timeout (in seconds).
-v 1|2
SNMP version (default is 2).
community
The community name for the transaction with the remote system.
context
The collection of object resources that can be set by the dstparty.
dstparty
The name of the party performing the action.
host
An Internet address specified in dot notation or a hostname.
srcparty
The name of the party requesting an action.
type
The data type where type is one of the following:
a
IPADDRESS
d
DECIMAL STRING
i
INTEGER
n
NULLOBJ
o
OBJID
s
STRING
t
TIMETICKS
x
HEX STRING
value
The data value.
variable_name
The variable name in the format specified in the file mib.txt.

Description:

The snmpset utility uses the SET request to set information about a network entity. You can specify one or more fully qualified object identifiers in the format specified in the file mib.txt.

If you're using SNMP version 2, the following files must be configured:

For a description on how to configure the files please see the file page for each of the configuration files listed above. If you wish to change the location of your configuration files, you must include a snmpd.conf file.

Examples:

Set the variable sysContact.0 to John Doe:

Using SNMPv1

snmpset -v 1 netdev-kbox.cc.cmu.edu public system.sysContact.0 s "John Doe"

Using SNMPv2

snmpset netdev-kbox.cc.cmu.edu manager_party agent_party agent_context
  system.sysContact.0 s "John Doe"

The output is similar to:

system.sysContact.0 = "John Doe"

Environment variables:

MIBFILE
Specify the location of the mib.txt file. For example, MIBFILE=path/mib.txt (the default path is /etc).
SUFFIX
If SUFFIX exists in your environment, all object IDs with a symbolic name are printed with only the last element. Examples:

This ID:

system.syscontact.0
      

is printed as:

syscontact.0
      

This ID:

udp.udpTable.udpEntry.udpLocalAddress.0.0.0.161
      

is printed as:

udpLocalAddress.0.0.0.161
      

Errors:

If the network entity has an error processing the request packet, an error packet is returned and snmpset displays a message to help pinpoint how the request was malformed.

See also:

snmpd, snmpget, snmpgetnext, snmpnetstat, snmpstatus, snmptest, snmptranslate, snmptrap, snmptrapd, snmpwalk

/etc/acl.conf file, /etc/context.conf file, /etc/mib.txt file, /etc/party.conf file, /etc/snmpd.conf file, /etc/view.conf file

Based on ISO 8824 (ASN.1), RFC 1065, RFC 1066, RFC 1067,
RFC 1441, RFC 1445, RFC 1446
RFC 1448, RFC 1449

Marshall T. Rose, The Simple Book: An Introduction to Internet Management, Revised 2nd ed. (Prentice-Hall, 1996, ISBN 0-13-451659-1)


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/snmpset.html on line 320

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/snmpset.html on line 320