
Document ID: 116214
Updated: Aug 02, 2013
Contributed by Martin Nash, Cisco TAC Engineer.
Contents
Introduction
This document describes the process used to copy a configuration or text file to a router that does not have any file transfer access.
Copy Files to a Router through Telnet
If your router supports Tool Command Language (Tcl), you can create a file in the Tcl Shell (Tclsh) interpreter, paste the text through a telnet session into a Tcl string, and write the text string to the file.
In order to do this, complete these steps:
- Start the Tclsh interpreter.
- Type puts [open "flash:filename" w+] { at the Tcl prompt.
- Copy and paste the file contents into the field. Ensure that each curly bracket is paired correctly (no open-ended brackets).
- After the file contents are pasted, enter } into the field and press ENTER.
- In order to end the Tclsh session, enter the tclquit command.
Your text file should be on the router flash within the filename specified.
Open a Support Case (Requires a Cisco Service Contract.)
Related Cisco Support Community Discussions
The Cisco Support Community is a forum for you to ask and answer questions, share suggestions, and collaborate with your peers.
Refer to Cisco Technical Tips Conventions for information on conventions used in this document.