Skip to main content

system snmp traphost add

Contributors
Suggest changes

Add a new traphost

Availability: This command is available to cluster administrators at the admin privilege level.

Description

Adds the SNMP manager who receives the SNMP trap PDUs. The SNMP manager can be a hostname or IP address. There is no limit on the number of traphosts supported.

Parameters

-peer-address <Remote InetAddress> - Remote IP Address

Specifies the IP address or hostname of the traphost. If the USM user is associated, then the SNMPv3 traps are generated for this traphost using the associated USM user's authentication and privacy credentials. If no USM user is associated, then the SNMP v1/v2c traps are generated for this traphost. For the SNMP v1/v2c traps, the default community string is 'public', when no community is defined. When the community strings are defined, then the first community string is chosen for the SNMP v1/v2c traps.

[-usm-username <text>] - USM User Name

Specifies a predefined SNMPv3 USM user. The SNMPv3 traps are generated using this USM user's authentication and privacy credentials for the traphost identified by the peer-address parameter.

Examples

In the following example, the command adds a hostname 'yyy.example.com' for the SNMPv3 traps: +

cluster1::> system snmp traphost add -peer-address yyy.example.com -usm-username MyUsmUser
cluster1::> system snmp traphost show
                  yyy.example.com(yyy.example.com)(192.168.xxx.xxx)    USM User: MyUsmUser

In the following example, the command adds a hostname 'xxx.example.com' for the SNMP v1/v2c traps: +

cluster1::> system snmp traphost add xxx.example.com
cluster1::> system snmp traphost show
                  yyy.example.com(yyy.example.com)(192.168.xxx.xxx)    USM User: MyUsmUser
                  xxx.example.com(xxx.example.com)(xxx.xxx.xxx.xxx)    Community: public