cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
563
Views
0
Helpful
10
Replies

How to ping all interface ATM within the POP

Hello,

 I would like to ping all interfaces on the POP Cisco. What is the command that from this output?

Interface

VPI

VCI

status

ping atm

rtt ping atm

2/0.131

13

110

up

(500/500)

1/1/276 ms

2/0.129

13

125

up

(500/500)

1/4/296 ms

2/0.900

13

139

up

(500/500)

1/1/16 ms

2/0.183

16

118

up

(484/500)

1/18/76 ms

2/0.180

16

133

up

(482/500)

1/20/288 ms

2/0.213

16

135

up

(480/500)

1/20/296 ms

2/0.243

16

136

up

(483/500)

1/20/320 ms

2/0.212

16

137

up

(477/500)

1/24/312 ms

2/0.248

16

138

up

(487/500)

1/24/352 ms

2/0.148

16

150

up

(481/500)

1/20/336 ms

2/0.621

16

151

up

(485/500)

1/19/308 ms

2/0.204

16

152

up

(489/500)

1/17/112 ms

2/0.204

16

153

up

(479/500)

1/16/276 ms

2/0.215

16

154

up

(486/500)

1/17/80 ms

2/0.214

16

157

up

(488/500)

1/27/320 ms

2/0.132

16

163

up

(485/500)

1/16/308 ms

2/0.947

16

164

up

(487/500)

1/16/80 ms

2/0.162

16

165

up

(490/500)

1/20/320 ms

2/0.909

16

166

up

(486/500)

1/17/276 ms

2/0.198

200

48

up

(500/500)

1/1/36 ms

2/0.229

200

62

up

(500/500)

1/1/8 ms

2/0.945

200

69

up

(500/500)

1/1/20 ms

2/0.912

200

76

up

(500/500)

1/1/22 ms

10 Replies 10

Mark Malone
VIP Alumni
VIP Alumni

Hi you would need to build a TCL script and add all the ip addresses to it to ping all interfaces at once ,

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ios_tcl/configuration/12-4t/ios-tcl-12-4t-book/nm-script-tcl.html

Thanks for your support,

but can you help me to create a tcl script to ping all ip.
Do you have a tcl script ready ?

Thank and good job!

Hey

Here is an example of what to do , you will need to replace the ip address with your own ips obviously , you change how many pings and the source with this script

First enter tclsh in priv mode then use the script below as it is in bold but change the ips , you can have as many as you want , tclquit to break out of router script mode

RouterC1DE44(tcl)#foreach test {
+>172.20.15.251
+>172.20.19.251
+>172.20.23.251
+>172.20.39.249
+>} {ping $test re 3 time 1 source vlan1226}

Type escape sequence to abort.
Sending 3, 100-byte ICMP Echos to 172.20.15.251, timeout is 1 seconds:
Packet sent with a source address of 172.20.226.118
!!!
Success rate is 100 percent (3/3), round-trip min/avg/max = 1/3/9 ms
Type escape sequence to abort.
Sending 3, 100-byte ICMP Echos to 172.20.19.251, timeout is 1 seconds:
Packet sent with a source address of 172.20.226.118
!!!
Success rate is 100 percent (3/3), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 3, 100-byte ICMP Echos to 172.20.23.251, timeout is 1 seconds:
Packet sent with a source address of 172.20.226.118
!!!
Success rate is 100 percent (3/3), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 3, 100-byte ICMP Echos to 172.20.39.249, timeout is 1 seconds:
Packet sent with a source address of 172.20.226.118
!!!
Success rate is 100 percent (3/3), round-trip min/avg/max = 1/1/1 ms
xco-d110nis01(tcl)#

Perfect, thanks you

but how do this command to script:

ping atm interface atm 1/0.25 Vp Vc seg-loopback

Its an ip based scripting command its not possible to use the script like that

you would have to have the loopback ip address first and add it to the script enter tcl section of IOS and then run it

This is not a Cisco command its a programming language TCL that exists inside most Cisco devices that Cisco allows to be used in their IOS.

Ok could you explain me how to do on  the router?

Thanks

If your still not sure you can post the ips and I will put them in the script for you

This is my ip ping:

10.251.12.126
172.31.20.218
10.251.43.178
172.31.250.142
10.251.9.162
172.16.103.182
10.251.45.38
10.251.9.214
10.251.22.238
10.251.12.38
10.160.9.146
10.251.9.118

Change your source below that's highlighted to something on your router looback or another ip interface ,then copy this exactly into your router in privileged mode and then hit return that's it

tclsh
foreach test {
10.251.12.126
172.31.20.218
10.251.43.178
172.31.250.142
10.251.9.162
172.16.103.182
10.251.45.38
10.251.9.214
10.251.22.238
10.251.12.38
10.160.9.146
10.251.9.118
+>} {ping $test re 4 time 1 source vlan1226}

Thanks you, you are my good friead ahahahha 

Goodbye and good job

Review Cisco Networking for a $25 gift card