TCL for TE :)

ter le 0
show mpls tra tu bri
foreach i {
Tunnel11121
Tunnel11131
Tunnel11141
Tunnel11151
Tunnel11161
Tunnel11171
Tunnel21100
Tunnel31110
} { show mpls tra tu $i }

foreach i {
Tunnel11121
Tunnel11131
Tunnel11141
Tunnel11151
Tunnel11161
Tunnel11171
Tunnel21100
Tunnel31110
} { show run int $i }
ter le 30
tclquit

Rou01#tclsh
Rou01(tcl)# foreach i {
+>Tunnel11121
+>Tunnel11131
+>Tunnel11141
+>Tunnel11151
+>Tunnel11161
+>Tunnel11171
+>Tunnel21100
+>Tunnel31110
+> } { show mpls tra tu $i | in active|Tunn }
Name: #Main Rou01-VAL01# (Tunnel11121) Destination: 10.19.111
State: dynamic path option 1 is active
FRR OutLabel : Tunnel31110, 526
Tunnel:
Name: #Main Rou01toPLC01# (Tunnel11131) Destination: 10.19.111
State: dynamic path option 1 is active
Tunnel:
Name: #Main Rou01toPOZ01# (Tunnel11141) Destination: 10.19.111
State: dynamic path option 1 is active
Tunnel:
Name: #Main Rou01toBTO01# (Tunnel11151) Destination: 10.19.111
State: dynamic path option 1 is active
Tunnel:
Name: #Main Rou01toSNC01# (Tunnel11161) Destination: 10.19.111
State: dynamic path option 1 is active
Tunnel:
Name: #Main Rou01toMBO01# (Tunnel11171) Destination: 10.19.111
State: dynamic path option 1 is active
Tunnel:
Name: #BackLink Rou01toIP1CAN01# (Tunnel21100) Destination: 10.19.110
State: dynamic path option 1 is active
Tunnel:
Name: #B COL02# (Tunnel31110) Destination: 10.19.110
State: dynamic path option 1 is active
Tunnel:

A Networker Blog

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s