Instalação de Patch via CLI

Last modified by Jean Franco on 2022/06/28 14:27

Tempo estimado

No.Operation ItemEstimated Time (Unit: Minute)
1Check the device status. 3
2Save and back up the data.5
3Load the patch.30
4Activate and run the patch.20
5Verify the patch installation.1

Preparando para a Instalar

1. Verificando a versão do sistema

MA5800-X7(config)#display language

{ <cr>||<K> }:                                                                  

  Command:                                                                      

          display language                                                      

  Local:                                                                        

      Description: CHINESE SIMPLIFIED (DEFAULT LANGUAGE)                        

      Version:     MA5800V100R018C00                                            

      Encoding:    GBK                                                          

  General:                                                                      

      Description: ENGLISH (DEFAULT LANGUAGE)                                   

      Version:     MA5800V100R018C00                                            

      Encoding:    ANSI  

MA5800-X7(config)#display patch all

{ <cr>||<K> }:                                                                  

  Command:                                                                      

          display patch all                                                     

  Software Version:MA5800V100R018C00                                            

  SPH105                                                                        

  HP1010; HP1020                                                                

  HP1102                                                                        

  ------------------------------------------------------------------------      

  Current Patch State:                                                          

  ------------------------------------------------------------------------      

  Patch Name        Patch State     Delivery     Attribute     Dependency       

  ------------------------------------------------------------------------      

  SPH105            running         common       hot patch     NO               

  HP1010            running         common       hot patch     NO               

  HP1020            running         common       hot patch     YES              

  HP1102            running         common       hot patch     NO               

  ------------------------------------------------------------------------      

  Total:4                                                                       

  Patches in the system cannot be rolled back   

2. Checar o estado do equipamento

MA5800-X2>display board 0 

{ <cr>||<K> }: 

  Command:

          display board 0

  -------------------------------------------------------------------------

  SlotID  BoardName  Status          SubType0 SubType1    Online/Offline

  -------------------------------------------------------------------------

  0       H901PISA   Normal                           

  1       H902GPSF   Normal                           

  2     

  3       H901MPSA   Standby_failed  CPCA                 Offline  

  4       H901MPSA   Active_normal   CPCA             

  5     

  -------------------------------------------------------------------------

3. Backup do banco de dados:

MA5800-X7(config)#backup data sftp 10.11.104.1 sysdata.dat

  Please save database file before backup, or the database file that is backed  

up may not be the latest one. Are you sure to continue? (y/n)[n]: y

MA5800-X7(config)#backup configuration sftp 10.11.104.1 config.txt

  Please save configuration file before backup, or the configuration file that  

is backed up may not be the latest. Are you sure to continue? (y/n)[n]:y

----End

 4. Instalando o arquivo de Patch:

  1. Load, activate and run the Patch file V100R018C00SPH109_wholepatch_MPLB_TDC.

MA5800-X7(config)#load patch sftp 10.11.104.1 V100R018C00SPH109_wholepatch_MPLB_TDC

MA5800-X7(config)#patch activate SPH109

MA5800-X7(config)#patch run SPH109

5. Verificando:

Run the following commands to check whether the patch is installed correctly.

MA5800-X7(config)#display patch all

{ <cr>||<K> }:                                                                  

  Command:                                                                      

          display patch all                                                     

  Software Version:MA5800V100R018C00                                            

  SPH109                                                                        

  HP1010                                                                        

  ------------------------------------------------------------------------      

  Current Patch State:                                                          

  ------------------------------------------------------------------------      

  Patch Name        Patch State     Delivery     Attribute     Dependency       

  ------------------------------------------------------------------------      

  SPH109            running         common       hot patch     NO               

  HP1010            running         common       hot patch     NO               

  ------------------------------------------------------------------------      

  Total:2                                                                       

  Last Patch State:                                                             

  ------------------------------------------------------------------------      

  Patch Name        Patch State     Delivery     Attribute     Dependency       

  ------------------------------------------------------------------------      

  SPH105            running         common       hot patch     NO               

  HP1010            running         common       hot patch     NO               

  HP1020            running         common       hot patch     YES              

  ------------------------------------------------------------------------      

6. Voltando um Patch:

Procedimento:

1. Obtenha o pacote combinado da versão fonte, e coloque no servidor de TFTP.

2. Obtenha o banco de dados que foi feito o backup antes do procedimento de backup, e coloque no servidor de TFTP.

CUIDADO: Você precisa usar o banco de dados da versão que foi feito o backup antes de atualizar, caso contrário a config pode não funcionar.

3. Carregue o arquivo combinado.

Execute:

load packetfile

Execute: display progress load para visualizar o andamento do carregamento.

Execute: load data para carregar o backup do banco de dados.

Execute: upgrade para resetar o sistema.

Exemplo:

  • The SFTP file transfer mode is used.
  • The IP address of the file transfer server is x.x.x.x.
  • The combined package file is

V100R018C00HP1102_wholepackage(SPC100)_MPLB_for_TDC.bin.

  • The database file that is backed up before the upgrade is sysdata.dat.

MA5800-X7(config)#load packetfile sftp x.x.x.x V100R018C00HP1102_wholepackage(SPC100)_MPLB_for_TDC.bin
  The new packet file will overwrite the old one                                

  Rollback function will be disabled                                            

  Be sure that the system needn't this function                                 

  Are you sure to load new packet file? (y/n)[n]:y

MA5800-X7(config)#load data sftp x.x.x.x sysdata.dat all
  The new database will overwrite the old one
  Rollback function will be disabled
  Be sure that the system needn't this function
  It's irreversible. Are you sure to load new database? (y/n)[n]:y

MA5800-X7(config)#upgrade
{ <cr>|emergency-call-protect<K>|issu<K>|mpls<K> }:                             

  Command:                                                                      

          upgrade                                                               

  Software upgrades will lead to business interruption, continue? (y/n)[n]:y

Tags:
    
Maila Networks