IOS.sh

Started by icecream-guy, April 22, 2015, 07:45:17 AM

Previous topic - Next topic

icecream-guy

Just ran across this purely by accident this morning.

What and how are you using the IOS shell capability on IOS-XE switches and routers?


3850-sw#man IOS.sh
NAME
    IOS.sh - process shell input

DESCRIPTION
The IOS.sh is a set of add-on features to the IOS
CLI. These features enables users to write scripts,
execute functions, evaluate numeric and logical expressions,
and perform loops over data using a standard, easy to learn
syntax.

In addition, the IOS.sh offers variable substitution, enhanced
quoting, and a series of builtin functions that are designed to
simplify the job of interacting with an IOS router.

In order to learn about the IOS.sh, a set of man pages such as
this one have been prepared to describe the various new features.
The following man pages may be used learn about the shell.

man compatibility   -  gives a quick overview of compatibility between shell and traditional IOS CLI
man variables       -  describes the usage of variables
man scripting       -  gives a quick overview of the scripting capabilities of IOS.sh
man expressions     -  describes the expression syntax built into the IOS.sh
man loops           -  describes loop structures built into IOS.sh
man functions       -  describes how to use and write functions
man quoting         -  describes the new quoting facility

:professorcat:

My Moral Fibers have been cut.

Otanx

Found that awhile ago myself looking at release notes. We don't use it yet for anything. Just don't have enough XE stuff to change our processes. Once the majority of our stuff supports it we may start using it.

-Otanx

Fred

Nothing yet, but I'm signed up for "BRKSDN-2116 - Run your apps and tools natively on Cisco boxes" at Cisco Live.

Especially this part: "or you just wanted to do something as simple as use your editor of choice to edit the startup configuration directly on the box, without copying and pasting things around". I used to love this on Juniper.

packetherder

Looks like it's in monolithic IOS too since 15. You can pipe to wc to get a line count on stuff like arp and mac tables. Too bad it doesn't have netcat though.

icecream-guy

:professorcat:

My Moral Fibers have been cut.