Python Commands; Python; Python Filename - H3C S5830V2 Command Reference Manual

Switch series fundamentals
Hide thumbs Also See for S5830V2:
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 storage medium (flash memory or USB) of the
device. The script name is case sensitive and must use the extension .py. The extension .py is case
insensitive.
278

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents