My Account Log in

1 option

Tcl scripting for Cisco IOS

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Blair, Raymond N., Author.
Contributor:
Durai, Arvind, Contributor.
Lautmann, John, Contributor.
Series:
Networking Technology
Networking technology series Tcl scripting for Cisco IOS
Language:
English
Subjects (All):
Cisco IOS.
Tcl (Computer program language).
Physical Description:
1 online resource : ill.
Edition:
1st edition
Place of Publication:
[Place of publication not identified] Cisco Press 2010
Language Note:
English
System Details:
text file
Summary:
A guide to building and modifying Tcl scripts to automate network administration tasks Streamline Cisco network administration and save time with Tcl scripting Cisco networking professionals are under relentless pressure to accomplish more, faster, and with fewer resources. The best way to meet this challenge is to automate mundane or repetitive tasks wherever possible. In this book, three Cisco experts show you how to use Tcl scripting for Cisco IOS devices to do just that. You’ll learn easy techniques for creating, using, and modifying Tcl scripts that run directly on Cisco network devices from the Cisco IOS command line. The authors first teach basic Tcl commands and concepts for capturing and manipulating data and for querying or controlling Cisco equipment. Building on these core skills, they show you how to write scripts that automate and streamline many common IOS configuration, monitoring, and problem-solving tasks. The authors walk through the entire script development process, including planning and flowcharting what you want to accomplish, formatting your code, adding comments, and troubleshooting script errors. They also present many downloadable sample scripts, along with practical guidance for adapting them to your own environment. Whatever your role in managing, monitoring, or securing Cisco IOS networks and equipment, this book will help you get the job done more rapidly and efficiently. Ray Blair, CCIE No. 7050, is a Cisco vertical solutions architect specializing in large network designs. He has more than 20 years of experience in designing, implementing, and maintaining networks, and maintains three CCIE certifications. Arvind Durai, CCIE No. 7016, Advanced Services Technical Leader for Cisco, specializes in supporting major Cisco enterprise customers in finance, manufacturing, e-commerce, government, and healthcare. He holds CCIEs in Routing and Switching, and in Security. John Lautmann, Cisco Software Engineer, has developed and enhanced network management software for twelve years, and holds six patents. He has helped develop new Cisco IOS features ranging from data link switching to IOS Tcl Interpeter and digitally signed Tcl scripts. Automate routine administration tasks you’ve always performed manually Instantly collect and modify IOS router configurations and other data Write Syslog scripts to document failures, monitor network health, collect statistics, and send alarm messages Implement automated network performance...
Contents:
Cover
Contents
Introduction
Chapter 1 The Origin of Tcl
Tcl and Cisco IOS Software
Embedded Event Manager and Tcl
Restriction of Tcl in IOS
Tcl with EEM Support in IOS
Using Tcl Scripts in the Network
Troubleshooting Problems
Monitoring the Network
Adding Intelligence to Cisco IOS Protocols
Summary
References
Chapter 2 Tcl Interpreter and Language Basics
Simple Variables in Tcl
Storing Variables
Viewing Variables
The append Command
The incr Command
Representation of Variables in Tcl
Lists
Procedures
for Command
foreach Command
while Command
Arrays
if Command
switch Command
Files
Chapter 3 Tcl Functioning in Cisco IOS
Understanding the Tcl Interpreter in Cisco IOS
Using Cisco IOS Exec-Mode Parser in the Tcl Shell
Entering an IOS Command into the Tcl Command Interpreter
Using Tcl to Enter Commands
Copying a Tcl Script to a Cisco IOS Device
Fetching a Cisco IOS Tcl Script from a Remote Device
Using Tcl to Examine the Cisco IOS Device Configuration
Using Tcl to Modify the Router Configuration
Using Tcl with SNMP to Check MIB Variables
Other Uses of SNMP
Enabling SNMP on a Cisco IOS Device
Querying the Configuration of a Cisco IOS Device Using SNMP
Modifying the Configuration of a Cisco IOS Device Using SNMP
Chapter 4 Embedded Event Manager (EEM)
EEM Architecture
Policies
EEM Server
Event Detectors
Software Release Support for EEM
Platform and IOS Considerations for EEM
Writing an EEM Applet
Practical Example of an Event Trigger
Using Object Tracking as an Event Trigger
Creating Applet Actions
Examples of EEM Applets
Using EEM and Tcl Scripts
Programming Policies with Tcl
Tcl Example Used to Check for Interface Errors.
Tcl Example Used to Check the CPU Utilization
Chapter 5 Advanced Tcl Operation in Cisco IOS
Introduction to the Syslog Protocol
Configuring Syslog Server Parameters in Cisco IOS
Syslog Tcl Script Example
Syslog Tcl Script Sample Output
Sending Syslog Messages to a File
Syslog Server Script Procedures
Syslog Server Script Body
Putting the Syslog Script into Operation
Introduction to Embedded Syslog Manager
Filtering Syslog Messages
ESM Global Variables
Rebuilding a Syslog Message from Its Components
Displaying/Adding ESM Tcl Script Filters
Introduction to Embedded Menu Manager
Using Tcl as a Web Server
Obtaining a Free Web Server Application
Reverse Engineering the Web Server
Creating Your Own Simple Web Page
Creating a Web Page Using IOS show Commands
Adding User Input to the Web Page
Introduction to IP SLA
Adding the IP SLA Measurement to the Web Page
Tcl Script Refresh Policy
SNMP Proxy Event Detector
Remote-Procedure Call Requests
Multiple-Event Support for Event Correlation
Using the clear Command
Chapter 6 Tcl Script Examples
Creating an Application from Start to Finish
Determine What You Want to Accomplish
Creating a Flowchart
Deciding What the User Interface Should Look Like
Write the Code in Pseudo-Code
Before You Begin
Starting to Program the Application
Troubleshooting as You Go
Using Tcl to Troubleshoot Network Problems
Monitoring the Console for Events
Creating a Web Application for Remote SNMP Graphing
Chapter 7 Security in Tcl Scripts
Introduction to PKI Infrastructure
PKI Prerequisite
Confidentiality with PKI
Digital Signatures with PKI
Using Digital Signatures to Sign a Tcl Script.
Step 1: Decide on the Final Tcl Script Contents (Myscript)
Step 2: Generate a Public/Private Key Pair
Step 3: Generate a Certificate with the Key Pair
Step 4: Generate a Detached S/MIME pkcs7 Signature for Myscript Using the Private Key
Step 5: Modify the Format of the Signature to Match the Cisco Style for Signed Tcl Scripts and Append It to the End of Myscript
Tcl Script-Failure Scenario
Scaling Tcl Script Distribution
Appendix A: Cisco IOS Tcl Commands Quick Reference
Index
A
B-C
D
E
F
G-H-I
J-K-L
M
N-O
P
Q-R
S
T
U-V
W
X-Y-Z.
Notes:
Bibliographic Level Mode of Issuance: Monograph
Description based on publisher supplied metadata and other sources.
ISBN:
9786612660214
9781587059520
1587059525
9781282660212
1282660217
9781587059513
1587059517
OCLC:
1024255793

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account