Share this page : facebooktwitterlinkedinmailfacebooktwitterlinkedinmail


The tclsh is a simple command-line interactive interpreter.

Let’s start with an example, after the network has been setup, its is necessary to ping all the host through out the network, you can use following script to ping them once for all, instead of wait for a couple of seconds after one ping command and then issue another command.

router# tclsh
foreach address {
} {
ping $address }


simply issue tclsh, then press enter.

then Type “foreach address { } { ping $address }” in one line and press enter.