Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

IOS-XR reachability-check TCL script

Hi there,

I'm currently playing with TCL scripts to prepare for my CCIE lab exam. The main purpose I'm gonna use them is to

check the reachability within ISP IGP domain and/or L3VPN domain.

Currently I'm facing the following issue: I'm unable to specify the source address used to run ping:

% tclsh

foreach address {

2010::2

2010::3

2010::4

2010::5

2010::6

2010::7

} { ping $address source lo0

}

% % Invalid parameter(s)

child process exited abnormally

Can somebody kindly help me out to modify the script so that ping is sourced from conifgured interface?

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: IOS-XR reachability-check TCL script

try this. Note, you have to set your source address:

set loop0 2010::1

foreach address {

2010::2

2010::3

2010::4

2010::5

2010::6

2010::7

} { ping6 -S $loop0 $address

}

Regards,

/A

4 REPLIES
New Member

IOS-XR reachability-check TCL script

Anybody help, please!

Cisco Employee

Re: IOS-XR reachability-check TCL script

try this. Note, you have to set your source address:

set loop0 2010::1

foreach address {

2010::2

2010::3

2010::4

2010::5

2010::6

2010::7

} { ping6 -S $loop0 $address

}

Regards,

/A

New Member

IOS-XR reachability-check TCL script

Appreciate your help Alexei!

Problem solved.

New Member

Hi Saw this  interesting note

Hi 

Saw this  interesting note about TCL if you want to Ping inside a VRF we can´t find any vrf gear only in Ping6 ?

is there no support for ping inside a vrf with TCL script with ipv4

/Ola

2269
Views
5
Helpful
4
Replies
CreatePlease to create content