1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
|
-- ===========================================================================================================
-- Copyright (c) 2004-2018 New H3C Tech. Co., Ltd. All rights reserved.
--
-- Description: ISSU MIB
-- Reference:
-- Version: V1.2
-- History:
-- Revision 1.0 2012-12-20 created by Wang Feng
-- 2013-4-20 modified by Zhu Liuxing
-- Revision 1.1 2014-01-10 change hh3cIssuUpgradeImageIndex and
-- hh3cIssuUpgradeImageURL range by z03030
-- Revision 1.2 2018-04-08 change hh3cIssuUpgradeImageType by l07660
-- ============================================================================================================
HH3C-ISSU-MIB DEFINITIONS ::= BEGIN
IMPORTS
hh3cCommon
FROM HH3C-OID-MIB
Integer32, OBJECT-TYPE, MODULE-IDENTITY, NOTIFICATION-TYPE
FROM SNMPv2-SMI
DisplayString, RowStatus, TruthValue
FROM SNMPv2-TC;
hh3cIssuUpgrade MODULE-IDENTITY
LAST-UPDATED "201301151536Z" -- January 15, 2013 at 15:36 GMT
ORGANIZATION
"New H3C Tech. Co., Ltd."
CONTACT-INFO
"Platform Team New H3C Tech. Co., Ltd.
Haidian District Beijing P.R. China
http://www.h3c.com
Zip:_100085"
DESCRIPTION
"This MIB provides objects for upgrading images on modules in the
system, objects for showing the result of an upgrade operation,
and objects for showing the result of a test operation.
To perform an upgrade operation, a management application
must first read the hh3cIssuUpgradeImageTable table and use the
information in other tables, as explained below. You can
configure a new image name for each image type as listed in
hh3cIssuUpgradeImageTable. The system will use this image on the
particular module at the next reboot.
The management application used to perform an upgrade
operation must first check if an upgrade operation is already
in progress in the system. This is done by reading the
hh3cIssuOpType ('none' indicates that
no other upgrade operation is in progress. Any other value
indicates that an upgrade is already in progress and a new upgrade
operation is not allowed. To start an 'install' operation,
the user must first perform a 'test' operation to examine the
version compatibility between the given set of images
and the running images. Only if the result of the 'test'
operation is 'success' can the user proceed to do an install
operation. The table hh3cIssuTestResultTable
provides the result of the 'test' operation performed by using hh3cIssuOpType.
The table hh3cIssuUpgradeResultTable provides the result of the 'install' operation
performed by using hh3cIssuOpType.
"
REVISION "201301151536Z" -- January 15, 2013 at 15:36 GMT
DESCRIPTION
"Initial version of this MIB module.
Added hh3cIssuUpgradeImageTable hh3cIssuOp hh3cIssuCompatibleResult
hh3cIssuTestResultTable hh3cIssuUpgradeResultTable"
::= { hh3cCommon 133 }
--
-- Node definitions
--
hh3cIssuUpgradeMibObjects OBJECT IDENTIFIER ::= { hh3cIssuUpgrade 1 }
hh3cIssuUpgradeGroup OBJECT IDENTIFIER ::= { hh3cIssuUpgradeMibObjects 1 }
hh3cIssuUpgradeImageTable OBJECT-TYPE
SYNTAX SEQUENCE OF Hh3cIssuUpgradeImageEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A table listing the image variable types that
exist in the device."
::= { hh3cIssuUpgradeGroup 1 }
hh3cIssuUpgradeImageEntry OBJECT-TYPE
SYNTAX Hh3cIssuUpgradeImageEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An hh3cIssuUpgradeImageEntry entry. Each entry provides an
image variable type that exists in the device."
INDEX { hh3cIssuUpgradeImageIndex }
::= { hh3cIssuUpgradeImageTable 1 }
Hh3cIssuUpgradeImageEntry ::=
SEQUENCE {
hh3cIssuUpgradeImageIndex
Integer32,
hh3cIssuUpgradeImageType
INTEGER,
hh3cIssuUpgradeImageURL
DisplayString,
hh3cIssuUpgradeImageRowStatus
RowStatus
}
hh3cIssuUpgradeImageIndex OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Index of each image."
::= { hh3cIssuUpgradeImageEntry 1 }
hh3cIssuUpgradeImageType OBJECT-TYPE
SYNTAX INTEGER
{
boot(1),
system(2),
feature(3),
ipe(4),
patch(5)
}
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"Types of images that the system can run. The value of
this object has five image variable names:
'boot', 'system', 'feature', 'ipe' and 'patch'. This table will then
list these five strings as follows:
hh3cIssuUpgradeImageType
boot
system
feature
IPE
patch
The user can assign images (using hh3cIssuUpgradeImageURL)
to these variables and the system will use the assigned
images to boot."
::= { hh3cIssuUpgradeImageEntry 2 }
hh3cIssuUpgradeImageURL OBJECT-TYPE
SYNTAX DisplayString (SIZE (1..127))
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"This object contains the path of the image
of this entity."
::= { hh3cIssuUpgradeImageEntry 3 }
hh3cIssuUpgradeImageRowStatus OBJECT-TYPE
SYNTAX RowStatus
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"Row-status of image table."
::= { hh3cIssuUpgradeImageEntry 4 }
hh3cIssuOp OBJECT IDENTIFIER ::= { hh3cIssuUpgradeGroup 2 }
hh3cIssuOpType OBJECT-TYPE
SYNTAX INTEGER
{
none(1),
done(2),
test(3),
install(4),
rollback(5)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Command to be executed.
The 'test' command must be performed before the 'install'
command can be executed. The 'install'
command is allowed only if a read of
this object returns 'test' and the value of object
hh3cIssuOpStatus is 'success'.
Command Remarks
none If the user sets this object to 'none', the agent will return a success
without performing an upgrade operation.
done If this object returns any value other than
'none', setting this to 'done' will do
the required cleanup of the previous upgrade
operation and get the system ready for a new
upgrade operation.
test Check the version compatibility and upgrade method
for the given set of image files.
install For all the image entities listed in the
hh3cIssuUpgradeImageTable, perform the required
upgrade operation listed in that table.
rollback Abort the current 'install' operation and roll back
to the previous version.
"
DEFVAL { none }
::= { hh3cIssuOp 1 }
hh3cIssuImageFileOverwrite OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"If you want to overwrite the existing file, set the value of
this object to enable. Otherwise, set the value of this
object to disable."
DEFVAL { true }
::= { hh3cIssuOp 2 }
hh3cIssuOpTrapEnable OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"If you want to enable the trap, set the value of
this object to enable. Otherwise, set the value of this
object to disable."
DEFVAL { true }
::= { hh3cIssuOp 3 }
hh3cIssuOpStatus OBJECT-TYPE
SYNTAX INTEGER
{
none(1),
failure(2),
inProgress(3),
success(4),
rollbackInProgress(5),
rollbackSuccess(6)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Status of the specified operation.
none - No operation was performed.
failure - Specified operation has failed.
inProgress - Specified operation is in progress.
success - Specified operation completed successfully.
rollbackInProgress - Rollback operation is in progress.
rollbackSuccess - Rollback operation completed successfully.
"
DEFVAL { none }
::= { hh3cIssuOp 4 }
hh3cIssuFailedReason OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates the the cause of 'failure' state
of the object 'hh3cIssuOpStatus'.
This object would be a null string if the value of
'hh3cIssuOpStatus' is not 'failure'."
::= { hh3cIssuOp 5 }
hh3cIssuOpTimeCompleted OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates the time when the upgrade operation was completed.
This object would be a null string if hh3cIssuOpType is
'none'. "
::= { hh3cIssuOp 6 }
hh3cIssuLastOpType OBJECT-TYPE
SYNTAX INTEGER
{
none(1),
done(2),
test(3),
install(4),
rollback(5)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This object indicates the previous hh3cIssuOp value.
It will be updated after a new hh3cIssuOp is set and delivered
to the upgrade process.
Command Remarks
none If the user sets this object to 'none', agent will return a success
without performing an upgrade operation.
done If this object returns any value other than
'none', setting this to 'done' will do
the required cleanup of the previous upgrade
operation and get the system ready for a new
upgrade operation.
test Check the version compatibility and upgrade method
for the given set of image files.
install For all the image entities listed in the
hh3cIssuUpgradeImageTable, perform the required
upgrade operation listed in that table.
rollback Abort the current install operation and roll back
to the previous version.
"
DEFVAL { none }
::= { hh3cIssuOp 7 }
hh3cIssuLastOpStatus OBJECT-TYPE
SYNTAX INTEGER
{
none(1),
failure(2),
inProgress(3),
success(4),
rollbackInProgress(5),
rollbackSuccess(6)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This object indicates previous hh3cIssuOpStatus value.
It will be updated after new hh3cIssuOp is set and delivered
to upgrade process.
none - No operation was performed.
failure - Specified operation has failed.
inProgress - Specified operation is active.
success - Specified operation completed successfully.
rollbackInProgress - Rollback operation is in progress.
rollbackSuccess - Rollback operation completed successfully.
"
DEFVAL { none }
::= { hh3cIssuOp 8 }
hh3cIssuLastOpFailedReason OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates the cause of 'failure' state
of the object 'hh3cIssuOpStatus'.
This object would be a null string if the value of
'hh3cIssuOpStatus' is not 'failure'.
The value will be updated when new hh3cIssuOp is set
and delivered to the upgrade process."
::= { hh3cIssuOp 9 }
hh3cIssuLastOpTimeCompleted OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates the previous hh3cIssuOpTimeCompleted value.
The value will be updated when new hh3cIssuOp is set
and delivered to the upgrade process."
::= { hh3cIssuOp 10 }
hh3cIssuUpgradeResultGroup OBJECT IDENTIFIER ::= { hh3cIssuUpgradeMibObjects 2 }
hh3cIssuCompatibleResult OBJECT IDENTIFIER ::= { hh3cIssuUpgradeResultGroup 1 }
hh3cIssuCompatibleResultStatus OBJECT-TYPE
SYNTAX INTEGER
{
none(1),
inCompatible(2),
compatible(3),
failure(4)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Specifies whether the images provided in
hh3cIssuUpgradeImageTable are compatible with each other as
far as this module is concerned.
none - No operation was performed.
inCompatible - The images provided are compatible
and can be run on this module.
compatible - The images provided are incompatible
and can be run on this module.
failure - Failed to get the compatibility.
"
DEFVAL { none }
::= { hh3cIssuCompatibleResult 1 }
hh3cIssuCompatibleResultFailedReason OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates the cause of 'failure' state
of the object 'hh3cIssuCompatibleResultStatus'.
This object would be a null string if the value of
'hh3cIssuCompatibleResultStatus' is not 'failure'."
::= { hh3cIssuCompatibleResult 2 }
hh3cIssuTestResultTable OBJECT-TYPE
SYNTAX SEQUENCE OF Hh3cIssuTestResultEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Shows the result of the test operation, from which you can
see the upgrade method."
::= { hh3cIssuUpgradeResultGroup 2 }
hh3cIssuTestResultEntry OBJECT-TYPE
SYNTAX Hh3cIssuTestResultEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An hh3cIssuTestResultEntry entry. Each entry provides the
test result of a card in the device."
INDEX { hh3cIssuTestResultIndex }
::= { hh3cIssuTestResultTable 1 }
Hh3cIssuTestResultEntry ::=
SEQUENCE {
hh3cIssuTestResultIndex
Integer32,
hh3cIssuTestDeviceChassisID
Integer32,
hh3cIssuTestDeviceSlotID
Integer32,
hh3cIssuTestDeviceCpuID
Integer32,
hh3cIssuTestDeviceUpgradeWay
INTEGER
}
hh3cIssuTestResultIndex OBJECT-TYPE
SYNTAX Integer32 (1..65535)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Internal index, not accessible."
::= { hh3cIssuTestResultEntry 1 }
hh3cIssuTestDeviceChassisID OBJECT-TYPE
SYNTAX Integer32 (0..255)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Chassis ID of the card."
::= { hh3cIssuTestResultEntry 2 }
hh3cIssuTestDeviceSlotID OBJECT-TYPE
SYNTAX Integer32 (0..255)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Slot ID of the card."
::= { hh3cIssuTestResultEntry 3 }
hh3cIssuTestDeviceCpuID OBJECT-TYPE
SYNTAX Integer32 (0..7)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"CPU ID of the card."
::= { hh3cIssuTestResultEntry 4 }
hh3cIssuTestDeviceUpgradeWay OBJECT-TYPE
SYNTAX INTEGER
{
none(1),
reboot(2),
sequenceReboot(3),
issuReboot(4),
serviceUpgrade(5),
fileUpgrade(6),
incompatibleUpgrade(7)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Upgrade method of the device.
none - No operation was performed.
reboot - The upgrade method of this device is Reboot.
sequenceReboot - The upgrade method of this device is SequenceReboot.
issuReboot - The upgrade method of this device is IssuReboot.
serviceUpgrade - The upgrade method of this device is ServiceReboot.
fileUpgrade - The upgrade method of this device is FileReboot.
incompatibleUpgrade - The upgrade method of this device is IncompatibleUpgrade.
"
DEFVAL { none }
::= { hh3cIssuTestResultEntry 5 }
hh3cIssuUpgradeResultTable OBJECT-TYPE
SYNTAX SEQUENCE OF Hh3cIssuUpgradeResultEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Shows the result of the install operation."
::= { hh3cIssuUpgradeResultGroup 3 }
hh3cIssuUpgradeResultEntry OBJECT-TYPE
SYNTAX Hh3cIssuUpgradeResultEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An hh3cIssuUpgradeResultEntry entry. Each entry provides the
upgrade result of a card in the device."
INDEX { hh3cIssuUpgradeResultIndex }
::= { hh3cIssuUpgradeResultTable 1 }
Hh3cIssuUpgradeResultEntry ::=
SEQUENCE {
hh3cIssuUpgradeResultIndex
Integer32,
hh3cIssuUpgradeDeviceChassisID
Integer32,
hh3cIssuUpgradeDeviceSlotID
Integer32,
hh3cIssuUpgradeDeviceCpuID
Integer32,
hh3cIssuUpgradeState
INTEGER,
hh3cIssuDeviceUpgradeWay
INTEGER,
hh3cIssuUpgradeDeviceStatus
INTEGER,
hh3cIssuUpgradeFailedReason
DisplayString
}
hh3cIssuUpgradeResultIndex OBJECT-TYPE
SYNTAX Integer32 (1..65535)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Internal Index, not accessible."
::= { hh3cIssuUpgradeResultEntry 1 }
hh3cIssuUpgradeDeviceChassisID OBJECT-TYPE
SYNTAX Integer32 (0..255)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Chassis ID of the card."
::= { hh3cIssuUpgradeResultEntry 2 }
hh3cIssuUpgradeDeviceSlotID OBJECT-TYPE
SYNTAX Integer32 (0..255)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Slot ID of the card."
::= { hh3cIssuUpgradeResultEntry 3 }
hh3cIssuUpgradeDeviceCpuID OBJECT-TYPE
SYNTAX Integer32 (0..7)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"CPU ID of the card."
::= { hh3cIssuUpgradeResultEntry 4 }
hh3cIssuUpgradeState OBJECT-TYPE
SYNTAX INTEGER
{
init(1),
loading(2),
loaded(3),
switching(4),
switchover(5),
committing(6),
committed(7),
rollbacking(8),
rollbacked(9)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Upgrade status of the device.
init -The current status of the device is Init.
loading -The current status of the device is Loading.
loaded -The current status of the device is Loaded.
switching -The current status of the device is Switching.
switchover -The current status of the device is Switchover.
committing -The current status of the device is Committing.
committed -The current status of the device is Committed.
rollbacking -The current status of the device is Rollbacking.
rollbacked -The current status of the device is Rollbacked.
"
::= { hh3cIssuUpgradeResultEntry 5 }
hh3cIssuDeviceUpgradeWay OBJECT-TYPE
SYNTAX INTEGER
{
none(1),
reboot(2),
sequenceReboot(3),
issuReboot(4),
serviceUpgrade(5),
fileUpgrade(6),
incompatibleUpgrade(7)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Upgrade method of the card.
none - No operation was performed.
reboot - The upgrade method of this device is Reboot.
sequenceReboot - The upgrade method of this device is SequenceReboot.
issuReboot - The upgrade method of this device is IssuReboot.
serviceUpgrade - The upgrade method of this device is ServiceReboot.
fileUpgrade - The upgrade method of this device is FileReboot.
incompatibleUpgrade - The upgrade method of this device is IncompatibleUpgrade.
"
::= { hh3cIssuUpgradeResultEntry 6 }
hh3cIssuUpgradeDeviceStatus OBJECT-TYPE
SYNTAX INTEGER
{
waitingUpgrade(1),
inProcess(2),
success(3),
failure(4)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Upgrade status of the device."
::= { hh3cIssuUpgradeResultEntry 7 }
hh3cIssuUpgradeFailedReason OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates the cause of 'failure' state
of the object 'hh3cIssuUpgradeDeviceStatus'.
This object would be a null string if the value of
'hh3cIssuCompatibleResultStatus' is not 'failure'."
::= { hh3cIssuUpgradeResultEntry 8 }
hh3cIssuUpgradeNotify OBJECT IDENTIFIER ::= { hh3cIssuUpgrade 2 }
hh3cIssuUpgradeTrapPrefix OBJECT IDENTIFIER ::= { hh3cIssuUpgradeNotify 0 }
hh3cIssuUpgradeOpCompletionNotify NOTIFICATION-TYPE
OBJECTS { hh3cIssuOpType, hh3cIssuOpStatus, hh3cIssuFailedReason, hh3cIssuOpTimeCompleted }
STATUS current
DESCRIPTION
"An hh3cIssuUpgradeOpCompletionNotify is sent at the
completion of upgrade operation denoted by
hh3cIssuOp object, if such a notification
was requested when the operation was initiated.
hh3cIssuOpType indicates the type of the
operation. hh3cIssuOpStatus indicates the
result of the operation. hh3cIssuFailedReason
indicates the operation failure reason.
hh3cIssuOpTimeCompleted indicates the time
when the operation was completed."
::= { hh3cIssuUpgradeTrapPrefix 1 }
END
|