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