Using Additional SNMP commands
You can use the following additional SNMP commands to check the details of SNMP configurations and notifications on the Pluribus switches:
- snmp-trap-enable-modify — Use to enable notifications about link conditions and common system errors.
CLI (network-admin@switch) > snmp-trap-enable-modify
Specify one or more of the following options: |
|
link-up-down|no-link-up-down |
Specify if you want to enable a link for up or down trap |
interface-up-down|no-interface-up-down |
Specifies the vrouter interface status as up or down. |
default-monitors|no-default-monitors |
Specify if you want to enable a default monitoring trap. |
physical-sensors|no-physical-sensors |
Specify if you want to enable a physical sensor trap for temperature, fan speed, etc |
low-disk-space|no-low-disk-space |
Specify if you want to enable a low disk space trap. |
low-disk-space-threshold low-disk-space-threshold-string |
Specify the threshold value of low-disk space in percentage (%). |
system-usage|no-system-usage |
Specify if you want to enable a system usage trap. |
high-system-usage-threshold high-system-usage-threshold-string |
Specify if you want to enable high system usage threshold value trap in percentage (%). |
login-failure|no-login-failure |
Specify if you want to enable login failure trap. |
cluster-tr-diverge|no-cluster-tr-diverge |
Specify if the cluster transaction list have diverged or not. |
lacp-status|no-lacp-status |
Specify if you want to enable a LACP trap. |
vport-modified|no-vport-modified |
Specify if you want a enable a trap when a vPort is modified. |
stp-port-modified|no-stp-port-modified |
Specify if STP port is modified or not. |
mirror-to-cpu|no-mirror-to-cpu |
Specify whether the trap should be mirrored to CPU. |
stp-port- state-failed|no-stp-port-state-failed |
Specify if you want to enable a trap when the STP port state is failed. |
link-congestion-detected|no-link-congestion-detected |
Specify if you want to enable a trap when a link congestion state is detected. |
fabric-node-state-changed|no-fabric-node-state-changed |
Specify if you want a trap sent when a fabric node state changes. |
stp-new-root|no-stp-new-root |
Specifies if new STP root is detected. |
stp-topology-changed|no-stp-topology-changed |
Specifies if STP topology has changed or not. |
vrrp-new-master|no-vrrp-new-master |
Specifies if VRRP master has changed or not. |
disable-start-stop|no-disable-start-stop |
Specifies if the start/stop traps are disabled or not. |
- snmp-trap-enable-show — Displays enabled SNMP traps.
CLI (network-admin@switch) > snmp-trap-enable-show
The above command displays the information about the SNMP traps on the switch. Specify one or more of the formatting options to display the output in a desired format.
- snmp-trap-sink-create — Use to specify a SNMPv1 or v2 trap receiver.
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. |
- snmp-trap-sink-delete — Delete SNMP trap sinks
CLI (network-admin@switch) > snmp-trap-sink-delete community community-string dest-host dest-host-string [dest-port dest-port-number]
The above command deletes the SNMP trap sink for the specified community. For details about the command parameters, see the CLI table for snmp-trap-sink-create command.
- snmp-trap-sink-show — Display SNMP trap sinks.
CLI (network-admin@switch) > snmp-trap-sink-show 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]
The above command displays the SNMP trap sinks. Specify one or more of the formatting options to display the output in a desired format.
- snmp-v3-trap-sink-create — Use to specify a SNMPv3 trap receiver.
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. |
The above command enables you to create an SNMPv3 trap receiver.
- snmp-v3-trap-sink-delete — Use to delete a SNMPv3 trap receiver.
CLI (network-admin@switch) > snmp-v3-trap-sink-delete user-name user-name-string dest-host dest-host-string [dest-port dest-port-number]
The above command deletes the SNMPv3 trap sink for the specified user. For details about the command parameters, see the CLI table for snmp-v3-trap-sink-create command.
- snmp-v3-trap-sink-show — Used to display a SNMPv3 trap receiver.
CLI (network-admin@switch) > snmp-v3-trap-sink-show user-name user-name-string dest-host dest-host-string [dest-port dest-port-number]
The above command displays the SNMPv3 trap receivers for the specified options (see table below). Specify one or more of the formatting options to display the output in a desired format.
Specify one of or more options: |
|
user-name user-name-string |
Displays traps for the specified user name. |
engine-id engine-id-string |
Displays the traps for the specified engine ID. |
[type TRAP_TYPE_V3_TRAP|TRAP_TYPE_V3_INFORM] |
Displays the traps for th specified trap type. |
dest-host dest-host-string |
Displays the traps for the destination host. |
dest-port dest-port-number |
Displays the traps for the specified destination port. |
auth|no-auth |
Displays the authentication details. |
priv|no-priv |
Displays the privilege details. |
- port-stats-snmp-show — To display the accumulated port statistics for SNMP.
CLI (network-admin@switch) > port-stats-snmp-show port port-list port-clear-count port-clear-count-number port-clear-time #d#h#m#s port_clear_time high resolution time: #ns all-ports
port port-list |
Specifies the port number or port list. |
port-clear-count port-clear-count-number |
Specifies the number of times port-stats-clear or trunk-stats-clear commands were issued on a port or trunk. |
port-clear-time #d#h#m#s |
Specifies the time since last port-clear or trunk-clear commands were issued. It is initialized with time at nvOS_init by default. |
port_clear_time high resolution time: #ns |
Specifies the high-resolution time-stamp of the last port-stats-clear command. |
all-ports |
A flag to specify if you want to view the stats of all ports on the switch. The default view contains only enabled ports. |
- snmp-system-modify — Modify the system information for the SNMP configuration.
CLI (network-admin@switch) > snmp-system-modify syscontact syscontact-string syslocation syslocation-string
Specify one of more options: |
|
syscontact syscontact-string |
Specify or change the SNMP system contact. |
syslocation syslocation-string |
Specify or change the SNMP system location. |
The above command enables you to modify the system details such as the system contact or location for the SNMP configuration.
- snmp-system-show — Displays the system details for the SNMP configurations.
CLI (network-admin@switch) > snmp-system-show
The above command displays the changed or modified system information for the SNMP configuration. Specify one or more of the formatting options to display the output in a desired format.