Application Commands

Use these M4500 CLI commands to install, start, stop, and display applications and application files on the switch.

Use the application commands to manage applications on switches.

show application

This command displays the applications installed and their parameters.

Format show application
Mode Privileged EXEC

Display Message

Fields Definition
Name The name of the application.
StartOnBoot If the application is configured to start on boot up. Yes: The application will start on boot up. No: The application will not start on boot up.
AutoRestart If the application is configured to restart when the application process ends. Yes: The application will restart when the application process ends. No: The application will not restart when the application process ends.
CPU Sharing The configured application CPU utilization limit expressed as a percentage. 0 if unlimited.
Max Memory The configured application memory limit in megabytes. 0 if unlimited.

show application files

This command displays the files in the application directory of the switch's file system.

Format show application files
Mode Privileged EXEC

Display Message

Fields Definition
File size Number of bytes the file occupies in the file system.
filename Name of the file.
Total bytes for all files Number of bytes all the files in the application directory.

application install

This command starts the application through the designated executable file available for configuration and execution. The parameters of this command determine how the application runs on the switch.

This command can be issued using an already installed application file name to update the parameters. This updates the configuration for the next time the application is started.

This command can be issued for a file that is not currently on the switch. This allows pre-configuration of the execution parameters. The configuration does not take effect until the executable file is present in the switch file system.

Default Enabled
Format

application install <filename> [start-on-boot] [auto-restart] [cpu-sharing <0-99>] [max-megabytes <megabytes>]

no application install <filename>

Mode Global Config
Fields Definition
<filename> The name of the file containing the executable or script that is started as a Linux process for the application.
start-on-boot Starts the application each time the switch boots up. Takes effect on the first reboot after setting. Omit this keyword from the command to disable starting the application at boot time.
auto-restart Automatically restarts the application's process(es) if they stop running. Omit this keyword from the command to disable the automatic restart of the application.
cpu-sharing Sets the CPU share allocated to this application, expressed as a percentage between 0 and 99. If 0 is specified, the application prcess(es) are not limited. If this keyword is not specified, the default value 0 is used.
max-megabytes Sets the maximum memory resource that the application process(es) can consume. Expressed as megabytes between 0 and 200. If 0 is specified, the application process(es) are not limited. If keyword is not specified, the default value 0 is used.

application start

This command starts the execution of the specified application. The application must be installed before it can be started using this command.

Format application start <filename>
Mode Privileged EXEC

application stop

This command stops the execution of the specified application.

Format application stop <filename>
Mode Privileged EXEC