Python Scripting Configuration; Python Scripts Management And Execution - Lenovo RackSwitch G8264 Command Reference Manual

Iscli - industry standard cli for lenovo enterprise network operating system 8.4
Hide thumbs Also See for RackSwitch G8264:
Table of Contents

Advertisement

Python Scripting Configuration

Python Scripts Management and Execution

© Copyright Lenovo 2017
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" on page 679
"Scheduler Jobs Management" on page 681
"Running Job Monitor" on page 684
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
Chapter 4: Configuration Commands
679

Advertisement

Table of Contents
loading

Table of Contents