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

Version 1.1 by Jean Franco on 2022/06/28 14:15

Hide last authors
Jean Franco 1.1 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
11 Preparando para a Instalar
12
13 ~1. Verificando a versão do sistema
14
15 MA5800-X7(config)#**display language**
16
17 { <cr>||<K> }:                                                                 
18
19
20 Command:                                                                     
21
22 display language                                                     
23
24 Local:                                                                       
25
26 Description: CHINESE SIMPLIFIED (DEFAULT LANGUAGE)                       
27
28 Version: MA5800V100R018C00                                           
29
30 Encoding:  GBK                                                         
31
32
33 General:                                                                     
34
35 Description: ENGLISH (DEFAULT LANGUAGE)                                  
36
37 Version: MA5800V100R018C00                                           
38
39 Encoding:  ANSI 
40
41
42 MA5800-X7(config)#**display patch all**
43
44 { <cr>||<K> }:                                                                 
45
46
47 Command:                                                                     
48
49 display patch all                                                    
50
51 Software Version:MA5800V100R018C00                                           
52
53 SPH105                                                                       
54
55 HP1010; HP1020                                                               
56
57 HP1102                                                                       
58
59 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
60
61 Current Patch State:                                                         
62
63 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
64
65 Patch Name  Patch State Delivery Attribute Dependency      
66
67 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
68
69 SPH105  running common hot patch NO              
70
71 HP1010  running common hot patch NO              
72
73 HP1020  running common hot patch YES             
74
75 HP1102  running common hot patch NO              
76
77 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
78
79 Total:4                                                                      
80
81 Patches in the system cannot be rolled back  
82
83 2. Checar o estado do equipamento
84
85 MA5800-X2>display board 0
86
87 { <cr>||<K> }:
88
89
90 Command:
91
92 display board 0
93
94 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
95
96 SlotID  BoardName  Status  SubType0 SubType1  Online/Offline
97
98 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
99
100 0 H901PISA Normal                          
101
102 1 H902GPSF Normal                          
103
104 2    
105
106 3 H901MPSA Standby_failed  CPCA Offline 
107
108 4 H901MPSA Active_normal CPCA            
109
110 5    
111
112 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
113
114 3. Backup do banco de dados:
115
116 MA5800-X7(config)#**backup data sftp 10.11.104.1 sysdata.dat**
117
118 Please save database file before backup, or the database file that is backed 
119
120 up may not be the latest one. Are you sure to continue? (y/n)[n]: **y**
121
122
123 MA5800-X7(config)#**backup configuration sftp 10.11.104.1 config.txt**
124
125 Please save configuration file before backup, or the configuration file that 
126
127 is backed up may not be the latest. Are you sure to continue? (y/n)[n]:**y**
128
129 **~-~-~-~-End**
130
131 4. Instalando o arquivo de Patch
132
133 1.
134 11.
135 111.
136 1111.
137 11111.
138 111111. Load, activate and run the Patch file **V100R018C00SPH109_wholepatch_MPLB_TDC**.
139
140 MA5800-X7(config)#**load patch sftp 10.11.104.1 V100R018C00SPH109_wholepatch_MPLB_TDC**
141
142 MA5800-X7(config)#**patch activate SPH109**
143
144 MA5800-X7(config)#**patch run SPH109**
145
146
147 5. Verificando:
148
149 Run the following commands to check whether the patch is installed correctly.
150
151 MA5800-X7(config)#**display patch all**
152
153 { <cr>||<K> }:                                                                 
154
155
156 Command:                                                                     
157
158 display patch all                                                    
159
160 Software Version:MA5800V100R018C00                                           
161
162 SPH109                                                                       
163
164 HP1010                                                                       
165
166 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
167
168 Current Patch State:                                                         
169
170 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
171
172 Patch Name  Patch State Delivery Attribute Dependency      
173
174 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
175
176 SPH109  running common hot patch NO              
177
178 HP1010  running common hot patch NO              
179
180 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
181
182 Total:2                                                                      
183
184 Last Patch State:                                                            
185
186 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
187
188 Patch Name  Patch State Delivery Attribute Dependency      
189
190 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
191
192 SPH105  running common hot patch NO              
193
194 HP1010  running common hot patch NO              
195
196 HP1020  running common hot patch YES             
197
198 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-     
199
200 6. Voltando um Patch:
201
202 Procedimento:
203
204 Obtenha o pacote combinado da versão fonte, e coloque no servidor de TFTP.
205
206 Obtenha o banco de dados que foi feito o backup antes do procedimento de backup, e coloque no servidor de TFTP.
207
208 {{warning}}
209 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.
210 {{/warning}}
211
212
Maila Networks