Wiki source code of Instalação de Patch via CLI

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

Show last authors
1 Tempo estimado
2
3 |**No.**|**Operation Item**|**Estimated Time (Unit: Minute)**
4 |1|Check the device status. |3
5 |2|Save and back up the data.|5
6 |3|Load the patch.|30
7 |4|Activate and run the patch.|20
8 |5|Verify the patch installation.|1
9
10 Preparando para a Instalar
11
12 ~1. Verificando a versão do sistema
13
14 MA5800-X7(config)#**display language**
15
16 { <cr>||<K> }:                                                                 
17
18
19 Command:                                                                     
20
21 display language                                                     
22
23 Local:                                                                       
24
25 Description: CHINESE SIMPLIFIED (DEFAULT LANGUAGE)                       
26
27 Version: MA5800V100R018C00                                           
28
29 Encoding:  GBK                                                         
30
31
32 General:                                                                     
33
34 Description: ENGLISH (DEFAULT LANGUAGE)                                  
35
36 Version: MA5800V100R018C00                                           
37
38 Encoding:  ANSI 
39
40
41 MA5800-X7(config)#**display patch all**
42
43 { <cr>||<K> }:                                                                 
44
45
46 Command:                                                                     
47
48 display patch all                                                    
49
50 Software Version:MA5800V100R018C00                                           
51
52 SPH105                                                                       
53
54 HP1010; HP1020                                                               
55
56 HP1102                                                                       
57
58 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
59
60 Current Patch State:                                                         
61
62 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
63
64 Patch Name  Patch State Delivery Attribute Dependency      
65
66 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
67
68 SPH105  running common hot patch NO              
69
70 HP1010  running common hot patch NO              
71
72 HP1020  running common hot patch YES             
73
74 HP1102  running common hot patch NO              
75
76 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
77
78 Total:4                                                                      
79
80 Patches in the system cannot be rolled back  
81
82 2. Checar o estado do equipamento
83
84 MA5800-X2>display board 0
85
86 { <cr>||<K> }:
87
88
89 Command:
90
91 display board 0
92
93 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
94
95 SlotID  BoardName  Status  SubType0 SubType1  Online/Offline
96
97 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
98
99 0 H901PISA Normal                          
100
101 1 H902GPSF Normal                          
102
103 2    
104
105 3 H901MPSA Standby_failed  CPCA Offline 
106
107 4 H901MPSA Active_normal CPCA            
108
109 5    
110
111 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
112
113 3. Backup do banco de dados:
114
115 MA5800-X7(config)#**backup data sftp 10.11.104.1 sysdata.dat**
116
117 Please save database file before backup, or the database file that is backed 
118
119 up may not be the latest one. Are you sure to continue? (y/n)[n]: **y**
120
121
122 MA5800-X7(config)#**backup configuration sftp 10.11.104.1 config.txt**
123
124 Please save configuration file before backup, or the configuration file that 
125
126 is backed up may not be the latest. Are you sure to continue? (y/n)[n]:**y**
127
128 **~-~-~-~-End**
129
130 4. Instalando o arquivo de Patch:
131
132 1. Load, activate and run the Patch file **V100R018C00SPH109_wholepatch_MPLB_TDC**.
133
134 MA5800-X7(config)#**load patch sftp 10.11.104.1 V100R018C00SPH109_wholepatch_MPLB_TDC**
135
136 MA5800-X7(config)#**patch activate SPH109**
137
138 MA5800-X7(config)#**patch run SPH109**
139
140
141 5. Verificando:
142
143 Run the following commands to check whether the patch is installed correctly.
144
145 MA5800-X7(config)#**display patch all**
146
147 { <cr>||<K> }:                                                                 
148
149
150 Command:                                                                     
151
152 display patch all                                                    
153
154 Software Version:MA5800V100R018C00                                           
155
156 SPH109                                                                       
157
158 HP1010                                                                       
159
160 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
161
162 Current Patch State:                                                         
163
164 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
165
166 Patch Name  Patch State Delivery Attribute Dependency      
167
168 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
169
170 SPH109  running common hot patch NO              
171
172 HP1010  running common hot patch NO              
173
174 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
175
176 Total:2                                                                      
177
178 Last Patch State:                                                            
179
180 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
181
182 Patch Name  Patch State Delivery Attribute Dependency      
183
184 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
185
186 SPH105  running common hot patch NO              
187
188 HP1010  running common hot patch NO              
189
190 HP1020  running common hot patch YES             
191
192 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
193
194 6. Voltando um Patch:
195
196 Procedimento:
197
198 ~1. Obtenha o pacote combinado da versão fonte, e coloque no servidor de TFTP.
199
200 2. Obtenha o banco de dados que foi feito o backup antes do procedimento de backup, e coloque no servidor de TFTP.
201
202 {{warning}}
203 **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.
204 {{/warning}}
205
206 3. Carregue o arquivo combinado.
207
208 Execute:
209
210 load packetfile
211
212 {{info}}
213 Execute: **display progress load** para visualizar o andamento do carregamento.
214 {{/info}}
215
216 Execute: load data para carregar o backup do banco de dados.
217
218 Execute: upgrade para resetar o sistema.
219
220 Exemplo:
221
222 * The SFTP file transfer mode is used.
223 * The IP address of the file transfer server is **x.x.x.x**.
224 * The combined package file is
225
226 **V100R018C00HP1102_wholepackage(SPC100)_MPLB_for_TDC.bin**.
227
228 * The database file that is backed up before the upgrade is **sysdata.dat**.
229
230 MA5800-X7(config)#**load packetfile sftp x.x.x.x V100R018C00HP1102_wholepackage(SPC100)_MPLB_for_TDC.bin**
231 The new packet file will overwrite the old one
232
233 Rollback function will be disabled
234
235 Be sure that the system needn't this function 
236
237 Are you sure to load new packet file? (y/n)[n]:**y**
238
239
240 MA5800-X7(config)#**load data sftp x.x.x.x sysdata.dat all**
241 The new database will overwrite the old one
242 Rollback function will be disabled
243 Be sure that the system needn't this function
244 It's irreversible. Are you sure to load new database? (y/n)[n]:**y**
245
246 MA5800-X7(config)#**upgrade**
247 { <cr>|emergency-call-protect<K>|issu<K>|mpls<K> }: 
248
249
250 Command:
251
252 upgrade 
253
254 Software upgrades will lead to business interruption, continue? (y/n)[n]:**y**
Maila Networks