Application Commands
Use these commands to manage applications that run on the switch.
Application commands enable you to manage applications that run on the switch.
application install
M4250
M4350
This command specifies how an executable file must start an application on the switch and how the application must run on the switch. You can enter the command (that is, preconfigure the command) for an executable file that is not yet present on the switch. The configuration does not take into effect until the executable file is present on the switch.
| Format | application install filename [start-on-boot] [auto-restart] [cpu-sharing number] [max-megabytes megabytes] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| filename | The name of the file that contains 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. When you specify this keyword, the application starts the first time that the switch boots after you saved the command. |
| auto-restart | Automatically restarts the application’s processes if they stop running. |
| cpu-sharing number | Sets the CPU share allocated to this application. For the number argument, enter a number from 0 to 99 that represents a percentage. If you leave the default of 0, the CPU share for the application processes is not limited. |
| max-megabytes megabytes | Sets the maximum memory resource that the application processes can consume. For the megabytes argument, enter a number from 0 to 200 that represents MB. If you leave the default of 0, the memory resources for the application processes are not limited. |
no application install
This command removes the execution configuration for an application on the switch. If the application is running, all processes associated with the application are stopped automatically.
| Format | no application install filename |
| Mode | Global Config |
application start
M4250
M4350
This command starts the execution of a specified application. The application must be installed on the switch before it can be started using this command.
| Format | application start filename |
| Mode | Global Config |
application stop
M4250
M4350
This command stops the execution of a specified application.
| Format | application stop filename |
| Mode | Global Config |
erase application
M4250
M4350
Use this command to erase an executable application file that is stored in nonvolatile memory on the switch.
| Format | erase application filename |
| Mode | Global Config |
show application
M4250
M4350
This command displays the applications that are installed on the switch and execution configurations of the applications.
| Format | show application |
| Mode | Privileged EXEC |
| Field | Description |
|---|---|
| Name | The name of the application. |
| Start-On-Boot |
Indicates whether the application is configured to start when the switch boots:
|
| Auto-Restart |
Indicates whether the application is configured to restart when the application process stops:
|
| CPU Sharing | The command application CPU utilization limit expressed as a percentage. If the utilization is not limited, None is displayed. |
| Max Memory | The application memory usage limit in megabytes. If the memory usage is not limited, None is displayed. |
| Preload |
Indicates if the application is pre-installed (pre-loaded) on the switch:
|
| Version | The version of the application. |
show application files
M4250
M4350
This command displays the files in the application directory of the switch file system.
| Format | show application files |
| Mode | Privileged EXEC |
| Field | Description |
|---|---|
| filename | The name of the application. |
| file size | The number of bytes that the file uses in the file system. |
| directory size | The number of bytes that all files in the application directory use. |