Hi,
I am looking to create a CLI application which will run the following command:
show port-security address | i <mac>
This will return the interface the mac address is on - I want to store this in a variable.. and then use the below command to clear the macs
clear port-security dynamic interface <interface>
and then shut/no shut the port.
Languages:
Powershell
Python
GoLang
SSHing to the switches and running the commands is no problem. What i'm struggling with is returning the interface and using it to clear the MAC's on that port.
What would be the most suitable method to complete such application?