{"id":145,"date":"2009-07-08T11:27:19","date_gmt":"2009-07-08T10:27:19","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=145"},"modified":"2009-07-08T11:27:19","modified_gmt":"2009-07-08T10:27:19","slug":"tcl-script-to-ping-a-number-of-ips","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=145","title":{"rendered":"TCL Script to ping a number of IPs"},"content":{"rendered":"<p>This is a handy TCL scipt if you need to ping lots of IP addresses.\u00a0 If your router supports TCL you can:<\/p>\n<p><strong>Enable TCL on router: <\/strong>R1#tclsh<\/p>\n<p><strong>Quit TCL: <\/strong>R1#tclquit<\/p>\n<p><strong>TCL SCRIPT FOLLOWS:<\/strong><!--more--><\/p>\n<p>foreach address {<\/p>\n<p>10.1.1.2<\/p>\n<p>10.1.1.3<\/p>\n<p>10.1.3.1<\/p>\n<p>172.16.1.1<\/p>\n<p>172.31.1.1<\/p>\n<p>192.168.1.1<\/p>\n<p>192.168.5.5<\/p>\n<p>192.168.9.9<\/p>\n<p>192.168.13.13<\/p>\n<p>192.168.17.17<\/p>\n<p>192.168.21.21<\/p>\n<p>192.168.15.25<\/p>\n<p>192.168.100.1<\/p>\n<p>192.168.200.1<\/p>\n<p>192.168.200.5<\/p>\n<p>192.168.200.9<\/p>\n<p>192.168.200.13<\/p>\n<p>192.168.200.17<\/p>\n<p>192.168.200.21<\/p>\n<p>192.168.200.15<\/p>\n<p>192.168.100.2<\/p>\n<p>} { ping $address }<\/p>\n<p>(NB:\u00a0 note dollar sign after ping above)<\/p>\n<p><strong>Enable TCL on router:<\/strong><\/p>\n<p>R1#tclsh<\/p>\n<p><strong>Quit TCL:<\/strong><\/p>\n<p>R1#tclquit<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a handy TCL scipt if you need to ping lots of IP addresses.\u00a0 If your router supports TCL you can: Enable TCL on router: R1#tclsh Quit TCL: R1#tclquit TCL SCRIPT FOLLOWS:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[3],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/145"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=145"}],"version-history":[{"count":1,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":146,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions\/146"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}