Api Get_Slot_Range - HP 10500 Series Configuration Manual

Hide thumbs Also See for 10500 Series:
Table of Contents

Advertisement

Syntax
get_standby_slot()
Returns
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 standalone mode.)
A list object in one of the following formats: (In IRF mode.)
[ ]—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.)
<Sysname> python
Python 2.7.3 (default, May 24 2013, 14:37:26)
[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 slot number 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 slot number. The min-slot-number argument indicates
the minimum slot number.
Examples
# Get the supported slot number range.
<Sysname> python
Python 2.7.3 (default, May 24 2013, 14:37:26)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import comware
>>> comware.
get_slot_range
()
297

Advertisement

Table of Contents
loading

Table of Contents