SNMP Commands
Use these commands to configure Simple Network Management Protocol (SNMP) on the switch.
You can configure the switch to act as an SNMP agent so that it can communicate with SNMP managers on your network.
snmp-server
M4250
M4350
This command sets the name and the physical location of the switch and the organization responsible for the network. The range for the name, loc and con parameters is from 1 to 31 alphanumeric characters.
| Default | none |
| Format | snmp-server {sysname name | location loc | contact con} |
| Mode | Global Config |
snmp-server engineid local
M4250
M4350
This command changes the SNMPv3 engine ID on the switch. By default, the SNMP engine ID is based on the MAC address of the switch.
| Default | default |
| Format | snmp-server engineid local {engineid-string | default} |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| engineid-string | The custom SNMPv3 engine ID (from 6 to 32 characters). |
| default | The SNMPv3 engine ID is based on the MAC address of the switch. |
no snmp-server engineid local
This command removes a custom SNMP engine ID.
| Format | no snmp-server engineid local |
| Mode | Global Config |
snmp-server community
M4250
M4350
This command adds (and names) a new SNMPv1 or SNMPv2 community. A community name is associated with the switch and with a set of SNMP managers that manage the community with a specified privilege level. Community names in the SNMP community table must be unique. If multiple entries are made using the same community name, the first entry is kept and processed and all duplicate entries are ignored.
| Format | snmp-server community community-string [ipaddress {ipaddress [ipmask] | prefix/prefix-length}] [ro | rw | su] [view view-name] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| community-string | The name (from 1 to 30 characters) of the new community. |
| ro | The community receives read-only privileges, which lets a user view but not change any object values. |
| rw | The community receives read and write privileges, which lets a user both view and change all object values. |
| su | The community receives super user (administrator) privileges, which lets a user configure the switch. |
| view-name | The name of the view (from 1 to 30 characters) to which the community is limited. |
|
ipaddress ipaddress |
The IPv4 address from which the community is allowed access. The SNMP community sends SNMP packets from this address. The address along with the client IP mask value denotes a range of IP addresses from which SNMP clients can use the community to access the device. A value of 0.0.0.0 allows access from any IP address. Otherwise, this value is ANDed with the mask to determine the range of allowed client IP addresses. |
| ipmask | The optional client IP mask for an SNMP community. The SNMP community sends SNMP packets from an address with this client IP mask. The address along with the client IP mask value denotes a range of IP addresses from which SNMP clients can use the community to access the device. A value of 255.255.255.255 allows access from only one computer and specifies that computer’s IP address as the client IP address. A value of 0.0.0.0 allows access from any IP address. |
|
ipaddress prefix/prefix-length |
The IPv6 address from which the community is allowed access. The SNMP community sends SNMP packets from this address. |
no snmp-server community
This command removes an SNMPv1 or SNMPv2 community that you specify by entering the community string.
| Format | no snmp-server community community-string |
| Mode | Global Config |
snmp-server community-group
M4250
M4350
This command configures a community access string to permit access through the SNMPv1 and SNMPv2 protocols.
| Format | snmp-server community-group community-string group-name [ipaddress ipaddress] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| community-string | The name of the community access string (from 1 to 20 characters) that becomes associated with the community group. |
| group-name | The name of the community group (from 1 to 30 characters) with which the community access string must be associated. |
| ipaddress | The IPv4 or IPv6 address from which the community group is allowed access. |
no snmp-server community-group
This command removes a community access string.
| Format | no snmp-server community-group community-string |
| Mode | Global Config |
snmp-server host
M4250
M4350
This command configures an SNMPv1 or SNMPv2 host to which the switch can send traps.
| Default | No host |
| Format | snmp-server host {ipaddr | ipv6addr | hostname} {informs [timeout seconds] [retries retries] | traps version {1 | 2}} community-string [udp-port port] [filter filter-name] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| ipaddr, ipv6addr, or hostname | The IPv4 or IPv6 address or name of the host. |
| informs | The switch sends SNMPv2 informs to the host. (The switch sends either informs or traps.) |
| seconds | The period in seconds (from 1 to 300 seconds) that the switch waits for an acknowledgement before it sends the inform again. The default is 15 seconds. |
| retries | The number of times (from 0 to 255) that the switch attempts to send the same inform. The default is 3 attempts. |
| traps | The switch sends traps to the host. (The switch sends either traps or informs.) |
| 1 | The switch sends SNMPv1 traps. |
| 2 | The switch sends SNMPv2c traps. |
| community-string | The community string (from 1 to 20 characters) that is sent as part of the notification. |
| port | The SNMP trap receiver port. By default, the port number is 162, but you can specify another port number. |
| filter-name | The filter name (from 1 to 30 characters) that is associated with the host. (You can use a filter to specify which traps are sent to the host.) |
no snmp-server host
This command removes the traps or informs configuration for an SNMP host.
For information about the parameters, see the snmp-server host command.
| Format | no snmp-server host {ipaddr | ipv6addr | hostname} {traps version {1 | 2} | informs} |
| Mode | Global Config |
snmp-server v3-host
M4250
M4350
This command configures an SNMPv3 host to which the switch can send traps.
| Default | No host |
| Format | snmp-server v3-host {ipaddr | ipv6addr | hostname} username {traps {auth | priv} | informs {auth | priv} [timeout seconds] [retries retries]} [udpport port] [filter filtername] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| ipaddr, ipv6addr, or hostname | The IPv4 or IPv6 address or name of the host. |
| username | The name of the user (from 1 to 30 characters). The user must be associated with a group that supports SNMPv3 and the access method that you configure for this command. |
| traps | The switch sends traps to the host. (The switch sends either traps or informs.) |
| informs | The switch sends informs to the host. (The switch sends either informs or traps.) |
| seconds | The period in seconds (from 1 to 300 seconds) that the switch waits for an acknowledgement before it sends the inform again. The default is 15 seconds. |
| retries | The number of times (from 0 to 255) that the switch attempts to send the same inform. The default is 3 attempts. |
| auth | Authentication is required but encryption is not required. |
| noauth | Neither authentication nor encryption is required (This is the default setting.) |
| priv | Both authentication and encryption are required. |
| port | The SNMPv3 trap receiver port. By default, the port number is 162, but you can specify another port number. |
| filter-name | The filter name (from 1 to 30 characters) that is associated with the host. (You can use a filter to specify which traps are sent to the host.) |
no snmp-server v3-host
This command removes the traps or informs configuration for an SNMPv3 host.
For information about the parameters, see the snmp-server v3-host command.
| Format | no snmp-server v3-host {ipaddr | ipv6addr | hostname} {traps | informs} |
| Mode | Global Config |
snmp-server group
M4250
M4350
This command creates a custom SNMP access group.
| Default | No custom groups, but generic groups exist for all SNMP versions and privileges. |
| Format | snmp-server group group-name {v1 | v2 | v3 {auth | priv}} [notify notify-view] [read read-view] [write write-view] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| group-name | The group name (from 1 to 30 characters). |
| v1 | This group is allowed access to SNMPv1 only. |
| v2 | This group is allowed access to SNMPv2c only. |
| v3 | This group is allowed access to SNMPv3 only. |
| auth | The group is allowed access to SNMPv3 only and only when authentication is enabled but encryption is disabled. |
| priv | The group is allowed access to SNMPv3 only and only when both authentication and encryption are enabled. |
| read-view | The name of the view (from 1 to 30 characters) that the group can access during GET requests. |
| write-view | The name of the view (from 1 to 30 characters) that the group can access during SET requests. |
| notify-view | The name of the view (from 1 to 30 characters) that the group can access when traps are sent. |
no snmp-server group
This command removes an SNMP access group.
For information about the parameters, see the snmp-server group command.
| Format | no snmp-server group group-name {v1 | v2 | v3 {auth | priv}} |
| Mode | Global Config |
snmp-server user
M4250
M4350
This command creates an SNMPv3 user that can access the switch.
| Default | No default user |
| Format | snmp-server user username groupname [remote {engineid-string | address {ipaddr | ipv6addr | hostname}}] [auth-sha512 authentication-password | auth-sha512-key sha512-key] {[priv-aes128 encryption-password | priv-aes128-key aes128-key]} |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| username | The name (from 1 to 30 characters) of the SNMPv3 user. |
| groupname | The group name (from 1 to 30 characters) of which the SNMPv3 user is a member. |
| engineid-string | The engine-id (from 6 to 32 characters) of the remote management station that this user will be connecting from. |
| ipaddr, ipv6addr, or hostname | The IPv4 or IPv6 address or name of the remote management station that this user will be connecting from. |
| auth-sha512 | Indicates that you must enter a password on the basis of which the switch can generate an SHA-512 key for authentication. |
| authentication-password | The actual password (from 1 to 32 characters) that lets the switch automatically generate an SHA-512 key for authentication. |
| auth-sha512-key | Indicates that you must enter (or copy) the SHA-512 key for authentication. |
| sha512-key | The actual SHA-512 key for authentication. The key can be up to 128 characters. If you do not enter a key, the switch automatically generates a key. |
| priv-aes128 | Indicates that you must enter a password on the basis of which the switch can generate an AES-128 HMAC-MD5-96 key for encryption. |
| encryption-password | The actual password (from 1 to 32 characters) that lets the switch automatically generate an AES-128 HMAC-MD5-96 key for encryption. |
| priv-aes128-key | Indicates that you must enter (or copy) the AES-128 HMAC-MD5-96 key for encryption. |
| aes128-key | The actual AES-128 HMAC-MD5-96 key for encryption. The key can be up to 128 characters. If you do not enter a key, the switch automatically generates a key. |
Command example:
(NETGEAR Switch)(Config)#snmp-server user test grp1 auth-sha512 priv-aes128
Enter Authentication Password:********
Confirm Authentication Password:********
Enter Encryption Password:********
Confirm Encryption Password:********
Command example:
(NETGEAR Switch)(Config)#snmp-server user test DefaultWrite auth-sha512-key
6991313bb623241c8f6f967fa28dff0265b4b57dfd07301be41024a791df01f412d1ad8bd8cde6ae6d66da7
61987657afe36efd788d021012564cf8ed2718351 priv-aes128-key
6991313bb623241c8f6f967fa28dff0265b4b57dfd07301be41024a791df01f412d1ad8bd8cde6ae6d66da7
61987657afe36efd788d021012564cf8ed2718351
no snmp-server user
This command removes an SNMPv3 user.
| Format | no snmp-server user username |
| Mode | Global Config |
snmp-server enable traps
M4250
M4350
This command enables the Authentication Flag.
| Default | enabled |
| Format | snmp-server enable traps |
| Mode | Global Config |
no snmp-server enable traps
This command disables the Authentication Flag.
| Format | no snmp-server enable traps |
| Mode | Global Config |
snmp-server enable traps violation
M4250
M4350
This command enables the switch to send violation traps. The switch sends a violation trap if it receives a packet with a disallowed MAC address on a locked port.
| Default | disabled |
| Format | snmp-server enable traps violation |
| Mode | Global Config |
no snmp-server enable traps violation
This command prevents the switch from sending violation traps.
| Format | no snmp-server enable traps violation |
| Mode | Global Config |
snmp-server enable traps linkmode
M4250
M4350
This command enables Link Up/Down traps for the entire switch. If enabled, the switch sends link traps only if the Link Trap flag setting that is associated with a port is enabled. For more information, see snmp trap link-status.
| Default | enabled |
| Format | snmp-server enable traps linkmode |
| Mode | Global Config |
no snmp-server enable traps linkmode
This command disables Link Up/Down traps for the entire switch.
| Format | no snmp-server enable traps linkmode |
| Mode | Global Config |
snmp-server enable traps multiusers
M4250
M4350
This command enables multiple user traps. If the traps are enabled, the switch sends a multiple user trap if a user logs in to the terminal interface (EIA 232 or Telnet) while an existing terminal interface session is already established.
| Default | enabled |
| Format | snmp-server enable traps multiusers |
| Mode | Global Config |
no snmp-server enable traps multiusers
This command disables multiple user traps.
| Format | no snmp-server enable traps multiusers |
| Mode | Global Config |
snmp-server enable traps stpmode
M4250
M4350
This command enables the switch to send new root traps and topology change notification traps.
| Default | enabled |
| Format | snmp-server enable traps stpmode |
| Mode | Global Config |
no snmp-server enable traps stpmode
This command prevents the switch from sending new root traps and topology change notification traps.
| Format | no snmp-server enable traps stpmode |
| Mode | Global Config |
snmp-server enable traps mac-notification change
M4250
M4350
This command enables MAC notification traps or informs to be sent to the SNMP server. MAC notification traps are sent only when they are enabled on an interface using the snmp trap mac-notification change command when the snmp-server enable traps mac-notification change command is enabled.
| Default | disabled |
| Format | snmp-server enable traps mac-notification change |
| Mode | Global Config |
no snmp-server enable traps mac-notification change
This command disables MAC notification traps or informs to be sent to the SNMP server.
| Format | no snmp-server enable traps mac-notification change |
| Mode | Global Config |
snmp-server enable traps captive-portal
M4250
M4350
This command enables captive portal traps or informs to be sent to the SNMP server. The specific captive portal traps are configured using the trapflags command in Captive Portal Config mode.
| Default | disabled |
| Format | snmp-server enable traps captive-portal |
| Mode | Global Config |
no snmp-server enable traps captive-portal
This command disables captive portal traps or informs to be sent to the SNMP server.
| Format | no snmp-server enable traps captive-portal |
| Mode | Global Config |
show mac-address-table notification change
M4250
M4350
This command displays the MAC notification configuration and contents of the MAC notification history table. If you specify an interface, the command displays the status of SNMP trap for MAC notification for that interface.
To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | show mac-address-table notification change [interface unit/slot/port] |
| Mode | Privileged EXEC |
snmp-server filter
M4250
M4350
This command creates a filter entry that lets you limit which traps are sent to a host.
| Default | No filter entries |
| Format | snmp-server filter filtername oid-tree {included | excluded} |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| filtername | The name for the filter (from 1 to 30 characters). |
| oid-tree | The OID subtree that must be included in or excluded from the filter. You can specify a subtree by numericals (for example, 1.3.6.2.4), keywords (for example, system). You can also use asterisks to specify a subtree family (for example, 1.3.*.4). |
| included | The subtree must be included in the filter. |
| excluded | The subtree must be excluded from the filter. |
no snmp-server filter
This command removes a filter that you must specify. In addition, you can also specify a subtree.
| Format | no snmp-server filter filtername [oid-tree] |
| Mode | Global Config |
snmp-server view
M4250
M4350
This command creates a new view or modifies an existing view that an SNMP group can use to determine which objects can be accessed by a community or user.
| Default | The switch automatically creates default view for default groups. |
| Format | snmp-server view viewname oid-tree {included | excluded} |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| viewname | The name for the view (from 1 to 30 characters). |
| oid-tree | The OID subtree that must be included in or excluded from the view. You can specify a subtree by numericals (for example, 1.3.6.2.4), keywords (for example, system). You can also use asterisks to specify a subtree family (for example, 1.3.*.4). |
| included | The subtree must be included in the view. |
| excluded | The subtree must be excluded from the view. |
no snmp-server view
This command removes a view that you must specify. In addition, you can also specify a subtree.
| Format | no snmp-server view viewname [oid-tree] |
| Mode | Global Config |
snmp-server port
M4250
M4350
This command modifies the port that the switch uses to detect SNMP messages. By default, the switch uses UDP port 161 to detect SNMP messages.
| Default | 161 |
| Format | snmp-server port number |
| Mode | Privileged EXEC |
no snmp-server port
This command resets the port that the switch uses to detect SNMP messages. After you enter this command, the switch uses UDP port 161 to detect SNMP messages.
| Format | no snmp-server port |
| Mode | Privileged EXEC |
snmp-server trapsend
M4250
M4350
Use this command to set the UDP port to which traps are sent by the SNMP server.
| Default | 50505 |
| Format | snmp-server trapsend number |
| Mode | Privileged EXEC |
no snmp-server trapsend
Use this command to reset the UDP port to which traps are sent by the SNMP server to the default port of 50505.
| Format | no snmp-server trapsend |
| Mode | Privileged EXEC |
snmptrap source-interface
M4250
M4350
This command configures the global source interface (that is, the source IP address) for all SNMP communication between the SNMP client and the server.
To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | snmptrap source-interface {unit/slot/port | loopback loopback-id | serviceport | vlan vlan-id} |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| unit/slot/port | The unit identifier that is assigned to the switch. |
| loopback-id | The loopback interface that you want to use as the source IP address. The range of the loopback ID is from 0 to 7. |
| serviceport | The service port IP address is used. |
| vlan-id | The VLAN interface that you want to use as the source IP address. The range of the VLAN ID is from 1 to 4093. |
no snmptrap source-interface
This command removes the global source interface for all SNMP communication between the SNMP client and the server.
| Format | no snmptrap source-interface |
| Mode | Global Config |
snmp trap link-status
M4250
M4350
This command enables link status traps for an interface or for all interfaces.
| Format | snmp trap link-status |
| Mode | Interface Config |
no snmp trap link-status
This command disables link status traps for an interface.
| Format | no snmp trap link-status |
| Mode | Interface Config |
snmp trap link-status all
M4250
M4350
This command enables link status traps for all interfaces.
| Format | snmp trap link-status all |
| Mode | Global Config |
no snmp trap link-status all
This command disables link status traps for all interfaces.
| Format | no snmp trap link-status all |
| Mode | Global Config |
snmp trap mac-notification change
M4250
M4350
This command enables MAC notification traps to be sent for an interface.
The added keyword causes a trap to be sent when an interface is added. The removed keyword causes a trap to be sent when an interface is removed. You can configure both keywords, one after the other.
| Format | snmp trap mac-notification change [added | removed] |
| Mode | Interface Config |
no snmp trap mac-notification change
This command disables MAC notification traps to be sent for an interface.
The added keyword stops a trap from being sent when an interface is added. The removed keyword stops a trap from being sent when an interface is removed. You can configure both keywords, one after the other.
| Format | no snmp trap mac-notification change [added | removed] |
| Mode | Interface Config |
show snmp-server
M4250
M4350
This command shows the UDP port to which the SNMP server is connected and on which the switch sends SNMP traps.
| Format | show snmp-server |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch)#show snmp-server
SNMP Server Port............................... 161
SNMP Trap Send Port............................ 162
show snmp engineID
M4250
M4350
This command displays the configured SNMP engine ID.
| Format | show snmp engineID |
| Mode | Privileged EXEC |
show snmp
M4250
M4350
This command displays the SNMP configuration on the switch.
| Format | show snmp |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Community tables | |
| Community-String | The community string for the entry. The community string is used by the SNMPv1 and SNMPv2 protocols to access the switch. |
| Community-Access | The privilege level: Read only, Read write, or su (which means super user). |
| View Name | The name of the view to which the community receives access. |
| IP Address | The IP address from which access to the community is allowed. |
| IP Mask | The IP mask associated with the IP address. |
| Community Group tables | |
| Community-String | The community string for the entry. The community string is used by the SNMPv1 and SNMPv2 protocols to access the switch. |
| Group Name | The group to which the community is assigned. |
| IP Address | The IP address from which the group can access the community. |
| IP Mask | The IP mask associated with the IP address. |
| Host table for SNMPv1 and SNMPv2 | |
| Target Address | The IP address of the host to which SNMPv1 or SNMPv2 traps or informs are sent. |
| Type | The type of SNMPv1 or SNMPv2 messages that are sent (either traps or informs). |
| Community | The community to which the SNMPv1 or SNMPv2 messages are sent. |
| Version | The SNMP version (SNMPv1 or SNMPv2) of the messages. |
| UDP Port | The number of the UDP port to which the SNMPv1 or SNMPv2 messages are sent. |
| Filter Name | The name of the filter that limits the SNMPv1 or SNMPv2 messages for the host. |
| TO sec | The period in seconds before SNMPv1 or SNMPv2 inform messages time out. |
| Retries | The number of times that the switch attempts to send the same SNMPv1 or SNMPv2 inform message. |
| Host table for SNMPv3 | |
| Target Address | The IP address of the host to which SNMPv3 traps or informs are sent. |
| Type | The type of SNMPv3 messages that are sent (either traps or informs). |
| User Name | The name of the SNMPv3 user to which access is granted. |
| Security Level | The privilege level that is assigned to the SNMPv3 user. |
| UDP Port | The number of the UDP port to which the SNMPv3 messages are sent. |
| Filter Name | The name of the filter that limits the SNMPv3 messages for the host. |
| TO sec | The period in seconds before SNMPv3 inform messages time out. |
| Retries | The number of times that the switch attempts to send the same SNMPv3 inform message. |
show snmp filters
M4250
M4350
This command displays either all filters that are used when SNMP messages are sent or a specific filter that you must enter.
| Format | show snmp filters [filtername] |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Name | The name of the filter. |
| OID Tree | The name of the OID subtree. |
| Type | Shows if the OID tree is included in or excluded from the filter. |
show snmp group
M4250
M4350
This command displays either all SNMP groups or a specific SNMP group that you must enter.
| Format | show snmp group [groupname] |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Name | The name of the group. |
| Context Prefix | The name of the context that is associated with the group. |
| Security Model | The protocol that can access the switch through the group. |
| Security Level | The security level that is allowed for the group. |
| Views Read | The view that this group provides read-access to. |
| Views Write | The view that this group provides write-access to. |
| Views Notify | The view that this group provides trap-access to. |
show snmp user
M4250
M4350
This command displays either all SNMPv3 users or a specific SNMPv3 user that you must enter.
| Format | show snmp user [username] |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Name | The name of the user. |
| Group Name | The name of the group to which the user is assigned and that defines the SNMPv3 settings. |
| Auth Meth | The authentication method for the user. |
| Priv Meth | The encryption method for the user. |
| Remote Engine ID | The SNMP engine ID for the user device. |
show snmp views
M4250
M4350
This command displays either all SNMP views or a specific SNMP view that you must enter.
| Format | show snmp views [viewname] |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Name | The name of the view. |
| OID Tree | The name of the OID subtree. |
| Type | Shows if the OID tree is included in or excluded from the view. |
show trapflags (M4250 series switch)
M4250
This command displays the trap conditions. The command output shows all enabled trap flags.
| Format | show trapflags |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Authentication Flag | Indicates if an authentication failure trap is sent. By default, the flag is enabled. |
| Link Up/Down Flag | Indicates if a link status trap is sent. By default, the flag is enabled. |
| Multiple Users Flag | Indicates if a trap is sent when the same user ID is logged into the switch more than once at the same time (either through Telnet or the serial port). By default, the flag is enabled. |
| Spanning Tree Flag | Indicates if a spanning tree trap is sent. By default, the flag is enabled. |
| ACL Traps | Indicates if an ACL trap is sent. By default, the flag is disabled. |
| PIM Traps | Indicates if a PIM trap is sent. By default, the flag is disabled. |
| Captive Portal Flag | Indicates if a captive portal trap is sent. By default, the flag is disabled. |
| Power Supply Module state trap | Indicates if a power supply mode state trap is sent. By default, the flag is enabled. |
| Temperature trap | Indicates if a temperature trap is sent. By default, the flag is enabled. |
| Fan trap | Indicates if a fan trap is sent. By default, the flag is enabled. |
| MAC Notification trap flag | Indicates if a MAC notification trap is sent. By default, the flag is disabled. |
show trapflags (M4350 series switch)
M4350
This command displays the trap conditions. The command output shows all enabled trap flags.
| Format | show trapflags |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Authentication Flag | Indicates if an authentication failure trap is sent. By default, the flag is enabled. |
| Link Up/Down Flag | Indicates if a link status trap is sent. By default, the flag is enabled. |
| Multiple Users Flag | Indicates if a trap is sent when the same user ID is logged into the switch more than once at the same time (either through Telnet or the serial port). By default, the flag is enabled. |
| Spanning Tree Flag | Indicates if a spanning tree trap is sent. By default, the flag is enabled. |
| ACL Traps | Indicates if an ACL trap is sent. By default, the flag is disabled. |
| DVMRP Traps | Indicates if a DVMRP trap is sent. By default, the flag is disabled. |
| OSPFv2 Traps | Indicates if an OSPFv2 trap is sent. By default, the flag is disabled. If any of the OSPFv2 trap flags are disabled, the command displays “disabled.” Otherwise, the command shows the information for all enabled OSPFv2 traps. |
| PIM Traps | Indicates if a PIM trap is sent. By default, the flag is disabled. |
| OSPFv3 Traps | Indicates if an OSPFv3 trap is sent. By default, the flag is disabled. If any of the OSPFv3 trap flags are disabled, the command displays “disabled.” Otherwise, the command shows the information for all enabled OSPFv3 traps. |
| Captive Portal Flag | Indicates if a captive portal trap is sent. By default, the flag is disabled. |
| Power Supply Module state trap | Indicates if a power supply mode state trap is sent. By default, the flag is enabled. |
| Temperature trap | Indicates if a temperature trap is sent. By default, the flag is enabled. |
| Fan trap | Indicates if a fan trap is sent. By default, the flag is enabled. |
| VRRP Traps | Indicates if a VRRP trap is sent. By default, the flag is enabled. |
| MAC Notification trap flag | Indicates if a MAC notification trap is sent. By default, the flag is disabled. |