venerdì 22 gennaio 2010

Recovery CatOS Cisco WS-X4014

Come recuperare una Supervisor Cisco avviando da CatOS su server tftp.
Ci serve:
  1. PC con TFTP server installato (quello della Sun o qualsiasi altra cosa va bene!);
  2. Supervisor non compatibile con chassis causa CatOS;
  3. Una CatOS compatibile (nell'esempio sottostante si aggiorna da una cat4000.6-3-5 ad una cat4000-k8.8-4-9-GLX);
  4. cavo console e cavo eth;

Ecco di seguito i principali comandi:



! configuro l'interfaccia ethernet a cui collegherò il server TFTP
rommon 4 >set interface me1 192.168.1.1 255.255.255.0

12:19.140406: No gateway has been specified
12:19.141336: Please set TftpServer variable to do tftp downloads
12:19.142823: ig0: 00:0f:f7:c3:57:3e is 192.168.1.1
12:19.143511: netmask: 255.255.255.0
12:19.143916: broadcast: 192.168.1.255
12:19.144358: gateway: 0.0.0.0
rommon 11 >tftpserver=192.168.1.2
rommon 12 >set
PS1=rommon ! >
DiagBootMode=post
vitConsecTimeouts=31
vitTimeouts=565
MemorySize=64
ResetCause=198
TmpfsAddr=2197815296
TmpfsSize=12582912
TmpfsDirectorySize=10240
DiagFreePageLimit=12288
AutobootStatus=fail
tftpserver=192.168.1.2
?=0
BOOT=bootflash:cat4000.6-3-4.bin,1;
CONFIG_FILE=bootflash:switch.cfg
WHICHBOOT=bootflash:cat4000.6-3-4.bin
ROMVERSION=5.4(1)
rommon 13 >boot cat4000-k8.8-4-9-GLX.bin

! aspetto che l'apparato termini il boot da tftp (cat4000-k8.8-4-9-GLX.bin risiede infatti sul server TFTP)
17:03.033549: Loading file 192.168.1.2:cat4000-k8.8-4-9-GLX.bin17:51.838089: 4806984 bytes received (checksum 0x661c)
#################################
Starting Off-line Diagnostics
Mapping in TempFs
Board type is WS-X4013
DiagBootMode value is "post"
Loading diagnostics...
[...]

Cisco Systems, Inc. Console


Enter password:

Console> Console> Console> Console> en
Enter password:Console> (enable)
! procedo con il normale upgrade della macchina
Console> (enable) copy tftp flash
IP address or name of remote host []? 192.168.1.2Name of file to copy from []? cat4000-k8.8-4-9-GLX.binFlash device [bootflash]? Name of file to copy to [cat4000-k8.8-4-9-GLX.bin]? 11478852 bytes available on device bootflash, proceed (y/n) [n]? yCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
File has been copied successfully.
Console> (enable)
Console> (enable)                    
Console> (enable) verify bootflash:cat4000-k8.8-4-9GLX.bin
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
Starting verification on file bootflash:cat4000-k8.8-4-9-GLX.bin.
.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
File bootflash:cat4000-k8.8-4-9-GLX.bin verified and is Ok.

Console> (enable)
Console> (enable)
! modifico la corretta variabile di boot ed elimino la precedente
Console> (enable) set boot system flash  bootflash:cat4000-k8.8-4-9-GLX.bin
BOOT variable = bootflash:cat4000.6-3-5.bin,1;bootflash:cat4000-k8.8-4-9-GLX.bin,1;
Console> (enable)
Console> (enable) clear boot system flash bootflash:cat4000.6-3-4.bin
BOOT variable = bootflash:cat4000-k8.8-4-9-GLX.bin,1;
Console> (enable)
Console> (enable) delete bootflash:cat4000.6-3-4.bin
Console> (enable)
Console> (enable)
Console> (enable) squeeze bootflash:
All deleted files will be removed, proceed (y/n) [n]? y
Squeeze operation may take a while, proceed (y/n) [n]? y
coErasing squeeze buffer
Erasing squeeze log
Console> (enable)
Console> (enable)
Console> (enable) sh boot
BOOT variable = bootflash:cat4000-k8.8-4-9-GLX.bin,1;

CONFIG_FILE variable = bootflash:switch.cfg

Configuration register is 0x2
ignore-config: disabled
auto-config: non-recurring
console baud: 9600
boot: image specified by the boot system commands
! per precauzione, carico un'altra CatOS compatibile (cat4000-k8.8-4-2-GLX.bin)
Console> (enable)
Console> (enable) copy tftp flash
IP address or name of remote host [192.168.1.2]?
Name of file to copy from [cat4000-k8.8-4-9-GLX.bin]? cat4000-k8.8-4-2-GLX.bin
Flash device [bootflash]?
Name of file to copy to [cat4000-k8.8-4-2-GLX.bin]?
10790328 bytes available on device bootflash, proceed (y/n) [n]? yCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
File has been copied successfully.
Console> (enable)           
Console> (enable) verify bootflash:cat4000-k8.8-4-2-GLX.bin
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCStarting verification on file bootflash:cat4000-k8.8-4-2-GLX.bin.
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
File bootflash:cat4000-k8.8-4-2-GLX.bin verified and is Ok.

Console> (enable)
Console> (enable) set boot system flash bootflash:cat4000-k8.8-4-2-GLX.bin
BOOT variable = bootflash:cat4000-k8.8-4-9-GLX.bin,1;bootflash:cat4000-k8.8-4-2-
GLX.bin,1;
Console> (enable)
Console> (enable)
Console> (enable)
Console> (enable) reset
commenti dell'utente; comandi "obbligatori"; comandi consigliati.
riavviando dovrebbe partire la CatOS prescelta come primaria!!!

    Nessun commento: