Configuration aliases allow associating a name with a set of name+value pairs that can be used for configuring session parameters or specifying such parameters to SNMP request functions. Aliases are defined using the session alias
command.
% snmpcmd alias
% snmpcmd alias name ?option value ...?
% snmpcmd alias name list
snmpcmd
name
option value
list
Option/value pairs can either be specified in a single list argument or as separate arguments. Specying an empty list deletes the alias.
% set alias [snmplib alias myhost -remoteaddress 192.168.0.2 -community mycommunity] myhost % $session configure -alias $alias % $session next -alias $alias 0.0