Notification

Icon
Error

Cisco Switch port security status - Cisco Switch port security status

Posted: Wednesday, October 27, 2021 7:10:25 AM(UTC)
Shahzad Ahmad

Shahzad Ahmad

Member Original PosterPosts: 2
0
Like
Dear All,

I have one query, I have Cisco switches in my network and I have applied port security at my switches, commands are mentioned below. I want to get the status of all the switch ports that have been configured or not for port security.

switchport port-security
switchport port-security violation restrict
switchport port-security mac-address sticky


Best Regards,

Shahzad
Hendrik.VE
#1Hendrik.VE Member Posts: 93  
posted: 10/27/2021 8:10:26 AM(UTC)
Hi Shahzad,

I was looking for the same recently. Unfortunately, I don't believe it's possible with Lansweeper to query this information, because the oid is variable (it contains the MAC addresses that were discovered on the port).

Fortunately, we also use SolarWinds, in which you can run an SNMP Walk on specific oid's. Below you find oid's we query:

Via SolarWinds (or Paessler SNMP Tester): perform a 'Walk' on oid 1.3.6.1.4.1.9.9.315

Most important metrics:

https://oidref.com/1.3.6.1.4.1.9.9.315.1.2.2.1.2
1.3.6.1.4.1.9.9.315.1.2.2.1.2.port.MACAddress.status
--> 1 = Static
2 = Dynamic


https://oidref.com/1.3.6.1.4.1.9.9.315.1.2.1.1.2
1.3.6.1.4.1.9.9.315.1.2.1.1.2.port.status
1 = Secureup
2 = SecureDown - port security is not operational.
3 = Shutdown due to portsec violation

https://oidref.com/1.3.6.1.4.1.9.9.315.1.2.1.1.3
1.3.6.1.4.1.9.9.315.1.2.1.1.3.Port.MaxAddress
The maximum number (N) of MAC addresses to be secured on the interface
Shahzad Ahmad
#2Shahzad Ahmad Member Original PosterPosts: 2  
posted: 10/27/2021 9:03:22 AM(UTC)
Originally Posted by: Hendrik.VE Go to Quoted Post
Hi Shahzad,

I was looking for the same recently. Unfortunately, I don't believe it's possible with Lansweeper to query this information, because the oid is variable (it contains the MAC addresses that were discovered on the port).

Fortunately, we also use SolarWinds, in which you can run an SNMP Walk on specific oid's. Below you find oid's we query:

Via SolarWinds (or Paessler SNMP Tester): perform a 'Walk' on oid 1.3.6.1.4.1.9.9.315

Most important metrics:

https://oidref.com/1.3.6.1.4.1.9.9.315.1.2.2.1.2
1.3.6.1.4.1.9.9.315.1.2.2.1.2.port.MACAddress.status
--> 1 = Static
2 = Dynamic


https://oidref.com/1.3.6.1.4.1.9.9.315.1.2.1.1.2
1.3.6.1.4.1.9.9.315.1.2.1.1.2.port.status
1 = Secureup
2 = SecureDown - port security is not operational.
3 = Shutdown due to portsec violation

https://oidref.com/1.3.6.1.4.1.9.9.315.1.2.1.1.3
1.3.6.1.4.1.9.9.315.1.2.1.1.3.Port.MaxAddress
The maximum number (N) of MAC addresses to be secured on the interface


Hi, Hendrik

Thanks for your kind information please.

I'll check and apply this information.

Regards,
Shahzad

Active Discussions

Lansweeper Password last set
by  gbhsmis   Go to last post Go to first unread
Last post: 11/5/2021 8:59:46 PM(UTC)
Action List IP Configuration Data
by  Don  
Go to last post Go to first unread
Last post: 11/4/2021 4:35:06 PM(UTC)
Action View users membersof
by  Don   Go to last post Go to first unread
Last post: 11/4/2021 3:46:45 PM(UTC)
Action Remote Uninstaller
by  Gahbiche  
Go to last post Go to first unread
Last post: 11/4/2021 3:35:07 PM(UTC)
Lansweeper Updating Active Directory User fields
by  Don   Go to last post Go to first unread
Last post: 11/2/2021 8:21:46 PM(UTC)
Action Powershell Remote Shutdown with Different Creds
by  Wealthyreltub  
Go to last post Go to first unread
Last post: 9/14/2021 9:43:09 PM(UTC)
Action Find lost space the easy way (spacesniffer.exe)
by  tomscott2340   Go to last post Go to first unread
Last post: 9/1/2021 8:22:48 PM(UTC)
Lansweeper uVNC Portable (trying to replace LSRemote)
by  CyberCitizen  
Go to last post Go to first unread
Last post: 6/15/2021 11:40:21 PM(UTC)