282
Syntax
get_standby_slot()
Returns
(In standalone mode.) A list object in the format of [[-1,
slot-number
]]. The
slot-number
indicates the
slot number of a standby MPU. If the device does not have a standby MPU, [ ] is returned.
(In IRF mode.) A list object in one of the following formats:
•
[ ]
—
The IRF fabric does not have a global standby MPU.
•
[[
chassis-number
,
slot-number
]]—The IRF fabric has only one global standby MPU.
•
[[
chassis-number1
,
slot-number1
],[
chassis-number2
,
slot-number2
],…]—The IRF fabric has
multiple standby MPUs.
The
chassis-number
and
slot-number
arguments indicate the device member IDs and slot numbers
of the global standby MPUs.
Examples
# Get the slot number of the standby MPU (in standalone mode) or the slot numbers of the global
standby MPUs (in IRF mode).
<Sysname> python
Python 2.7.3 (default)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import comware
>>> comware.get_standby_slot()
Sample output
[]
API get_slot_range
get_slot_range
Use
get_slot_range
to get the supported IRF member ID range.
Syntax
get_slot_range()
Returns
A dictionary object in the format of {'MaxSlot':
max-slot-number
,
'MinSlot':
min-slot-number
}. The
max-slot-number
argument indicates the maximum member ID. The
min-slot-number
argument
indicates the minimum member ID.
Examples
# Get the supported IRF member ID range.
<Sysname> python
Python 2.7.3 (default)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import comware
>>> comware. get_slot_range()
Sample output
{'MaxSlot': 327, 'MinSlot': 0}
Summary of Contents for FlexNetwork 10500 Series
Page 139: ...130 Sysname display version ...