The Blueprint: TCL Script

Just a simple TCL script that I typed up that copies multiple files from a USB drive to FLASH on a router. Without the script, I would have to baby sit each file copy. With this script, you run it once, and it copies all the files to FLASH. This will come in real handy becasuse I have 200+ flash cards that I have to copy these files to.

——————————————————–

tclsh
proc copy-usb-flash {} {
exec “copy flash:home.shtml usbflash1:”
exec “copy flash:cpconfig-28xx.cfg usbflash1:”
exec “copy flash:cpexpress.tar usbflash1:”
exec “copy flash:home.shtml usbflash1:”
exec “copy flash:HOME.TAR usbflash1:”
exec “copy flash:securedesktop-ios-3.1.1.45-k9.pkg usbflash1:”
exec “copy flash:sslclient-win-1.1.4.176.pkg usbflash1:”
exec “copy flash:music-on-hold.au usbflash1:”
}

##Type this to trigger the script to run
copy-usb-flash

——————————————————–

Still on the path to CCIE. Will finish review of MPLS and IP Services…and will shoot to finish 2 practice labs this weekend . Projecting a second Lab attempt in September.

Later!
CiscoNinjaNC

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: