Enabling SNMP Traps
To enable SNMP traps, you must:
- Setup the destination host. Use separate commands for SNMPv1 or SNMPv2c and SNMPv3 to setup the destination host.
- Enable the SNMP traps to be sent.
To setup the destination host for SNMPv1 or SNMPv2c, use the command:
CLI (network-admin@switch) > snmp-trap-sink-create community community-string [type TRAP_TYPE_V1_TRAP|TRAP_TYPE_V2C_TRAP|TRAP_TYPE_V2_INFORM] dest-host dest-host-string [dest-port dest-port-number]
community community-string |
Specify the community type. |
[type TRAP_TYPE_V1_TRAP|TRAP_TYPE_V2C_TRAP|TRAP_TYPE_V2_INFORM] |
Specify the trap type. The default trap is: TRAP_TYPE_V2C_TRAP. |
dest-host dest-host-string |
Specify the destination host. |
[dest-port dest-port-number] |
Specify the destination port. The default port number is 162. |
For example, to create a community test1, with destination host as lyra10.pluribusnetworks.com and trap type as TRAP_TYPE_V1_TRAP, use the command:
CLI (network-admin@switch) > snmp-trap-sink-create community test1 dest-host lyra10.pluribusnetworks.com type TRAP_TYPE_V1_TRAP
This command sends the SNMPv1 traps to a receiver on the host lyra10 with the community string test1.
To setup the destination host for SNMPv3 trap receiver, use the command:
CLI (network-admin@switch) > snmp-v3-trap-sink-create user-name user-name-string [type TRAP_TYPE_V3_TRAP|TRAP_TYPE_V3_INFORM] dest-host dest-host-string [dest-port dest-port-number]
user-name user-name-string |
Specify the user name for the SNMPv3 trap. |
[type TRAP_TYPE_V3_TRAP|TRAP_TYPE_V3_INFORM] |
Specify the SNMPv3 trap type. |
dest-host dest-host-string |
Specify the destination host. |
[dest-port dest-port-number] |
Specify the destination port number. The default port number is 162 |
For example, to configure SNMPv3 traps for a user: test2, destination host as lyra10.pluribusnetworks.com and with authentication enabled, use the command:
CLI (network-admin@switch) > snmp-v3-trap-sink-create user-name test2 dest-host lyra10.pluribusnetworks.com auth
This command configures the traps to be sent to lyra10 with the username test2, engine id 0xABCDEF and with authentication enabled. You will be prompted for an authentication password with this command.
After configuring the destination, you must enable the type of traps to be sent using the command:
CLI (network-admin@switch) > snmp-trap-enable-modify
Specify one or more of the following options: |
|
link-up-down|no-link-up-down |
Specify the port link state as up or down. |
interface-up-down|no-interface-up-down |
Specify the vrouter interface status. |
default-monitors|no-default-monitors |
Specify the default monitoring. |
physical-sensors|no-physical-sensors |
Specify the temperature, fan speed. |
low-disk-space|no-low-disk-space |
Specify the allowed low disk space. |
low-disk-space-threshold low-disk-space-threshold-string |
Specify the Threshold value of low-disk-space in %. |
system-usage|no-system-usage |
Specify the Memory and CPU usage. |
high-system-usage-threshold high-system-usage-threshold-string |
Specify the Threshold value of system-usage in %. |
login-failure|no-login-failure |
Specify failure on Incorrect passwords during login. |
cluster-tr-diverge|no-cluster-tr-diverge |
Specify when the cluster transaction lists have diverged. |
lacp-status|no-lacp-status |
Specify the LACP status. |
vport-modified|no-vport-modified |
Specify when vPort modification happens. |
stp-port-modified|no-stp-port-modified |
Specify when STP port is modified. |
mirror-to-cpu|no-mirror-to-cpu |
Specify when Mirror to CPU configured. |
stp-port-state-failed|no-stp-port-state-failed |
Specify when STP Port State Failed. |
link-congestion-detected|no-link-congestion-detected |
Specify when Congestion detected at port. |
fabric-node-state-changed|no-fabric-node-state-changed |
Specify when Fabric Node State Changed. |
stp-new-root|no-stp-new-root |
Specify when New STP Root Detected. |
stp-topology-changed|no-stp-topology-changed |
Specify when STP Topology Changed |
vrrp-new-master|no-vrrp-new-master |
Specify when VRRP Master Change. |
disable-start-stop|no-disable-start-stop |
Specify when Disable Start/Stop Traps. |
cert-expiry|no-cert-expiry |
Specify whether to monitor the expiry of the Netvisor ONE certificates ( shipped with the switches) or not. |
The above command enables the notifications to be sent out when a link changes the state to up or down.
Further, You can enable to collect system log messages and SNMP trap notifications for the following events when:
- Physical Interface is Up/Down
- Data/vRouter Interface is Up/Down
- CPU usage is higher than 70%
- Memory Utilization is higher than 70%
- Disk Utilization is when higher than 70%
- STP port is modified
- vPort is modified
- LAG/vLAG status changes
- Mirror to CPU vFlow is configured