Monday, March 9, 2015

Playing the IOS "shell" game

Cisco IOS has started to provide  a limit  shell like functions with in the IOS code.  This allows you to use  simple unix shell commands suchs as;  wc, grep, more, tail, sleep,etc....


Here's a few example, but 1st you have to  execute the shell process via your terminal command

e.g

terminal shell


 


How about setting a variable


A simple word count of our config file








More examples;






 





You have a host of options for deploying the IOS shell in your scripts or day to day uses.





Ken Felix
NSE ( Network Security Expert) and Route/Switching Engineer.
kfelix  -----a----t---- socpuppets ---dot---com

    ^     ^
=(  *  * )=
        o 
       /  \

No comments:

Post a Comment