snmpset mib

To set the value of the MIB object through SNMP agent, use the command snmpset mib in Global Configuration Mode.

snmpset mib

snmpset mib { {name } { <name string (32)> } { value } { <value string (32)> } { | oid } { <oid string (32)> } { value } { <value string (32)>} } { [short] } { [input } { <input value>] }

Parameters

Parameter Type Description
name   Enter to set the MIB object name.
<name string (32)> String Enter an MIB object name. This is a string value with maximum size of 32.
value   Enter set the value for the MIB object.
<value string (32)> String Enter a value for the MIB object.This is a string value with maximum size of 32.
oid   Enter to set the MIB object identifier
<oid string (32)> String Enter an MIB object identifier. This is a string value with maximum size of 32.
value   Enter set the value for the MIB object.
<value string (32)> String Enter a value for the MIB object identifier. This is a string value with maximum size of 32.
short   Enter to display the value of the MIB object.
input   Enter to set the specified data type for the MIB object.
<input value> String Enter data type for the MIB object. The data types are
  • i—sets the integer value for the MIB object.
  • s—sets the string value for the MIB object.
  • o—sets the Octet string value for the MIB object.
  • x—sets the hexa string value for the MIB object.

Mode

Global Configuration Mode

Examples

iS5Comm (config)# snmpset mib name snmpListenTcpPort.0 value 145 short 1