EasyManuals Logo

HP 5920 Series Fundamentals Configuration Guide

HP 5920 Series
215 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #172 background imageLoading...
Page #172 background image
164
Examples
# Download file test.cfg from TFTP server 1.1.1.1 and get the error information from the operation.
<Sysname> python
Python 2.7.3 (default, May 24 2014, 14:37:26)
[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 member ID of the master device.
Syntax
get_self_slot()
Returns
A list object in the format [-1,slot-number], where slot-number indicates the member ID of the master
device.
Examples
# Get the member ID of the master device.
<Sysname> python
Python 2.7.3 (default, May 24 2014, 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,1]
API get_standby_slot
get_standby_slot
Use get_standby_slot to get the member IDs of all subordinate devices.
Syntax
get_standby_slot()
Returns
A list object in one of the following formats:
[ ]—The IRF fabric does not have a subordinate device.

Table of Contents

Other manuals for HP 5920 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 5920 Series and is the answer not in the manual?

HP 5920 Series Specifications

General IconGeneral
BrandHP
Model5920 Series
CategorySwitch
LanguageEnglish

Related product manuals