偶然发现思科的路由器还支持TCL script,这个有什么实际的应用案例吗?
还有cisco的EEM,也算是个脚本吧,根据log触发,类似这样(如果f0/0 up就吧f0/1 shutdown):
(config)#event manager applet test
(config-applet)#event syslog pattern "%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up"
(config-applet)#action 1 cli command "en"
(config-applet)#action 2 cli command "conf t"
(config-applet)#action 3 cli command "int fa 0/1"
(config-applet)#action 4 cli command "sh"
这一类脚本感觉在实际网络中没怎么用过,也没见有人用过。
还是我孤陋寡闻了?
大家都了解的吗?