Install modules: paramiko
and pexpect
- Add ip address 192.168.1.1 to access lists all cisco devices:
cisco_remote_admin.py -add 192.168.1.1
- Delete ip address 192.168.1.1 from access lists all cisco devices:
cisco_remote_admin.py -del 192.168.1.1
- Add ip address 192.168.1.1 to access list one cisco device with address 192.168.1.2:
cisco_remote_admin.py -add-one 192.168.1.1 192.168.1.2
- Delete ip address 192.168.1.1 from access list one cisco device with address 192.168.1.2:
cisco_remote_admin.py -del-one 192.168.1.1 192.168.1.2
You can use this python script for all devices which supports ssh protocol (For example: servers, mobile phone, routers, etc)