(Prime time)
O upgrade do Cisco Prime Infrastructure 3.0/3.1 (versões suportadas abaixo) para a versão 3.2 é um processo manual, via linha de comando.
Se você estiver em uma versão inferior as listadas, é necessário primeiro fazer o upgrade para uma versão desta lista.
Abaixo o passo-a-passo para fazer o upgrade do Prime Infrasctructure (virtual appliance), sem redundância.
1) Crie um repositório externo.
repository FTP_192.168.0.10
url ftp://192.168.0.10
user ftpuser password cisco123
2) Faça o backup da aplicação NCS.
BrainPI/admin# backup BKP_22_02_18 repository FTP_192.168.0.10 application NCS
DO NOT press ^C while the backup is in progress
Aborting backup with a ^C may terminate the backup operation or the backup file may be corrupted
Backup Started at : 02/22/18 09:25:21
Stage 1 of 7: Database backup …
Database size: 31G
— completed at 02/22/18 09:27:00
Stage 2 of 7: Database copy …
— completed at 02/22/18 09:27:00
Stage 3 of 7: Backing up support files …
— completed at 02/22/18 09:27:16
Stage 4 of 7: Compressing Backup …
— completed at 02/22/18 09:27:46
Stage 5 of 7: Building backup file …
— completed at 02/22/18 09:30:33
Stage 6 of 7: Encrypting backup file …
— completed at 02/22/18 09:31:25
Stage 7 of 7: Transferring backup file …
— completed at 02/22/18 09:31:59
% Backup file created is: BKP_22_02_18-180222-0925__VER3.1.0.92.113_BKSZ29G_CPU4_MEM3G_RAM11G_SWAP15G_APP_CK4259071654.tar.gpg
Total Backup duration is: 0h:6m:38sBrainPI/admin#
BrainPI/admin# show repository FTP_192.168.1.206BKP_22_02_18-180222-0925__VER3.1.0.92.113_BKSZ29G_CPU4_MEM3G_RAM11G_SWAP15G_APP_CK4259071654.tar.gpg
BrainPI/admin#
3) É recomendado instalar um Prime do zero, na mesma versão que esta usando atualmente e restaurar o backup para checar a integridade.
4) Se houver algum backup no repositório default, apague ou mova para um repositório externo.
BrainPI/admin# dir disk:/defaultRepo/
Directory of disk:/defaultRepo/
2588131219 Feb 21 2018 03:36:48 BrainPI-180221-0330__VER3.1.0.92.113_BKSZ29G_CPU4_MEM3G_RAM11G_SWAP15G_APP_CK4238273351.tar.gpg
2622978706 Feb 22 2018 03:36:49 BrainPI-180222-0330__VER3.1.0.92.113_BKSZ29G_CPU4_MEM3G_RAM11G_SWAP15G_APP_CK4273174957.tar.gpg
Usage for disk: filesystem
5419024384 bytes total used
83836833792 bytes free
94030061568 bytes availableBrainPI/admin#
BrainPI/admin# delete disk:/defaultRepo/BrainPI-180221-0330__VER3.1.0.92.113_BKSZ29G_CPU4_MEM3G_RAM11G_SWAP15G_APP_CK4238273351.tar.gpg
BrainPI/admin# delete disk:/defaultRepo/BrainPI-180222-0330__VER3.1.0.92.113_BKSZ29G_CPU4_MEM3G_RAM11G_SWAP15G_APP_CK4273174957.tar.gpgBrainPI/admin#
BrainPI/admin# dir disk:/defaultRepo/
Directory of disk:/defaultRepo/
Usage for disk: filesystem
202809344 bytes total used
89053048832 bytes free
94030061568 bytes available
BrainPI/admin#
5) Copie o arquivo de upgrade (PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz) baixado do site da Cisco para o repositório default.
BrainPI/admin# debug transfer
BrainPI/admin# debug copy 7
BrainPI/admin# copy ftp://192.168.0.10/PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz disk:/defaultRepo
Username: ftpuser
Password:**********
6 [12201]: transfer: cars_xfer.c[279] [admin]: ftp copy in of ftp://192.168.1.206/PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz requested
7 [12201]: transfer: cars_xfer_util.c[261] [admin]: ftp get source – ftp://192.168.1.206/PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz
7 [12201]: transfer: cars_xfer_util.c[262] [admin]: ftp get destination – /localdisk/defaultRepo/PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz
7 [12201]: transfer: cars_xfer_util.c[276] [admin]: initializing curl
7 [12201]: transfer: cars_xfer_util.c[289] [admin]: full url is ftp://192.168.1.206/PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz
BrainPI/admin#
BrainPI/admin# dir disk:/defaultRepo
Directory of disk:/defaultRepo
1497 Feb 22 2018 09:36:32 192.168.1.206
4051803537 Feb 22 2018 09:41:13 PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz
Usage for disk: filesystem
4258582528 bytes total used
84997275648 bytes free
94030061568 bytes available
BrainPI/admin#
6) Pare o serviço NCS. Na versão 3.1 não é obrigatório.
BrainPI/admin# ncs stop
Stopping Prime Infrastructure…
This may take a few minutes…
Prime Infrastructure successfully shutdown.
Plug and Play Gateway is being shut down….. Please wait!!!
Stop of Plug and Play Gateway Completed!!
Stopping SAM daemon…
Checking for SAM daemon again …
SAM Daemon not found…
Stopping DA daemon …
Checking for DA daemon again …
DA Daemon not found…
Completed shutdown of all services
BrainPI/admin#
7) Agora o upgrade de fato. O COMANDO PRECISA SER EXECUTADO NA CONSOLE! Este passo pode demorar horas.
BrainPI/admin# application upgrade PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz defaultRepo
Save the current ADE-OS running configuration? (yes/no) [yes] ?
Generating configuration…
Saved the ADE-OS running configuration to startup successfully
Please ensure you have a backup of the system before proceeding.
Proceed with the application upgrade ? (yes/no) [yes] ?
DO NOT press ^C while the upgrade is in progress
Aborting upgrade with a ^C may leave the system in a unrecoverable state
Initiating Application Upgrade…
Stage 1 of 7: Transferring file …
6 [13913]: transfer: cars_xfer.c[68] [admin]: local copy in of PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz requested
7 [13913]: transfer: cars_xfer_util.c[1197] [admin]: copying /localdisk/defaultRepo/PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz to /storeddata/Installing/.1519303609/PI-Upgrade-3.X_to_3.2.0.0.258.tar.gz….
8) Verifique o status da aplicação. Os serviços devem estar rodando.
BrainPI/admin# ncs status
Health Monitor Server is running. ( [Role] Primary [State] HA not Configured )
Database server is running
FTP Service is running
TFTP Service is running
Matlab Server is running
Matlab Server Instance 1 is running
NMS Server is running.
SAM Daemon is running …
DA Daemon is running …
BrainPI/admin#
Mais informações sobre este procedimento podem ser verificadas aqui.
Até a próxima.
You must be logged in to post a comment.