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".
snmpset -c private -v 1 test-hub system.sysContact.0 s email@example.com ip.ipforwarding.0 = 2
will set the variables sysContact.0 and ipForwarding.0:
system.sysContact.0 = STRING: "firstname.lastname@example.org"
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.
snmpset takes the common options described in the snmpcmd(1) manual page. Note that snmpset REQUIRES an argument specifying the agent to query and at least one set of OID/type/value arguments, as described in there.
|V5.7.3||SNMPSET (1)||19 Jun 2003|