The
setany(1Msnmp)
command is used to modify the values of variables. Its basic syntax is:
setanynode community variable type value
The legal
values for the type argument
are given in
``setany type values'',
along with their corresponding
object types. For a complete
explanation of these types, refer to
RFC 1155.
setany type values
Object type
setany type arguments
Integer
-i
Octet string
-o
Object identifier
-d
IP address
-a
Counter
-c
Gauge
-g
Time_ticks
-t
Display string
-s
Null
-n
The following
shows an example of using setany to alter the
status of an interface. The status is checked before and
after the change to verify that the change took place correctly.
Changing the status from 1 to 2 marks the interface as ``down'':