EasyManuals Logo

HPE FlexNetwork 5510 HI Series Fundamentals Configuration Guide

HPE FlexNetwork 5510 HI Series
209 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 #161 background imageLoading...
Page #161 background image
153
Using Python
Comware V7 provides a built-in Python interpreter that supports the following items:
•
Python 2.7 commands.
•
Python 2.7 standard API.
•
Comware V7 extended API. For more information about the Comware V7 extended API, see
"
Comware V7 extended Python API."
•
Python scripts. You can use a Python script to configure the system.
Entering the Python shell
To use Python commands and APIs, you must enter the Python shell.
Task
Command
Enter the Python shell from user view.
python
Executing a Python script
Execute a Python script in user view.
Task
Command
Execute a Python script.
python
filename
Python usage example
Network requirements
Use a Python script to perform the following tasks:
•
Download configuration files main.cfg and backup.cfg to the device.
•
Configure the files as the main and backup configuration files for the next startup.
Figure 49 Network diagram
Configuration procedure
# Use a text editor on the PC to edit Python script test.py as follows:
#!usr/bin/python
import comware
Internet
Device
PC
TFTP client
TFTP server
192.168.1.200/24
192.168.1.26/24

Table of Contents

Other manuals for HPE FlexNetwork 5510 HI Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HPE FlexNetwork 5510 HI Series and is the answer not in the manual?

HPE FlexNetwork 5510 HI Series Specifications

General IconGeneral
BrandHPE
ModelFlexNetwork 5510 HI Series
CategorySwitch
LanguageEnglish

Related product manuals