02-27-2022 06:41 AM
Dear All,
Now I'm facing a little funny issue. That is I don't know " How to ping repeat (500) in tclsh script On IOS XR. I need your suggestion urgently and I'm also have nothing experiment fo IOS XR router. Please fix my issue.
Best Regards,
Min Htet Sam
run tclsh
foreach address {
8.8.8.8
9.9.9.9
} { ping -s Lo0 -repeat 500 $address}
Solved! Go to Solution.
02-27-2022 03:01 PM
This is from my testing, it was working IOS XR - test and let me know. change the source interface i use loopback1 here
% foreach IP {
1.1.1.1
8.8.8.8
} { ping -c 500 -s lo1 $IP}
02-27-2022 07:18 AM
Hello,
what are you trying to do, ping both IP addresses 500 times ?
foreach ip {
8.8.8.8
9.9.9.9
} {
ping $ip repeat 500 timeout 1 }
02-27-2022 07:48 AM
Yes sir,
I want to ping all IP 500 times. Please check sir.
% foreach ip {
8.8.8.8
9.9.9.9
} {
ping $ip repeat 500 timeout 1 }
% Invalid parameter(s)
child process exited abnormally
%
%
%
%
%
%
% foreach ip {
8.8.8.8
9.9.9.9
} { ping $ip repeat 500 timeout 1 }
% Invalid parameter(s)
child process exited abnormally
%
%
02-27-2022 03:01 PM
This is from my testing, it was working IOS XR - test and let me know. change the source interface i use loopback1 here
% foreach IP {
1.1.1.1
8.8.8.8
} { ping -c 500 -s lo1 $IP}
02-27-2022 05:31 PM
Thanks, Sir. Now My issue was solved.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
% foreach address {
8.8.8.8
9.9.9.9
} { ping -s Lo0 -c 500 $address}
Type escape sequence to abort.
Sending 500, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!
Success rate is 100 percent (500/500), round-trip min/avg/max = 1/2/9 ms
Type escape sequence to abort.
Sending 500, 100-byte ICMP Echos to 9.9.9.9, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!
Success rate is 100 percent (500/500), round-trip min/avg/max = 1/2/9 ms
%
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide