Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmpset(1) [redhat man page]

SNMPSET(1)							     Net-SNMP								SNMPSET(1)

NAME
snmpset - communicates with a network entity using SNMP SET Requests. SYNOPSIS
snmpset [COMMON OPTIONS] OID TYPE VALUE [OID TYPE VALUE]... DESCRIPTION
snmpset 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 variables(5). The TYPE is a single character, one of: i INTEGER u UNSIGNED s STRING x HEX STRING d DECIMAL STRING n NULLOBJ o OBJID t TIMETICKS a IPADDRESS b BITS 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 Right Thing". For example: snmpset -c private -v 1 test-hub system.sysContact.0 s dpz@noc.rutgers.edu ip.ipforwarding.0 = 2 will set the variables sysContact.0 and ipForwarding.0: system.sysContact.0 = STRING: "dpz@noc.rutgers.edu" ip.ipForwarding.0 = INTEGER: not-forwarding(2) If the network entity has an error processing the request packet, an error packet will be returned and a message will be shown, helping to pinpoint in what way the request was malformed. OPTIONS
snmpset takes the common options described in the snmpcmd(1) manual page. SEE ALSO
snmpcmd(1), variables(5). 4th Berkeley Distribution 08 Feb 2002 SNMPSET(1)

Check Out this Related Man Page

SNMPSET(1)							     Net-SNMP								SNMPSET(1)

NAME
snmpset - communicates with a network entity using SNMP SET requests SYNOPSIS
snmpset [COMMON OPTIONS] OID TYPE VALUE [OID TYPE VALUE]... DESCRIPTION
snmpset 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 variables(5). The TYPE is a single character, one of: i INTEGER u UNSIGNED s STRING x HEX STRING d DECIMAL STRING n NULLOBJ o OBJID t TIMETICKS a IPADDRESS b BITS 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 Right Thing". For example: snmpset -c private -v 1 test-hub system.sysContact.0 s dpz@noc.rutgers.edu ip.ipforwarding.0 = 2 will set the variables sysContact.0 and ipForwarding.0: system.sysContact.0 = STRING: "dpz@noc.rutgers.edu" ip.ipForwarding.0 = INTEGER: not-forwarding(2) If the network entity has an error processing the request packet, an error packet will be returned and a message will be shown, helping to pinpoint in what way the request was malformed. OPTIONS
snmpset takes the common options described in the snmpcmd(1) manual page. SEE ALSO
snmpcmd(1), variables(5). 4th Berkeley Distribution 08 Feb 2002 SNMPSET(1)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

snmpset error message?

(1 Reply)
Discussion started by: DILEEP410
1 Replies

2. IP Networking

snmpset error message?

Hi, I am getting an error as a result of the execution of snmpset command for setting some network values.Can you please let me know the reason for this error messsage. Error in packet. Reason: noAccess With Regards Dileep Pattayath (3 Replies)
Discussion started by: DILEEP410
3 Replies

3. Infrastructure Monitoring

snmp config grab - right off Ciscos Page

I need to update my scripts. I have been using depreciated oids. I referred to the Cisco site docs and found snmpset -v 2c -c .1.3.6.1.4.1.9.9.96.1.1.1.1.2. i 1 .1.3.6.1.4.1.9.9.96.1.1.1.1.3. i 4 .1.3.6.1.4.1.9.9.96.1.1.1.1.4. i 1 .1.3.6.1.4.1.9.9.96.1.1.1.1.5. a ""... (0 Replies)
Discussion started by: popeye
0 Replies

4. Fedora

Starting out, Linux Distribution

Hi, i'm currently part of an apprenticeship becoming a IT specialist. Because I'm already an electronic technician (finished apprenticeship) I can do this one in 2 years (normally you need 3). Thing is, in school they started out with basic unix stuff (working with the shell) in the first... (3 Replies)
Discussion started by: Dr. Nick
3 Replies