Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Port Security MIB on SF, SG series switches

I need to setup some parameters related to port security features on my SG, SF series switches via SNMP. I've found that it is possible with port security MIB (1.3.6.1.4.1.9.9.315). I found out my devices has support of this MIB downloading archive with MIBs from cisco site. But when I try to read some parameters from this MIB via SNMP, for example "cps if port security status" (1.3.6.1.4.1.9.9.315.1.2.1.1.2) device answers with: "No Such Object available on this agent at this OID". But it is possible to do with web-interface in Security->Port Security section

How is it possible to read/write such type of parameters ?

Everyone's tags (3)
2 REPLIES
Cisco Employee

The OID you mentioned

The OID you mentioned cpsIfPortSecurityStatus has Read-Only permissions and hence you cannot set anything.

You can only poll this object to know the operational status of the port security feature on an interface, which will result from one of the three status :

1 : secureup
2 : securedown
3 : shutdown

For more details check OID Translation.

You can only set values which has Read-Write permissions, like cpsIfPortSecurityEnable, using which you can enable port security on an interface.

Tell us what you want to achieve using SNMP Set operation?

Also, I am not sure if these MIB features are completely implemented on 29xx/35xx/37xx devices.

But are present in 45xx and 65xx series switches.

-Thanks Vinod **Rating Encourages contributors, and its really free. **
New Member

I'm writing a PHP web-shell

I'm writing a PHP web-shell to centralize network management via SNMP. The purpose I'd like to achieve is the posibility to set up MAC static list with secure option enabled and I can do that via SNMP. But before I can set up secure option for the MAC I need to switch interface status to "Locked" and THIS is the problem I'd like to find the solution for.

204
Views
0
Helpful
2
Replies
CreatePlease login to create content