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 V7 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, Sep 22 2014, 17:10: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
252