{"id":2492,"date":"2015-02-21T21:13:25","date_gmt":"2015-02-21T12:13:25","guid":{"rendered":"http:\/\/uraneko.tcorps.info\/?p=2492"},"modified":"2015-02-21T21:20:22","modified_gmt":"2015-02-21T12:20:22","slug":"ios-sh","status":"publish","type":"post","link":"http:\/\/uraneko.tcorps.info\/?p=2492","title":{"rendered":"IOS.sh"},"content":{"rendered":"<p>Configuration Guides &gt;&gt;\u00a0Network Management Configuration Guide Library &gt;&gt;\u00a0Cisco IOS Shell<\/p>\n<p>http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/ios-xml\/ios\/ios_shl\/configuration\/15-mt\/ios-shl-15-mt-book.html<\/p>\n<p><!--more--><\/p>\n<blockquote>\n<pre><span style=\"color: #99cc00;\">Router#sh ip int b | grep up<\/span>\r\n<span style=\"color: #99cc00;\">                     ^<\/span>\r\n<span style=\"color: #99cc00;\">% Invalid input detected at '^' marker.<\/span><\/pre>\n<pre><span style=\"color: #99cc00;\">Router#terminal shell<\/span>\r\n<span style=\"color: #99cc00;\">Router#<\/span>\r\n<span style=\"color: #99cc00;\">Router#sh ip int b | grep up | wc -l<\/span>\r\n<span style=\"color: #99cc00;\"> 6<\/span>\r\n<span style=\"color: #99cc00;\">Router#man<\/span>\r\n<span style=\"color: #99cc00;\">((              evaluate a numeric test expression<\/span>\r\n<span style=\"color: #99cc00;\">IOS.sh          The IOS shell<\/span>\r\n<span style=\"color: #99cc00;\">[[              evaluate a logical test expression<\/span>\r\n<span style=\"color: #99cc00;\">cat             output data from a pipe or file to the terminal<\/span>\r\n<span style=\"color: #99cc00;\">compatibility   compatibility information on IOS.sh<\/span>\r\n<span style=\"color: #99cc00;\">control         control constructs in IOS.sh<\/span>\r\n<span style=\"color: #99cc00;\">cut             edit piped output<\/span>\r\n<span style=\"color: #99cc00;\">echo            echo arguments to the terminal<\/span>\r\n<span style=\"color: #99cc00;\">expressions     usage of expressions in IOS.sh<\/span>\r\n<span style=\"color: #99cc00;\">false           return false in while or if expressions, and set the result<\/span>\r\n<span style=\"color: #99cc00;\">fetch           return values from the configuration database<\/span>\r\n<span style=\"color: #99cc00;\">for             IOS.sh for loops<\/span>\r\n<span style=\"color: #99cc00;\">functions       IOS.sh function facility<\/span>\r\n<span style=\"color: #99cc00;\">grep            search for regular expressions in piped output or files<\/span>\r\n<span style=\"color: #99cc00;\">head            print the first lines in the input<\/span>\r\n<span style=\"color: #99cc00;\">if-else         IOS.sh if command<\/span>\r\n<span style=\"color: #99cc00;\">interface       print interfaces that match the argument<\/span>\r\n<span style=\"color: #99cc00;\">let             evaluate a numeric expression, and set the result<\/span>\r\n<span style=\"color: #99cc00;\">man             print information for builtins<\/span>\r\n<span style=\"color: #99cc00;\">more            page piped output to the terminal<\/span>\r\n<span style=\"color: #99cc00;\">nl              number the lines in the input<\/span>\r\n<span style=\"color: #99cc00;\">null            ignore the input<\/span>\r\n<span style=\"color: #99cc00;\">printf          output formatted data to the terminal<\/span>\r\n<span style=\"color: #99cc00;\">quoting         IOS.sh quoting facility<\/span>\r\n<span style=\"color: #99cc00;\">read            read input into variables<\/span>\r\n<span style=\"color: #99cc00;\">scripting       how to script the IOS CLI<\/span>\r\n<span style=\"color: #99cc00;\">set_oper        set operational values<\/span>\r\n<span style=\"color: #99cc00;\">sleep           pause execution of the terminal<\/span>\r\n<span style=\"color: #99cc00;\">sort            sort the input<\/span>\r\n<span style=\"color: #99cc00;\">tail            print the tail of the input<\/span>\r\n<span style=\"color: #99cc00;\">true            return true in while or if expressions, and set the result<\/span>\r\n<span style=\"color: #99cc00;\">uname           print system information<\/span>\r\n<span style=\"color: #99cc00;\">variables       usage of variables in IOS.sh<\/span>\r\n<span style=\"color: #99cc00;\">wc              count lines, words, and chars<\/span>\r\n<span style=\"color: #99cc00;\">while           iterate while an expression is TRUE<\/span><\/pre>\n<pre><span style=\"color: #99cc00;\">Router#<\/span>\r\n<span style=\"color: #99cc00;\">Router#terminal no shell<\/span>\r\n<span style=\"color: #99cc00;\">Router#sh ip int b | grep up | wc -l<\/span>\r\n<span style=\"color: #99cc00;\">                     ^<\/span>\r\n<span style=\"color: #99cc00;\">% Invalid input detected at '^' marker.<\/span><\/pre>\n<pre><span style=\"color: #99cc00;\">Router#<\/span><\/pre>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1 class=\"title-section\"><\/h1>\n","protected":false},"excerpt":{"rendered":"<p>Configuration Guides &gt;&gt;\u00a0Network Management C [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,6,16],"tags":[],"class_list":["post-2492","post","type-post","status-publish","format-standard","hentry","category-ccie","category-6","category-16"],"_links":{"self":[{"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/posts\/2492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2492"}],"version-history":[{"count":2,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/posts\/2492\/revisions"}],"predecessor-version":[{"id":2494,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/posts\/2492\/revisions\/2494"}],"wp:attachment":[{"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2492"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}