snmpset

communicates with a network entity using SNMP SET Requests 

Command


SYNOPSIS

snmpset [COMMON_OPTIONS] OID TYPE VALUE [OID TYPE VALUE]...


DESCRIPTION

The snmpset utility 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 snmp_variables.

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 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 = "dpz@noc.rutgers.edu"
ip.ipForwarding.0 = 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 reference page.


PORTABILITY

All UNIX systems. Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.


AVAILABILITY

PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Miscellaneous:
snmp_variables, snmpcmd


PTC MKS Toolkit 10.1 Documentation Build 15.