<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-23021255.post1160767159114505067..comments</id><updated>2010-03-18T11:21:14.863+01:00</updated><title type='text'>Comments on Cisco IOS hints and tricks: Copy the text files into router's flash through a ...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.ioshints.info/feeds/1160767159114505067/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html'/><author><name>Ivan Pepelnjak</name><uri>http://www.blogger.com/profile/13457151406311272386</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-23021255.post-6323198124196542088</id><published>2010-03-18T11:21:14.000+01:00</published><updated>2010-03-18T11:21:14.000+01:00</updated><title type='text'>Hello,

I want to get the running config of a remo...</title><content type='html'>Hello,&lt;br /&gt;&lt;br /&gt;I want to get the running config of a remote router by using tcl. Could you please show me how since I am new to TCL.&lt;br /&gt;&lt;br /&gt;Any help will be highly appreciated !&lt;br /&gt;&lt;br /&gt;Nguyen Su Tam</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/6323198124196542088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/6323198124196542088'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1268907674000#c6323198124196542088' title=''/><author><name>Nguyen Su Tam</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-3937258997409253486</id><published>2010-01-03T19:58:01.000+01:00</published><updated>2010-01-03T19:58:01.000+01:00</updated><title type='text'>sorry for the post above, I already find how to do...</title><content type='html'>sorry for the post above, I already find how to do that =)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/3937258997409253486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/3937258997409253486'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1262545081000#c3937258997409253486' title=''/><author><name>corcunda</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-6964941049060745243</id><published>2010-01-03T19:52:46.000+01:00</published><updated>2010-01-03T19:52:46.000+01:00</updated><title type='text'>Hello,

