{"id":466,"date":"2021-01-12T23:15:00","date_gmt":"2021-01-13T07:15:00","guid":{"rendered":"https:\/\/tungle.ca\/?p=466"},"modified":"2023-01-06T21:38:48","modified_gmt":"2023-01-07T05:38:48","slug":"tclsh-tool-control-language-scripting-language-on-cisco-devices","status":"publish","type":"post","link":"https:\/\/tungle.ca\/?p=466","title":{"rendered":"TCLSH (Tool Control Language) scripting language on Cisco devices"},"content":{"rendered":"\n<p>Using a TCLSH (Tool Control Language) scripting language on Cisco devices.<\/p>\n\n\n\n<p>It works the same as the foreach command on PowerShell or Bash shell scripting on Linux.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tclsh\nforeach X {\n150.40.1.1\n150.40.2.2\n150.40.3.3\n150.40.4.4\n4.4.4.4\n8.8.8.8\n} { ping $X repeat 2 }<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tungle.ca\/wp-content\/uploads\/2022\/01\/image-30.png\" alt=\"\" class=\"wp-image-467\" width=\"581\" height=\"481\" srcset=\"https:\/\/tungle.ca\/wp-content\/uploads\/2022\/01\/image-30.png 893w, https:\/\/tungle.ca\/wp-content\/uploads\/2022\/01\/image-30-300x249.png 300w, https:\/\/tungle.ca\/wp-content\/uploads\/2022\/01\/image-30-768x636.png 768w, https:\/\/tungle.ca\/wp-content\/uploads\/2022\/01\/image-30-200x166.png 200w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Using a TCLSH (Tool Control Language) scripting language on Cisco devices. It works the same as the foreach command on PowerShell or Bash shell scripting on Linux.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[15],"class_list":["post-466","post","type-post","status-publish","format-standard","hentry","category-cisco","tag-cisco"],"_links":{"self":[{"href":"https:\/\/tungle.ca\/index.php?rest_route=\/wp\/v2\/posts\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tungle.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tungle.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tungle.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tungle.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=466"}],"version-history":[{"count":3,"href":"https:\/\/tungle.ca\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions"}],"predecessor-version":[{"id":579,"href":"https:\/\/tungle.ca\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions\/579"}],"wp:attachment":[{"href":"https:\/\/tungle.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tungle.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tungle.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}