シェルスクリプトtclshを使って大量ping飛ばすことで、ラボ試験での疎通確認がすばやくできる
exam: ping to 3 targets,IP-1.1.1.1,IP-2.2.2.2 and IP-3.3.3.3
First step
Write the next script in somewhere
tclsh
foreach add {
1.1.1.1
2.2.2.2
3.3.3.3
} {ping $add}
Second step
Paste the script to CLI(enable mode)
RouterA(tcl)#tclsh
RouterA(tcl)#foreach add {
+>1.1.1.1
+>2.2.2.2
+>3.3.3.3
+>} {ping $add}
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
PR