Did you know that Cisco routers have TCL and an Embedded Event Manager (EEM) that can trigger scripts?? I’ve known that they have TCL but haven’t played with it.? The EEM makes it even more powerful.
Check out this very informative article at TechRepublic, including a link to a Cisco overviews and a Scripting Community.