Scripting can be very useful tool when networkers need to work on same activity repetitively.Some of the boring and time consuming activities are –
Putting multiple interfaces in vlans
Configuring multiple entries of BGP neighborship
Access list entries for same source or destination
And many more.
So here comes in the TCL script which can complete some of repetitive and tedious jobs in seconds. Lets take an example where I want to configure 5 Loopbacks. The script will look something like this –
R1#show ip int brief Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Loopback1 18.104.22.168 YES unset up up
Loopback2 22.214.171.124 YES unset up up
Loopback3 126.96.36.199 YES unset up up
Loopback4 188.8.131.52 YES unset up up
Loopback5 184.108.40.206 YES unset up up
Nice to see how TCL script can make tiring activities fun and time saver for techies.