Python Commands; Python; Python Filename - HPE D6020 Maintenance And Service Manual

Hide thumbs Also See for HPE D6020:
Table of Contents

Advertisement

Python commands

python

Use python to enter the Python shell.
Syntax
python
Views
User view
Predefined user roles
network-admin
Usage guidelines
In the Python shell, you can use the following items:
Python 2.7 commands.
Python 2.7 standard API.
Comware 7 extended API.
To return to user view from the Python shell, enter exit().
Examples
# Enter the Python shell.
<Sysname> python
Python 2.7.3 (default, Dec 22 2012, 11:39:05)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> exit()
<Sysname>

python filename

Use python filename to execute a Python script.
Syntax
python filename [ param ]
Views
User view
Predefined user roles
network-admin
Parameters
filename: Specifies the name of a Python script on a file system of the device. The script name is
case sensitive and must use the extension .py. The extension .py is case insensitive.
param: Specifies the parameters to be passed to the script. To enter multiple parameters, use
spaces as the delimiter.
354

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HPE D6020 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents