Configuration Guide Vol. 1


19.2.5 Installing script files

Install the script file. Resident scripts and event startup scripts start the installed script file. The installed script file can also be imported as a Python module.

Script files that can be installed have the following conditions:

The following table lists the limits for installing script files.

Table 19-12: Upper limits for script file installation

Item

Upper Limit

Number of files that can be installed

100

Total file size

4MB

Size of one file

512KB

Use the operation-command install script to install the script file. The following diagram shows an example of installing sample.py file using install script command.

Figure 19-8: Installing script files
# install script sample.py                        ..1
# show script installed-file                      ..2
Date 20XX/01/15 20:32:35 UTC
Total: 1 files, 100 bytes
 
name: sample.py
size: 100 bytes
MD5: 12f58123c2b0f4286cf6d607656207c3
#
  1. Install sample.py file on the Switch.

  2. Check the script file installed on the Switch.