setany(1M) — ADMINISTRATOR COMMANDS
NAME
setany - program to retrieve and set variables in an SNMP entity
SYNOPSIS
setany entity_addr community_name [variable name −<i/o/d/a/c/g/t> value] ...
DESCRIPTION
setany does a GET request to get the current values of the variables to be set, then performs a SET request on the variables. The arguments are the entity name or address in internet dot notation, the community name for access to the SNMP entity, and a triplet for each variable to be set consisting of: the variable name in dot notation, an i, o, d, a, c, g, or t preceeded by a dash to indicate if the variable’s value is being given as an integer, an octet string (in hex notation), an object identifier (in dot notation), an IP address (in dot notation), a counter, a gauge, or time-ticks, followed by the value. For example:
setany 128.169.1.1 suranet0 "ifAdminStatus.2" -i 3
to set the adminstrative status of interface 2 to 3 (down).
The actions that take place during a SET request are that a GET request is issued for the variable. The variable name returned from this request is used in the SET request.
SEE ALSO
getmany(1M), getone(1M), getnext(1M)
RFC 1155, RFC 1156, RFC 1157