Automate Cisco comands (ASA 5505)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 01:01 AM
Hi all,
I have set up timed ACL's on my ASA 5505 but I have an issue with Skype and iMessage, they don't break the connection at any point so when the timed ACL kicks in its useless for all but new connections.
I have searched about and found that I can stop all current connections to a host with the CLI command "Clear local-host *IP address*" however I wanted to set this up to automatically clear this the minute my ACL kicks in.
What would be involved in doing this?
Thanks in advance
- Labels:
-
EEM Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 03:04 AM
Never mind I managed to do this by saving a session and automating putty by running the commands in a separate .txt file. Very simple
If anyone is interested I have attached the files. (Script file will need changing from .txt to .bat)
This can be adapted for any CLI command! Only issue is storing your password in plain text (Shows the password in both the .bat file and your enable password in the accompanying .txt file)
My set up is just to stop my daughter Skyping after a certain time during school nights so just a mickey mouse set up, nothing that requires strict security so I am happy to do this)
After these were created, I just set up a basic task on my 2012 server to run the script at the specific time, sorted!
Hope this helps anyone trying to do the same thing :)
Regards,
James