If im using tclsh, I know there is a comma...</title><content type='html'>Hello,&lt;br /&gt;&lt;br /&gt;If im using tclsh, I know there is a command to read a .txt file that is storage in flash: (I mean, with that command, the flash:filename.txt file appear line by line in IOS screen. So I dont need to upload the txt file to my computer to see what is inside...)&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t remmember what command is it, can u help me?&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;Corcunda</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/6964941049060745243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/6964941049060745243'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1262544766000#c6964941049060745243' title=''/><author><name>corcunda</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-2615318720840462012</id><published>2009-07-22T10:47:51.974+02:00</published><updated>2009-07-22T10:47:51.974+02:00</updated><title type='text'>In response to the Anonymous user above, you need ...</title><content type='html'>In response to the Anonymous user above, you need to leave a space between the closing &amp;#39;]&amp;#39; and the &amp;#39;{&amp;#39; to avoid the error you&amp;#39;re seeing.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/2615318720840462012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/2615318720840462012'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1248252471974#c2615318720840462012' title=''/><author><name>DcUK</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-4552683769963706604</id><published>2009-05-20T13:54:10.993+02:00</published><updated>2009-05-20T13:54:10.993+02:00</updated><title type='text'>Hello, 
I am trying to create a tcl script in flas...</title><content type='html'>Hello, &lt;br /&gt;I am trying to create a tcl script in flash  by using this method but it does not work, &lt;br /&gt;it does actually try to execute the tcl script instead of writing it to a file, the output I get is the following :&lt;br /&gt;&lt;br /&gt;Switch(tcl)#puts [open &amp;quot;flash:script&amp;quot; w+]{&lt;br /&gt;file2{&lt;br /&gt;&lt;br /&gt;Switch(tcl)#proc_trust_state {} {&lt;br /&gt;+&amp;gt;set sisb ....................&lt;br /&gt;+&amp;gt;........&lt;br /&gt;+&amp;gt;}}&lt;br /&gt;wrong # args: should be &amp;quot;proc name args body&amp;quot;&lt;br /&gt;Switch(tcl)#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;do you think there is actually a way to do it, am I missing something in the script ? &lt;br /&gt;Let me know. Thanks a lot !&lt;br /&gt;&lt;br /&gt;Ju</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/4552683769963706604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/4552683769963706604'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1242820450993#c4552683769963706604' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-129376932455964880</id><published>2008-10-18T07:58:06.773+02:00</published><updated>2008-10-18T07:58:06.773+02:00</updated><title type='text'>Try executing the same command manually from the C...</title><content type='html'>Try executing the same command manually from the CLI to test if it works. It should not generate any prompts, you might have to use &lt;A HREF="http://blog.ioshints.info/2006/11/reduce-noise-generated-by-cisco-ios.html" REL="nofollow"&gt;file prompt quiet&lt;/A&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/129376932455964880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/129376932455964880'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1224309486773#c129376932455964880' title=''/><author><name>Ivan Pepelnjak</name><uri>http://www.blogger.com/profile/13457151406311272386</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15208754866265736101'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-5054009577197447632</id><published>2008-10-18T07:34:57.864+02:00</published><updated>2008-10-18T07:34:57.864+02:00</updated><title type='text'>Thank you :)I´m using ftp and the configuration is...</title><content type='html'>Thank you :)&lt;BR/&gt;I´m using ftp and the configuration is ok.&lt;BR/&gt;&lt;BR/&gt;Actually, my script is running. But, by the end I would like to copy a file from flash to ftp server and here is the BIG problem of my script.&lt;BR/&gt;&lt;BR/&gt;I use this command to do that:&lt;BR/&gt;&lt;BR/&gt;if [catch {cli_exec $cli1(fd) "copy flash:test ftp://10.0.0.1"} result] {&lt;BR/&gt;   error $result $errorInfo&lt;BR/&gt;}&lt;BR/&gt;&lt;BR/&gt;Well, it runs without any kind of error, but in ftp server the file doesn't appear.&lt;BR/&gt;My question is: is it possible to copy from flash to ftp, while inside tcl script running as a policy?&lt;BR/&gt;Should this command works fine, no ? &lt;BR/&gt;&lt;BR/&gt;If anyone knows how I can do that copy, please help me.&lt;BR/&gt;&lt;BR/&gt;Thanks in advance</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/5054009577197447632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/5054009577197447632'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1224308097864#c5054009577197447632' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-2185516307996116900</id><published>2008-10-08T10:07:11.037+02:00</published><updated>2008-10-08T10:07:11.037+02:00</updated><title type='text'>I'm just guessing ... Storing configurations on a ...</title><content type='html'>I'm just guessing ... Storing configurations on a TFTP server is something I do on a regular basis, and I usually overwrite existing files.&lt;BR/&gt;&lt;BR/&gt;The problem is probably in the configuration of the TFTP server, which rejects an attempt to overwrite existing files.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/2185516307996116900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/2185516307996116900'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1223453231037#c2185516307996116900' title=''/><author><name>Ivan Pepelnjak</name><uri>http://www.blogger.com/profile/13457151406311272386</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15208754866265736101'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-1550084399663441485</id><published>2008-10-07T21:29:51.044+02:00</published><updated>2008-10-07T21:29:51.044+02:00</updated><title type='text'>Hello,I´m doing a script as well. Every time that ...</title><content type='html'>Hello,&lt;BR/&gt;&lt;BR/&gt;I´m doing a script as well. Every time that my script run, it add some data to the flash file that I define.&lt;BR/&gt;I would like to copy the file to tftp server.&lt;BR/&gt;&lt;BR/&gt;Well, the question is, I know how to copy it, the problem is when the file already exists in TFTP, ios says that the file already exists... I doesnt know how to overwrite the file in tftp with the new data.&lt;BR/&gt;&lt;BR/&gt;Anyone knows if there are any command to do that? or any way to do that?&lt;BR/&gt;&lt;BR/&gt;Thanks in advance</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/1550084399663441485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/1550084399663441485'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1223407791044#c1550084399663441485' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-3239488759620517047</id><published>2008-09-24T00:01:48.671+02:00</published><updated>2008-09-24T00:01:48.671+02:00</updated><title type='text'>Thank you :)That was very helpfull.</title><content type='html'>Thank you :)&lt;BR/&gt;That was very helpfull.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/3239488759620517047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/3239488759620517047'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1222207308671#c3239488759620517047' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-5736793849439715319</id><published>2008-09-23T09:37:12.625+02:00</published><updated>2008-09-23T09:37:12.625+02:00</updated><title type='text'>If you want to reopen the file and append more dat...</title><content type='html'>If you want to reopen the file and append more data to it, use a+ instead of w+. &lt;BR/&gt;&lt;BR/&gt;See http://tmml.sourceforge.net/doc/tcl/open.html for details.&lt;BR/&gt;&lt;BR/&gt;If you want to use more than one "puts" statement, store the channel# into a variable and use that variable in puts. For example,&lt;BR/&gt;&lt;BR/&gt;set fl [open ...]&lt;BR/&gt;puts $fl "string"&lt;BR/&gt;puts $fl {string}&lt;BR/&gt;close $fl&lt;BR/&gt;&lt;BR/&gt;See also http://tmml.sourceforge.net/doc/tcl/puts.html (examples)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/5736793849439715319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/5736793849439715319'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1222155432625#c5736793849439715319' title=''/><author><name>Ivan Pepelnjak</name><uri>http://www.blogger.com/profile/13457151406311272386</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15208754866265736101'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-23021255.post-8556995037285187058</id><published>2008-09-23T04:00:03.602+02:00</published><updated>2008-09-23T04:00:03.602+02:00</updated><title type='text'>Hello everyone,I am working with a tcl script on c...</title><content type='html'>Hello everyone,I am working with a tcl script on cisco ios. &lt;BR/&gt;This command has been very helpful puts [open "flash:filename" w+] {. &lt;BR/&gt;however how do I use this repeatedly to append more strings into the same file without losing the previous data from the file?&lt;BR/&gt;&lt;BR/&gt;Secondly, teh command at the end says input is from a file however can I need to use a tcl variable as the input to the command. How can I do this?&lt;BR/&gt;All suggestions are welcomed. Thank you in advance for all teh help.&lt;BR/&gt;&lt;BR/&gt;You can reply back to me at maiyart@msn.com</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/8556995037285187058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23021255/1160767159114505067/comments/default/8556995037285187058'/><link rel='alternate' type='text/html' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html?showComment=1222135203602#c8556995037285187058' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.ioshints.info/2008/01/copy-text-files-into-router-flash.html' ref='tag:blogger.com,1999:blog-23021255.post-1160767159114505067' source='http://www.blogger.com/feeds/23021255/posts/default/1160767159114505067' type='text/html'/></entry></feed>