cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1304
Views
3
Helpful
9
Replies

Error setting tcl source to flash

ubuntu_guy
Level 1
Level 1

I'm trying to set the tcl source to the flash card on an 1861 router with the following command;

TestBox(tcl)#source flash:101.tcl

and I get the following message;

couldn't read file "flash:101.tcl": File not found

I've copied the file to the flash card by putting the cf in my pc and just dragging it there. What's the proper syntax to set source to flash?

I've tried flash0 and flash1 with the same result.

1 Accepted Solution

Accepted Solutions

Richard

I wonder if when in flash the filename cannot use digits because it seems once you changed it then it tried to execute the script. I did look into this but could not find any restrictions on the filename you can use.

The new error message you are getting seems to be from the script actually executing but it cannot find the route you are trying to delete (if indeed that is what the script is trying to do).

What exactly is the script trying to do ?

Jon

View solution in original post

9 Replies 9

Jon Marshall
Hall of Fame
Hall of Fame

Can you post output of "dir /all" from your router.

Jon

TestBox#dir /all
Directory of flash:/

    1  -rw-        7015  Nov 29 2011 16:02:28 +00:00  CCPBackup2011-11-29_09_59_54
    2  -rw-        2898  Sep 20 2010 12:56:40 +00:00  cpconfig-18xx.cfg
    3  -rw-     2938880  Sep 20 2010 12:56:58 +00:00  cpexpress.tar
    4  -rw-        1038  Sep 20 2010 12:57:06 +00:00  home.shtml
    5  -rw-      122880  Sep 20 2010 12:57:14 +00:00  home.tar
    6  -rw-     1697952  Sep 20 2010 12:57:30 +00:00  securedesktop-ios-3.1.1.45-k9.pkg
    7  -rw-      415956  Sep 20 2010 12:57:42 +00:00  sslclient-win-1.1.4.176.pkg
    8  -rw-         720   Dec 6 2011 17:15:54 +00:00  vlan.dat
    9  -rw-    40671228  Feb 28 2011 14:10:14 +00:00  c1861-advipservicesk9-mz.124-24.T4.bin
   10  -rw-      344239  Nov 11 2010 10:36:14 +00:00  dsp31.9-1-1TH1-16.sbn
   11  -rw-     1617259  Nov 11 2010 10:36:20 +00:00  jar31sccp.9-1-1TH1-16.sbn
   12  -rw-         661  Nov 11 2010 10:35:48 +00:00  SCCP31.9-1-1SR1S.loads
   13  -rw-         661  Nov 11 2010 10:35:54 +00:00  term31.default.loads
   14  -rw-     2911906  Nov 11 2010 10:36:08 +00:00  apps31.9-1-1TH1-16.sbn
   15  -rw-      521480  Nov 11 2010 10:36:00 +00:00  cnu31.9-1-1TH1-16.sbn
   16  -rw-     2189492  Nov 11 2010 10:36:26 +00:00  cvm31sccp.9-1-1TH1-16.sbn
   17  -rw-    48934392  Nov 29 2011 09:27:56 +00:00  c1861-advipservicesk9-mz.151-4.M2.bin
   18  -rw-         205   Dec 6 2011 11:03:18 +00:00  101.TCL

128729088 bytes total (26312704 bytes free)

Richard

Could you try -

source flash:/101.tcl

Jon

yep I did that right after running the dir /all command . I've even tried changing the case of the tcl to TCL since it displays that way in the flash.

TestBox(tcl)#source flash:/101.tcl

couldn't read file "flash:/101.tcl": File not found

Sorry to be pedantic -

have you also tried "source flash:101.TCL"

if you have can you try renmaing the file to 101.tcl and then try again.

Jon

No worries man I'm here for help after all

I have tried changing the case of the file extension but it gave the same result. I also changed the filename from 101circuit.tcl to 101.tcl to see if that made any difference but it does not.

I also changed the file name to swap.tcl incase the problem is the numeric file name and now I get a different error;

TestBox(tcl)#source flash:\swap.tcl

%No matching route to delete

I get the same errors on a seperate router at another site, it's a 1941 running 15.1.

I also tried using an external source and got the following message;

Nacogdoches(tcl)#source tftp://201.0.0.27/101.tcl

Loading 101.tcl from 201.0.0.27 (via Serial0/1/0.1): !

[OK - 205 bytes]

%No matching route to delete

I'm pretty stuck.

Richard

I wonder if when in flash the filename cannot use digits because it seems once you changed it then it tried to execute the script. I did look into this but could not find any restrictions on the filename you can use.

The new error message you are getting seems to be from the script actually executing but it cannot find the route you are trying to delete (if indeed that is what the script is trying to do).

What exactly is the script trying to do ?

Jon

You are correct sir!

It was the script running. The script was trying to remove my default route and replace it with another one. Then go into one of the interfaces to remove the crypto map and place it on another interface. Basicaly just swap my vpn from one interface/cirruit to another. What I ended up doing was setting up a tftp server on my perimeter instead of using flash as the source, and it worked much more smoothly with tftp, strange but working.

The goal is to have a tcl script that monitors 2 data circuits and establish the vpn on the backup as it detects the primary failing.

Review Cisco Networking products for a $25 gift card