01-31-2012 10:41 AM - edited 03-07-2019 04:39 AM
hi
have anyone tried to write ping tcl script on nexus 7000 ?
Sent from Cisco Technical Support iPad App
Solved! Go to Solution.
02-01-2012 12:50 AM
Hi Ali, Here is TCL guid for Nexus platform
Also here is simple ping script:
nexus# tclsh
nexus-tcl# forech address {
> X.X.X.X
> X.X.X.X
> X.X.X.X
>} {exec "ping $address" }
HTH,
Alex
02-01-2012 12:50 AM
Hi Ali, Here is TCL guid for Nexus platform
Also here is simple ping script:
nexus# tclsh
nexus-tcl# forech address {
> X.X.X.X
> X.X.X.X
> X.X.X.X
>} {exec "ping $address" }
HTH,
Alex
02-01-2012 01:14 AM
Thanks alex ,
so it is the same as IOS ...nice to know.
Ali
05-26-2012 10:32 AM
Hi Alex
I tried the script but it did not work , it gave error at the word "$address"
Have you tested the script before ?
Ali
Sent from Cisco Technical Support iPad App
05-26-2012 11:12 AM
Do this:
foreach address {
} {cli ping $address}
Sent from Cisco Technical Support iPad App
05-26-2012 11:17 AM
Thanks Alex , I will try it.
Ali
Sent from Cisco Technical Support iPad App
03-11-2018 08:35 AM
Same result, different approach in tclsh:
http://netscriptwiki.com/index.php?title=Use_TCL_proc_for_ping_sweep
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