Why Cisco users need to know Tcl

本文探讨了Tcl作为开源脚本接口在Cisco IOS路由器操作系统中的应用优势,包括提高自动化水平、增强安全性及简化远程命令行应用程序操作。Tcl不仅提供更高级别的任务自动化能力,还能够通过内置的安全措施保障设备安全。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Being a systems administrator today isn’t easy. However, the open source community continues to makes it easier. Take, for example, Tcl. Tcl is an open source scripting interface included in the Cisco IOS router operating system and is available on many other vendor’s networking equipment. As a product of the open source community, Tcl offers significantly more control and automation but is not currently part of some of the common certification programs, such as the official Cisco certified training program.

A lot of system administrators we talk to are familiar with Tcl but haven't learned enough about it to use it regularly. So why bother to do that? Three reasons: it offer better automation and increased security than other scripting options (or not using a script at all). It also makes it easier to work with remote command line applications.

Better Automation
Systems administrators need to be able to automate much of what they do, especially when working with large networks. Configuring or re-configuring dozens, or hundreds, of routers can be tedious or nearly impossible without some method for automation. For example, if a change in network configuration requires setting a new gateway for dozens of routers, logging in to each one to make the change could tie up a sysadmin for hours. Tcl allows more advanced automation.

Increased Security
By making Tcl available on the Cisco IOS device itself, it is possible to automate tasks as well as build elaborate, network enabled services. However, the feature rich nature of Tcl does present some security concerns that should be addressed. Cisco provides good resources for how best to address these concerns, including Tcl script signing; disallowing the Tcl scripts if they are not needed, not allowing remote unsigned Tcl scripts and only allowing Tcl script access to privileged levels.

Remote Command Line Applications
Scripting remote command line applications is difficult. Most scripting languages cannot deal with this problem effectively but using the Expect extension to Tcl makes these interactions easy to “drive” remote command line applications, or automate existing or legacy tools that were never built to be automated.

These are just three advantages of learning Tcl – but there are more. Gaining an understanding of Tcl makes system administrators significantly more efficient and valuable to their organizations.

Starter resources for learning more about Tcl:

  1. Community home page: http://www.tcl.tk/
  2. Links to documentation and tutorial: http://www.tcl.tk/doc/
  3. Tcl’ers wiki: http://wiki.tcl.tk/ (over 20,000 pages of collaborative info)
  4. Expect extension page: http://expect.sourceforge.net/

转自http://www.networkworld.com/community/blog/why-cisco-users-need-know-tcl

By Mike Sheldon on Tue, 05/25/10 - 3:06pm.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值