Saturday, January 7, 2012

Write text into IOS flash file system through tclsh

  • Start tclsh;
  • Enter puts [open "flash:filename" w+] {Do not hit the ENTER key at the end of the line
  • Copy-paste the file contents. The contents should not include unmatched curly right brackets (every curly right bracket has to be preceded by a matching curly left bracket).
  • After the file contents have been pasted, enter } and press ENTER.
  • End the tclsh session with tclquit.

router(tcl)#puts [open "flash:text-file-name" w+] {
+> Enter file text here
+> Or, paste text from another file inside the brackets

No comments:

YouTube Channel