Skip to main content

Adding an SNMP traphost

You can use the command line interface (CLI) to add a traphost (SNMP manager) to receive SNMP notifications (SNMP trap protocol data units) when traps are generated in the cluster.

You can specify either the host name or the IP address (IPv4 or IPv6) of the SNMP traphost. IPv6 must be enabled on the cluster if you configure SNMP traphosts that have IPv6 addresses.

Procedure

  1. Check the SNMP authtrap status by running the system snmp show command. Enter the value 1 to enable SNMP authentication failure traps.
    Note
    By default, SNMP authentication trap is disabled and the value is 0.
  2. Run the following command to set the SNMP authtrap:
    Cluster-1::> system snmp authtrap -authtrap 1
  3. Do one of the following based on your needs:
    • To add the IPv4 address of the host as traphost, run the following commands:

      Cluster-1::> system snmp traphost add -peer-address 10.0.0.1
      Cluster-1::> system snmp traphost show
      10.0.0.1 (10.0.0.1) <10.0.0.1> Community: public
    • To add the IPv6 address of the host as traphost, run the following commands:

      Cluster-1::> system snmp traphost add -peer-address 2001:0db8:1:1:209:6bff:feae:6d67
      Cluster-1::> system snmp traphost show
      10.0.0.1 (10.0.0.1) <10.0.0.1> Community: public
  4. Run the following command to add a new SNMPv3 traphost named yyy.example.com with a known USM user:
    Cluster-1::> system snmp traphost add -peer-address yyy.example.com -usm-username MyUsmUser