Cisco – How to load Scripts into Cisco Routers

automationciscoscripting

I would like to load scripts automatically based on certain triggers/conditions into cisco routers.

Can anyone provide me a link or tell me how to do it?

what does the scripts does?
1. Once the user authenticate to a NAS(cisco router), it will grab its userID and password. Then, it will do background authentication for the next router the users wish to use.
2. The script also will disconnect a user from NAS/cisco router once his timing ends.

I am only interested on how to load the scripts into the router automatically.

I am currently using CISCO ACS for AAA server.
The problem is I am required to do background authentication for users that are stored in SQL.
So, when those users login, their usernames and passwords need to be catched for background authentication.

I need to load the scripts automatically to cisco routers which I am still have no idea on how to do it.

Thank you in advance

Best Answer

Have you considered using Radius or TACACS+ for AuthN/AuthZ? Those will accomplish the same thing as your proposed script, and unlike your script, are well-supported methods by Cisco.