TFTP Error

Hi guys, i am doing backup for all the IOS, and configuration files, the company has a catalyst 4000 that i had no problem with, but i can not copy the flash from the rest of the switches (3750, 3550, and

2950), ONLY THE FLASH, i was able to copy the configuration file and the vlan database file from all. I keep getting an error saying at the end "No such file or directory". I tried the command at home on my 2610 just incase to make sure that i am writing the right syntax and it works, Thx.
Reply to
Andy
Loading thread data ...

Sorry, i ment the IOS instaed of the FLASH. i am having a problem copying the IOS.

Reply to
Andy

Please post the output of one of your attempts to copy the IOS to a tftp server

plus the output of "dir all"

Reply to
Merv

%Error opening flash:c2950-i6q4l2-mz.121-19.EA1c.bin (No such file or directory)

Reply to
Andy

and a dir flash: shows that file as exisitng ???

Reply to
Merv

sorry i could not show u the dir output cause i am not at work at this moment but i had the error output on me. but the file shows in the output of the dir, and show flash.

Reply to
Andy

Was the image installed using the aarchive command ?

Is the image in the "root" directory on the flash: filesystem or in a sub-directory ?

Reply to
Merv

Some TFTP servers require the correct permissions on the destination file and that the file exist - even if blank. Check your TFTP docs.

Reply to
none

OK Merv, i guess you were right, i do not think the ios shows in the flash, here is the output of 2 switches the first one is 2950 and i could copy the flash, while the other one is a 2750 and i could not

2950 Switch Directory of flash:/ 2 -rwx 109 Mar 01 1993 00:02:59 +00:00 info 3 -rwx 3086328 Mar 01 1993 00:04:41 +00:00 c2950-i6q4l2-mz.121-22.EA2.bin 4 drwx 3968 Mar 01 1993 00:05:13 +00:00 html 337 -rwx 109 Mar 01 1993 00:05:45 +00:00 info.ver 338 -rwx 335466 Mar 01 1993 00:05:58 +00:00 c2950-hdiag-mz.121-9.EA1 339 -rwx 313 Jan 01 1970 00:00:43 +00:00 env_vars 340 -rwx 2656 Mar 01 1993 00:06:41 +00:00 vlan.dat 341 -rwx 25 Mar 01 1993 00:46:34 +00:00 private-config.text 342 -rwx 1048 Mar 01 1993 00:46:34 +00:00 multiple-fs 344 -rwx 5283 Mar 01 1993 00:46:34 +00:00 config.text

3750 Switch CORE#dir /all Directory of flash:/

2 -rwx 2523 Mar 04 1993 01:14:18 config.text 3 -rwx 2656 Mar 28 1993 21:39:12 vlan.dat 5 drwx 192 Mar 01 1993 00:04:04 c3750-i9-mz.121-19.EA1c 85 -rwx 47 Mar 04 1993 01:14:18 private-config.text

15998976 bytes total (9544704 bytes free)

Notice that the size of the c3750-i9-mz.121-19.EA1c is 192, so if it does not show where is it and how can i back it up. They are using ciscoworks here, maybe this will help, thanks guys.

Reply to
Andy

Update, the problem is only in the 3750 Switches.

3750 Switch CORE#dir /all Directory of flash:/

2 -rwx 2523 Mar 04 1993 01:14:18 config.text 3 -rwx 2656 Mar 28 1993 21:39:12 vlan.dat 5 drwx 192 Mar 01 1993 00:04:04 c3750-i9-mz.121-19.EA1c

85 -rwx 47 Mar 04 1993 01:14:18 private-config.text

15998976 bytes total (9544704 bytes free)

Reply to
Andy

on teh 3750, notice that file attributes are "drwx" - these are UNIX-like file attributes and the "d" means that the entry is a directory. Also notice that the entry does not have a .bin extension

3750 Switch CORE#dir /all Directory of flash:/ 2 -rwx 2523 Mar 04 1993 01:14:18 config.text 3 -rwx 2656 Mar 28 1993 21:39:12 vlan.dat 5 drwx 192 Mar 01 1993 00:04:04 c3750-i9-mz.121-19.EA1c 85 -rwx 47 Mar 04 1993 01:14:18 private-config.text

so issue the command "cd c3750-i9-mz.121-19.EA1c" then issue the dir command again

also try dir /all /recurse

Reply to
Merv

command might be "dir /recurse flash:"

Reply to
Merv

Hi merv, i found the file, but i have a new error now and it says permission denied, i checked the 3750 guide and they mentioned the archive copy-sw command, as well file permission " drwx: directory, read, write and execute? thx.

CORE#cd c3750-i9-mz.121-19.EA1c CORE#dir Directory of flash:/c3750-i9-mz.121-19.EA1c/

6 drwx 2432 Mar 01 1993 00:03:11 html 83 -rwx 3448834 Mar 01 1993 00:04:04 c3750-i9-mz.121-19.EA1c.bin 84 -rwx 430 Mar 01 1993 00:04:04 info

15998976 bytes total (9544704 bytes free)

CORE#copy flash:/c3750-i9-mz.121-19.EA1c/c3750-i9-mz.121-19.EA1c.bin tftp Address or name of remote host []? 10.80.12.10 Destination filename [/c3750-i9-mz.121-19.EA1c/c3750-i9-mz.121-19.EA1c.bin]? TFTP: error code 2 received - File cannot be created+-^Fq.EA1c5rKV+^F^A^B^A ^B^A^PNy^E

%Error opening tftp://10.80.12.10//c3750-i9-mz.121-19.EA1c/c3750-i9-mz.121-19.EA1c.bin (Permission denied)

Reply to
Andy

Reply to
Merv

This error occurred because the directory "c3750-i9-mz.121-19.EA1c" does not exist under the /tftpboot directory on your TFTP server

On the destination file name , simplyleave off the directory name and it should work

Thus use this copy command

copy flash:/c3750-i9-mz.121-19.EA1c/c3750-i9-mz.121-19.EA1c.bin tftp://10.80.12.10/c3750-i9-mz.121-19.EA1c.bin

Place the above command into a notepad window so it is all on line line and then copy & paste into the router CLI session

Reply to
Merv

Thx Merv, i did back-up the IOS.

Reply to
Andy

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.