hasnmp - start the VCS SNMP agent
hasnmp -display
hasnmp -modify trap_list -add key value...
hasnmp -modify trap_list -update key value
hasnmp -modify trap_list -delete value...
hasnmp -modify trap_list -delete -keys
hasnmp -modify enabled {0|1}
hasnmp -modify IP_addr value
hasnmp -trap [-global] trap_number trap_message
VRTSvcs
The hasnmp command sends out an SNMP v1 trap to a management console. The default values for the SNMP attributes in the system can be displayed and modified.
-display Display the default values of the SNMP attributes in the system. -modify trap_list -add key value... Add totrap_list the trap values specified by the keys, and their generic definitions specified by value. For example, the following command adds two traps to the list of seven traps:
# hasnmp -modify trap_list -add 8 "User defined trap" 9 "Another new trap"
-modify trap_list -update key value Update the trap definition specified by the value for the trap number specified by key. For example:
# hasnmp -modify trap_list -update 8 "trap 8 is being redefined"
-modify trap_list -delete value... Delete from trap_list the trap values specified by the value. In this case, value indicates the trap numbers. For example, the following command deletes traps 8 and 9:
# hasnmp -modify trap_list -delete 8 9
-modify trap_list -delete -keys Delete all the traps in trap_list. -modify enabled {0|1} Set the value of the attribute enabled to 0 or 1. -modify IP_addr value Set the value of the attribute IP_addr to value. -trap [-global] trap_number trap_message The trap_number corresponds to a trap defined in the trap_list. The trap_message is a string that contains additional information about the trap being sent. The default trap description is not overwritten. If hasnmp is used with the -global option, the message is routed to all systems, and only one of the systems generates the SNMP trap. Otherwise, the message is sent from the system where this command is called.
For example, the following command generates a trap from the system on which the message is typed:
# hasnmp -trap 8 "I am sending a local trap"
The following command is sent from the system having the lowest number in the configuration. VCS determines the lowest number in the cluster. This feature prevents multiple instances of the same trap from being sent out.
# hasnmp -trap -global 8 "I am sending a global trap"
hares(1M)
Copyright (c) 2008 Symantec.
All rights reserved.
VCS 5.1 | HASNMP (1M) |