© Copyright Lenovo 2017
Chapter 4: Configuration Commands
679
Python Scripting Configuration
Python
Scripting
allows
the
user
to
create
his
own
running
programs
on
the
switch.
These
scripts
allow
the
switch
to
perform
the
following:
monitoring
tasks
automatically
provision
itself
automatically
upgrade
switch
firmware/generate
configuration
files
Note
:
Python
Scripting
is
not
available
in
stacking.
The
following
sections
describe
the
Python
Scripting
configuration
options.
Python Scripts Management and Execution
The
user
can
perform
various
script
management
actions:
edit
or
delete
a
script,
display
script
content.
In
addition,
the
switch
administrator
may
access
Python
shell
and
directly
run
a
script.
The
following
table
describes
the
Python
Scripts
Management
and
Execution
commands.
Table 384.
Python
Scripts
Management
and
Execution
Commands
Command Syntax and Usage
copy
script
tftp
[address
<IPv4
address>
]
[filename
<script
filename>
]
[data
port|mgt
port]
Creates
a
copy
of
the
script
on
a
TFTP
server.
Command
mode
:
Privileged
EXEC
copy
script
log
tftp
[address
<IPv4
address>
]
[filename
<script
log
filename>
]
[data
port|mgt
port]
Creates
a
copy
of
the
script
‐
log
on
a
TFTP
server.
Command
mode
:
Privileged
EXEC
copy
tftp
script
[address
<IPv4
address>
]
[filename
<script
filename>
]
[data
port|mgt
port]
Copies
a
script
from
a
TFTP
server.
Command
mode
:
Privileged
EXEC
edit
script
<script
filename>
Creates
or
modifies
a
script
via
VI
text
editor.
Command
mode
:
All
Содержание RackSwitch G8264
Страница 20: ...20 G8264 Command Reference for ENOS 8 4 ...
Страница 32: ...32 G8264 Command Reference for ENOS 8 4 ...
Страница 212: ...212 G8264 Command Reference for ENOS 8 4 ...
Страница 322: ...322 G8264 Command Reference for ENOS 8 4 QoS Statistics ...
Страница 323: ... Copyright Lenovo 2017 Chapter 3 Statistics Commands 323 The following commands display QoS statistics ...
Страница 722: ...722 G8264 Command Reference for ENOS 8 4 ...
Страница 770: ...770 G8264 Command Reference for ENOS 8 4 ...
Страница 784: ...784 G8264 Command Reference for ENOS 8 4 ...
Страница 794: ...794 G8264 Command Reference for ENOS 8 4 ...