DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
137
27-3
snmp-server enable traps port-security
This command is used to enable sending SNMP notifications for port security address violation. Use the no
form of the command to disable sending SNMP notifications.
snmp-server enable traps port-security [trap-rate
TRAP-RATE
]
no snmp-server enable traps port-security [trap-rate]
Parameters
trap-rate
TRAP-RATE
(Optional) Specifies the number of traps per second. The range is
from 0 to 1000. The default value ("0") indicates an SNMP trap to
be generated for every security violation.
Default
By default, this option is disabled.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
Use this command to enable or disable SNMP notifications for port security address violation, and configure
the number of traps per second.
Example
This example shows how to enable sending trap for port security address violation and set the number of traps
per second to 3.
Switch# configure terminal
Switch(config)# snmp-server enable traps port-security
Switch(config)#
27-4
switchport port-security
This command is used to configure the port security settings to restrict the number of users that are allowed to
gain access rights to a port. Use the no form of this command to disable port security or to delete a secure
MAC address.
switchport port-security [aging time
MINUTES
| maximum
VALUE
| violation {protect | restrict |
shutdown}]
no switchport port-security [aging time | maximum | violation]
Parameters
aging time
MINUTES
(Optional) Specifies the aging time for the auto-learned dynamic
secured address on this port. If not specified, the default value is 0.