Cisco IOS Shell (IOS.sh)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2011 12:35 AM
Hi,
Lately I was looking for scripting possibilities on Cisco ISR routers.
I found little information about IOS.sh.
Where can I find more information about:
- how to use it
- what's possible with it
- IOS (and maybe HW) requirements
Many thanks for any hints.
- Labels:
-
Network Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2011 08:29 PM
IOS.sh is still in its infancy. It was only recently added to the ISR in 15.1(3)T. There are many things you may be used to with bash scripting that you cannot yet do in IOS.sh (i.e. redirect command output). If you want to have more complete scripting, consider using Tcl. You can either use the Tcl shell (started with the tclsh command) or the Embedded Event Manager Tcl interpreter. Documentation for tclsh can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_script_tcl.html where as documentation for EEM Tcl can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_policy_tcl.html . Support for tclsh was added to 12.3(2)T, and support for EEM Tcl was added in 12.3(14)T. So chances are you have this support in your ISR already.
