Configure SNMP Notification Directives
You can configure a unique notification directive to instruct the SNMP agents where to send traps. Keep in mind that you can only define one notification directive for each host ID / port combination. In addition, you can define the trap community to apply to the notification directives.
Note: For a list of all the Appliance Controller commands, see the Command Index.
What Are Traps and Trap Communities?
Traps are asynchronous announcements of data changes that occur on a managed appliance. Rather than waiting for the next SNMP manager poll, the SNMP agents can send traps to notify the SNMP manager of data changes. Using the notification directive, you can define the host ID / port combination of the SNMP manager to which to send traps.
Traps are sent with the community string of a specific community. This community, which authenticates the communication, is referred to as the trap community. If you do not specify a trap community, then the default community will be used. We recommend that you do not use the well-known "public" community string.
- Log in to the Appliance Controller CLI.
- Enter:
- Enter
trapsink
to send SNMPv1 traps. - Enter
trap2sink
to send SNMPv2 traps.The StorNext SNMP agent can send only SNMPv2 traps.
- Enter
informsink
to send inform notifications.
snmp notification add (trapsink | trap2sink | informsink) <host-id> [<trapcommunity-name>] [port=<port-number>]
The parameters are:
|
Define the format to use for sending traps: |
|
Define the host ID of the SNMP manager receiving the trap, either with an IP address or fully qualified domain name. |
|
(Optional) Enter the name of the trap community to which this notification applies. See Define an SNMP Trap Community. |
|
(Optional) Define a specific port number to which to send traps. |
Example:
> snmp notification add trap2sink 10.30.162.134
- Log in to the Appliance Controller CLI.
- Enter:
snmp notification remove <host-id> [<port-number>]
The parameters are:
|
Enter the host ID assigned to the notification directive that you are deleting. |
|
(Optional) Enter the specific port number of the notification directive that you are deleting. |
- Log in to the Appliance Controller CLI.
- Enter:
snmp trapcommunity <community-name>
The parameter is:
|
Enter the name of the trap community. |