cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1474
Views
5
Helpful
1
Replies

porr security API

I need to know if this is possible using API over switches 9200

Is necessary to verify the "error disable" status in any interface on the switches due to violation by "port security" an them perform shutdown and no shutdown to this interface.

1 Accepted Solution

Accepted Solutions

@Manuel Mora Jimenez you can do this a couple of ways. You can create a script (Ansible / Python etc..) gather the state of the interfaces and perform the actions required. Or you can use Guestshell to perform this action based on the status change and then alert you to this change/error via Webex / chatops. You can find sample of both here in Code Exchange - https://developer.cisco.com/codeexchange

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

1 Reply 1

@Manuel Mora Jimenez you can do this a couple of ways. You can create a script (Ansible / Python etc..) gather the state of the interfaces and perform the actions required. Or you can use Guestshell to perform this action based on the status change and then alert you to this change/error via Webex / chatops. You can find sample of both here in Code Exchange - https://developer.cisco.com/codeexchange

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io