|
|
The
setany(1Msnmp)
command is used to modify the values of variables. Its basic syntax is:
setany node 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 |
Altering interface status
# getone paris public ifAdminStatus.2Name: ifAdminStatus.2 Value: 1
# setany paris public ifAdminStatus.2 -i 2
Name: ifAdminStatus.2 Value: 2
# getone paris public ifAdminStatus.2
Name: ifAdminStatus.2 Value: 2