Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
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
Command Substitution
Variable Substitution
Lists
lappend
lindex
linsert
llength
lsearch
lreplace
lrange
lsort
Procedures
for Command
foreach Command
while Command
Arrays
if Command
switch Command
Files
Summary
References
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
Summary
References
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
Configuring the IP SLA Sender and Responder
Applet and IP SLA Route Failover Example
Applet That Monitors the Default Route
Applet and Application Failover with a Network Address Translation Example
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
Summary
References
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
Modifying the Button and Label for User Input
Creating a Tcl Script to Display IP SLA Measurement Results
Putting the New Tcl Scripts into Operation
Reformatting the IP SLA Output for Readability
Automatic Removal and Creation of IP SLA Entries
Displaying the Results of the IP SLA Measurement with Auto-Refresh
Tcl Script Refresh Policy
SNMP Proxy Event Detector
Remote-Procedure Call Requests
Multiple-Event Support for Event Correlation
Using the clear Command
Summary
References
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
Configuring the Web Server
Writing Code for the MPLS VPN Script
Configuring HTML
Writing Code for the MPLS CFG Script
Troubleshooting as You Go
Using Tcl to Troubleshoot Network Problems
Monitoring the Console for Events
Creating a Web Application for Remote SNMP Graphing
Summary
References
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
Summary
References
Appendix A. Cisco IOS Tcl Commands Quick Reference
Index
← Prev
Back
Next →
← Prev
Back
Next →