Api Get_Slot_Info - HP 10500 Series Configuration Manual

Hide thumbs Also See for 10500 Series:
Table of Contents

Advertisement

Sample output
{'MaxSlot': 327, 'MinSlot': 0}

API get_slot_info

get_slot_info
Use get_slot_info to get information about a card.
Syntax
get_slot_info()
Returns
A dictionary object in the format of {'Slot': slot-number, 'Status': 'status', 'Chassis': chassis-number,
'Role': 'role', 'Cpu': CPU-number }. The slot-number argument indicates the slot number of the card. The
status argument indicates the status of the card. The chassis-number argument indicates the member ID
of the device. The role argument indicates the role of the card. The CPU-number argument indicates the
ID of the main CPU. (In IRF mode.)
A dictionary object in the format of {'Slot': slot-number, 'Status': 'status', 'Chassis': chassis-number,
'Role': 'role', 'Cpu': CPU-number }. The slot-number argument indicates the slot number of the card. The
status argument indicates the status of the card. The chassis-number argument is fixed at 0. The role
argument indicates the role of the card. The CPU-number argument indicates the ID of the main CPU. (In
standalone mode.)
Examples
# Get information about a card.
<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.
Sample output
{'Slot': 1, 'Status': 'Normal', 'Chassis': 1, 'Role': 'Master', 'Cpu': 0}
get_slot_info
(1)
298

Advertisement

Table of Contents
loading

Table of Contents