This script will help you to turn on port security on selected device on selected port. and if you know than you can do some minor change in script and make your own script.
If you guys have any question regarding this template feel free to ask thanks.
Hello,
I need a way to turn this on all access ports and not the trunk ports. How could I do that? Thanks