The Cisco IOS Shell (IOS.sh) feature provides shell scripting capability to the Cisco IOSĬommand-line-interface (CLI) environment. More of what im looking for with IOS.sh with grep interface GigabitEthernet1/0/21Ĭisco IOS Shell works on Cisco Routers and Switches. Using show run | include switchport trunk switchport trunk encapsulation dot1q ![]() Second Question: Now that IOS.sh is enabled, is there a way to use grep to take a section and output that onto the CLI that I'm looking at?įor example, I would like to find anything in sh run that matches the value switchport trunk, but instead of running sh run | i switchport trunk and outputting multiple lines of futile results, is there a grep command that takes the section of those results? ![]() I just learned about Cisco IOS.sh and found that you're able to run commands similar to UNIX based systems on Cisco devices.įirst question: Is IOS.sh router or switch specific? Or are they able to be used for both types of devices as long as the firmware version is 15.1 or later?
0 Comments
Leave a Reply. |