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 #167 background imageLoading...
Page #167 background image
159
Using Python
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and
a simple but effective approach to object-oriented programming. Python's elegant syntax and dynamic
typing, together with its interpreted nature, make it an ideal language for scripting and rapid application
development in many areas on most platforms.
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 sc
ripts. 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 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 39 Network diagram

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