Python Commands; Exit(); Python - HP FlexFabric 7900 Series Command Reference Manual

Hide thumbs Also See for FlexFabric 7900 Series:
Table of Contents

Advertisement

Python commands

exit()

Use exit() to exit the Python shell.
Syntax
exit()
Views
Python shell
Predefined user roles
network-admin
mdc-admin
Usage guidelines
To return to user view from the Python shell, you must use this command. You cannot use the quit
command for the purpose.
Examples
# Exit the Python shell.
Python 2.7.3 (default, Apr 10 2014, 16:30:23)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> exit()
<Sysname>

python

Use python to enter the Python shell.
Syntax
python
Views
User view
Predefined user roles
network-admin
mdc-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().
188

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents