Copy flash tftp when IOS image is in a folder

here is an example:

switch#sh flash

Directory of flash:/

2 -rwx 99 Feb 24 2005 11:16:03 -05:00 private-config.text
3 -rwx 8149 Feb 24 2005 11:16:03 -05:00 config.text
4 -rwx 804 Jun 10 2004 18:45:09 -04:00 vlan.dat
6 -rwx 342 Jun 10 2004 11:36:32 -04:00 system_env_vars
24 drwx 192 Jun 10 2004 11:36:23 -04:00 c3550-i5q3l2-mz.121-20.EA2
7 -rwx 18 Jun 10 2004 11:36:32 -04:00 env_vars

15998976 bytes total (8269312 bytes free)

c3550-i5q3l2-mz.121-20.EA2 is the directory that the IOS file is in

This gives you the IOS file name in the directory

switch#cd flash:/c3550-i5q3l2-mz.121-20.EA2
switch#sh flash

Directory of flash:/c3550-i5q3l2-mz.121-20.EA2/

25 drwx 2688 Jun 10 2004 11:34:50 -04:00 html
107 -rwx 4219426 Jun 10 2004 11:36:23 -04:00 c3550-i5q3l2-mz.121-20.EA2.bin
108 -rwx 252 Jun 10 2004 11:36:23 -04:00 info

15998976 bytes total (8269312 bytes free)

Next copy the IOS to the tftp server

switch#copy flash tftp
Source filename [flash:/c3550-i5q3l2-mz.121-20.EA2.bin]? flash:/c3550-i5q3l2-mz.121-20.EA2/c3550-i5q3l2-mz.121-20.EA2.bin
Address or name of remote host []? 10.1.1.1
Destination filename [/c3550-i5q3l2-mz.121-20.EA2/c3550-i5q3l2-mz.121-20.EA2.bin]? c3550-i5q3l2-mz.121-20.EA2.bin

That should complete the copy of the IOS to the tftp server when it is in a directory

Comentarios

Entradas populares de este blog

Guía de herramientas básicas para estudiantes: 31 apps y webs imprescindibles para ayudarte con los estudios

Comando FOR para archivos BAT

Policy Based Routing example: route one subnet via ISP A and another via ISP B