Tcl scripting for Cisco IOS
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...
Otros Autores: | , , |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
[Place of publication not identified]
Cisco Press
2010
|
Edición: | 1st edition |
Colección: | Networking Technology
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628880606719 |
Tabla de Contenidos:
- 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
- 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
- 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
- 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
- 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
- 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.