Cisco IOS Scripting with Tcl
Detail here:
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t2/feature/guide/gt_tcl.html
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t2/feature/guide/gt_tcl.html
SUMMARY STEPS
1. enable
2. configure terminal
3. scripting tcl encdir location-url
4. scripting tcl init init-url
5. exit
6. tclsh
7. Enter the required Tcl command language syntax.
8. ios_config "cmd" "cmd-option"
9. exec "exec-cmd"
10. exit
Example:
Router1# tclsh
Router1(tcl)#
Router1(tcl)#foreach address {
+>(tcl)#172.16.1.1
+>(tcl)#172.16.3.1
+>(tcl)#} {
+>(tcl)#ping $address }
Nhận xét
Đăng nhận xét