# snmpSet

Sets the value of a specified SNMP object.

#### Usage

snmpSet address nmssnmpoid options

where:

Parameter | Description
--- | ---
address | Address or DNS name of a local or remote host running the SNMP agent about which to return information.
nmssnmpoid | OID of an object in one of the MIBs available on the host for which you want to see information. The default is sysDescr.

Valid options include:

Option | Description
--- | ---
-v1 | Use SNMPv1 (default).
-v2 | Use SNMPv2.
-ccommunity_name | Specify a community name. The default is public.
-rn | Number of retries. The default is 1 retry.
-tn | Timeout in hundredths of a second. The default is 100 (1 second).

#### Procedure

Complete the following steps to run snmpSet:

Step | Action
1 | From the command line, navigate to the \nms\ctaccess\demos\snmp\snmpSet directory (or the /opt/nms/ctaccess/demos/snmp/snmpSet directory under UNIX).
2 | Enter the following command: snmpSet localhost 1.3.6.1.4.1.2628.2.2.4.2.0

An example of running this command to set chassBoardTrapEnable follows:

>snmpSet localhost 1.3.6.1.4.1.2628.2.2.4.2.0
>SNMP++ Set to localhost SNMPV1 Retries=1 Timeout=100ms
>CNmsSnmpOid = 1.3.6.1.4.1.2628.2.2.4.2.0
>Current Value = 2
>Value Type is Integer
>Value ?

The program asks for new value. In this example, enter 1 to enable traps.

<Value ?1
>Set Status = Success