Group,
I am trying to create a file in flash and/or nvram using tcl, and I am having no good results. Has anyone had any seen this before?
FRAME1#tclsh FRAME1(tcl)#puts [open "flash:note.txt" w+] {
+>This is a test to see if I can write a file to flash +>}FRAME1(tcl)#tclq FRAME1#dir Directory of flash:/
1 -rw- 16138608 c3620-ik9o3s6-mz. 123-17a.bin16777212 bytes total (441844 bytes free) FRAME1#
FRAME1#show version | inc Version IOS (tm) 3600 Software (C3620-IK9O3S6-M), Version 12.3(17a), RELEASE SOFTWARE (fc2) ROM: System Bootstrap, Version 11.1(20)AA2, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) ROM: 3600 Software (C3620-IK9O3S6-M), Version 12.3(17a), RELEASE SOFTWARE (fc2) X.25 software, Version 3.0.0.
any ideas why the file is not create the file in flash? I also have tried to create the file to nvram
FRAME1(tcl)#puts [open "nvram:note.txt" w+] {
+>This is a test to see if I can write a file to flash +>}FRAME1(tcl)#tclq FRAME1#dir nvram: Directory of nvram:/
27 -rw- 1953 startup-config 28 ---- 5 private-config 1 -rw- 0 ifIndex-table30712 bytes total (27678 bytes free)
I have tried this on another system as well, with the same results; It does not work.
Appears to work on a linux box, so I know that the commands are correct!
servnet1:~# tclsh % puts [open "/root/note.txt" w+] { test test } % ? invalid command name "?" % exit servnet1:~# ls dbootstrap_settings note.txt ssh hwinfo.txt script.exp system-info install-report.template sendmail.cf web100clt libssh-2_0.2+svn20070321-4_i386.deb spamass.sock webmin-1.270 mbox sqm-plugins webmin-1.270.tar.gz servnet1:~# ls -l note.txt
-rw-r--r-- 1 root root 12 2008-08-11 14:33 note.txt servnet1:~# cat note.txt
test test
servnet1:~#
Can someone shed some light on this, maybe someone else is having issues with the same thing.
Thanks