Verification of Port Security – Cisco Storage Security
Port security can be verified using the commands shown next.
The show port-security database commands display the configured port security information as shown in Example 20-8.
Example 20-8 Verification of Port Security Database
switch# show port-security database
————————————————————————–
———–
VSAN Logging-in Entity Logging-in Point (Interface)
————————————————————————–
———–
1 21:00:00:e0:8b:07:d9:1d(pwwn) 20:0d:00:05:30:00:95:de (fc1/7)
1 50:06:04:82:bc:02:c3:84(pwwn) 20:0c:00:05:30:00:95:de (fc1/6)
2 20:00:00:05:30:00:95:df(swwn) 20:0c:00:05:30:00:95:de (port-channel 5)
3 20:00:00:05:30:00:95:de(swwn) 20:01:00:05:30:00:95:de (fc1/1)
[Total 4 entries]
The show port-security database active command displays the activated database as shown in Example 20-9.
Example 20-9 Verification of Port Security Active Database
switch# show port-security database active
————————————————————————–
———–
VSAN Logging-in Entity Logging-in Point (Interface)
Learnt
————————————————————————–
———–
1 21:00:00:e0:8b:06:d9:1d(pwwn) 20:0d:00:05:30:00:95:de (fc1/7)
Yes
1 50:06:04:82:bc:02:c3:84(pwwn) 20:0c:00:05:30:00:95:de (fc1/6)
Yes
2 20:00:00:05:30:00:95:df(swwn) 20:0c:00:05:30:00:95:de (port-channel
5) Yes
3 20:00:00:05:30:00:95:de(swwn) 20:01:00:05:30:00:95:de (fc1/1)
[Total 4 entries]
The show port-security status command displays the port security status as shown in Example 20-10.
Example 20-10 Verification of Port Security Status
switch# show port-security status
Fabric Distribution Enabled
VSAN 1 :No Active database, learning is disabled, Session Lock Taken
VSAN 2 :No Active database, learning is disabled, Session Lock Taken
…
The show port-security violations command displays the violations in the port security database as shown in Example 20-11.
Example 20-11 Verification of Port Security Violations
switch# show port-security violations
————————————————————————–
———–
VSAN Interface Logging-in Entity Last-Time
[Repeat count]
—————————————————————————
———–
1 fc1/7 21:00:00:e0:8b:07:d9:1d(pwwn) Jul 9 08:32:20 2019
[20]
20:00:00:e0:8b:07:d9:1d(nwwn)
1 fc1/6 50:06:04:82:bc:02:c3:84(pwwn Jul 9 08:32:20 2019
[1]
50:06:04:82:bc:02:c3:84(nwwn)
2 port-channel 5 20:00:00:05:30:00:95:de(sww Jul 9 08:32:40 2019
[1]
[Total 2 entries]