Api Get_Self_Slot - HP FlexFabric 7900 Series Configuration Manual

Hide thumbs Also See for FlexFabric 7900 Series:
Table of Contents

Advertisement

[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import comware
>>> c = comware.Transfer('tftp', '1.1.1.1', 'test.cfg', 'flash:/test.cfg', user='',
password='')
>>> c.get_error()
Sample output
"Couldn't connect to server"

API get_self_slot

get_self_slot
Use get_self_slot to get the slot number of the MPU in standalone mode, or the slot number of the global
active MPU in IRF mode.
Syntax
get_self_slot()
Returns
In standalone mode, a list object in the format [- 1 ,slot-number] is returned. The slot-number indicates the
slot number of the MPU.
In IRF mode, a list object in the format [chassis-number,slot-number] is returned. The chassis-number
indicates the member ID of the master. The slot-number indicates the slot number of the global active
MPU.
Examples
# In standalone mode, get the slot number of the MPU.
<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_self_slot()
Sample output
[-1,0]
API get_standby_slot
get_standby_slot
Use get_standby_slot to get the slot numbers of all global standby MPUs in IRF mode.
Syntax
get_standby_slot()
Returns
The switch supports only one MPU. In standalone mode, this command returns [ ].
In IRF mode, a list object in one of the following formats is returned:
128

Advertisement

Table of Contents
loading

Table of Contents