Automated Telnet
Scripting is a very useful tool that can be utilized by a Network Operator. Through the use of scripting, whether it is a shell script on a UNIX workstation or a full-blown Perl program, Network Operators can automate many of the basic monitoring tasks that every network requires. A sample of this type of program can be found in Listing 10.1. This program telnets into a router or list of routers and archives information about the hardware that is installed in the router. This type of information is useful for asset tracking, as well as, determining easily which cards might need memory upgrades. A sample of the output of this program is shown in Listing 10.2.
Code Listing 10.1. Perl5 Program to Archive Hardware Data from Routers ...
Get Cisco® Router Configuration & Troubleshooting, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.