snmp-trap-enable-modify
This command is used to enable SNMP notifications about link conditions and common system errors.
Syntax snmp-trap-enable-modify
Specify one or more of the following options: |
|
link-up-down|no-link-up-down |
Specify if you want to send SNMP traps based on port status. |
interface-up-down|no-interface-up-down |
Specify if you want to send SNMP traps for vRouter interface status. |
default-monitors|no-default-monitors |
Specify the monitor to apply to the trap. |
physical-sensors|no-physical-sensors |
Specify to send traps about physical sensors. |
low-disk-space|no-low-disk-space |
Specify to send traps about low disk space. |
low-disk-space-threshold low-disk-space-threshold-string |
Specify a low disk space threshold as a percentage. |
system-usage|no-system-usage |
Specify to send traps about memory and CPU usage. |
high-system-usage-threshold high-system-usage-threshold-string |
Specify a high system usage threshold as a percentage. |
login-failure|no-login-failure |
Specify to send traps about login failures. |
cluster-tr-diverge|no-cluster-tr-diverge |
Specify to send traps when cluster transactions lists diverge. |
lacp-status|no-lacp-status |
Specify to send traps about LACP status. |
vport-modified|no-vport-modified |
Specify to send traps about vPort modifications. |
stp-port-modified|no-stp-port-modified |
Specify to send traps about STP port modifications. |
mirror-to-cpu|no-mirror-to-cpu |
Specify to send traps about mirror to CPU status. |
stp-port-state-failed|no-stp-port-state-failed |
Specify to send traps if the STP port status is failed. |
link-congestion-detected|no-link-congestion-detected |
Specify to send traps when link congestion is detected. |
fabric-node-state-changed|no-fabric-node-state-changed |
Specify to send traps when the fabric node state changes. |
stp-new-root|no-stp-new-root |
Specify to send traps when a new STP root is detected.. |
stp-topology-changed|no-stp-topology-changed |
Specify to send traps when STP changes are detected. |
vrrp-new-master|no-vrrp-new-master |
Specify to send traps when a new V RRP master is detected. |
disable-start-stop |
Specify if you want to disable coldstart and notifyshutdown traps. |
Defaults None
Access CLI
History
Version 2.0 |
Command introduced. |
Version 2.3 |
The parameters, physical-sensors, low-disk-space, system-usage, and login-failure, added. |
Version 2.4.1 |
The parameters, lacp-status, vport-modified, stp-port-modified, mirror-to-cpu, and stp-port-state-failed, added. |
Version 2.5 |
The parameters, link-congestion- and fabric-node-state- added. |
Version 2.6.2 |
The parameters, stp-new-root, stp-err-disabled, and vrrp-new master, added. |
Version 3.0.0 |
New parameters, disable-start-stop and interface-up-down, added. The parameter, stp-err-disable, changed to stp-topology-changed. |
Version 5.1.0 |
The parameter, cluster-tr-diverge|no-cluster-tr-diverge, added. |
Usage Use this command to use link status for notifications.
Examples To use link status as the notification, use the following command:
CLI network-admin@switch > snmp-trap-enable-modify link-up-down
snmp-trap-enable-show
This command is used to display information about SNMP traps.
Syntax snmp-trap-enable-show
Defaults None
Access CLI
History Command introduced in nvOS Version 2.0.
Usage Use this command to display information about SNMP traps.
Examples To display SNMP trap information, use the following command:
CLI network-admin@switch > snmp-trap-enable-show
switch: Spine-1
link-up-down: no
default-monitors: no
switch: Spine-2
link-up-down: no
default-monitors: no
switch: Spine-3
link-up-down: no
default-monitors: no
snmp-trap-sink-create
This command is used to specify a SNMPv1 trap receiver for SNMP traps.
Syntax snmp-trap-sink-create
community community-string |
Specify the community name to send traps. |
type TRAP_TYPE_V1_TRAP|TRAP_TYPE_V2C_TRAP|TRAP_TYPE_V2_INFORM |
Specify the type of SNMP trap. |
dest-host dest-host-string |
Specify the destination host. |
dest-port dest-port-number |
Specify the destination port. The default port is 162. |
Defaults None
Access CLI
History
Version 2.0 |
Command introduced. |
Version 2.4 |
The options, TRAP_TYPE_V3_TRAP|TRAP_TYPE_V3_INFORM deprecated. |
Usage Use this command to send SNMP traps to a receiver. You can configure up to two receivers.
Examples To send TRAP_TYPE_V1_TRAP, from community string, snmp-group, to the destination, trap-recvr, on port 43, use the following command:
CLI network-admin@switch > snmp-trap-sink-create community snmp-group trap TRAP_TYPE_V1_TRAP dest-host trap-recvr dest-port 43
snmp-trap-sink-delete
This command is used to delete a SNMPv1 trap receiver for SNMP traps.
Syntax snmp-trap-sink-delete
community community-string |
Specify the community name to send traps. |
type TRAP_TYPE_V1_TRAP|TRAP_TYPE_V2C_TRAP|TRAP_TYPE_V2_INFORM |
Specify the type of SNMP trap. |
dest-host dest-host-string |
Specify the destination host. |
dest-port dest-port-number |
Specify the destination port. The default port is 162. |
Defaults None
Access CLI
History Command introduced in nvOS Version 2.0.
Usage Use this command to delete an SNMP receiver.
Examples To delete community string, snmp-group, and the destination, trap-recvr, on port 43, use the following command:
CLI network-admin@switch > snmp-trap-sink-delete community snmp-group dest-host snmp-recvr dest-port 43
snmp-trap-sink-show
This command is used to display infomation about a SNMPv1 trap receiver for SNMP traps.
Syntax snmp-trap-sink-show
community community-string |
Specify the community name to send traps. |
type TRAP_TYPE_V1_TRAP|TRAP_TYPE_V2C_TRAP|TRAP_TYPE_V2_INFORM |
Specify the type of SNMP trap. |
dest-host dest-host-string |
Specify the destination host. |
dest-port dest-port-number |
Specify the destination port. The default port is 162. |
Defaults None
Access CLI
History
Version 2.0 |
Command introduced. |
Version 2.4 |
The options, TRAP_TYPE_V3_TRAP|TRAP_TYPE_V3_INFORM deprecated. |
Usage Use this command to display information about an SNMP receiver.
Examples To modify the destination port to 53 for community string, snmp-group, and the destination host, trap-recvr,, use the following command:
CLI network-admin@switch > snmp-trap-sink-show community snmp-group