command
Use command to assign a command to a job.
Use undo command to revoke a command.
Syntax
command id command
undo command id
Default
No command is assigned to a job.
Views
Job view
Predefined user roles
network-admin
mdc-admin
Parameters
id: Specifies a command ID in the range of 0 to 4294967295.
command: Specifies the command to be assigned to the job.
Usage guidelines
A job can have multiple commands. Commands in a job are uniquely identified by their IDs. A command with a smaller ID is executed earlier.
If a command uses the ID of an existing command, the existing command is replaced.
A job cannot contain the telnet, ftp, ssh2, or monitor process command.
The system does not check the validity of the command argument. You must make sure the command is supported by the device, is input in the correct format, and uses valid values. Otherwise, the command cannot be executed automatically.
Examples
# Assign commands to the backupconfig job to back up configuration file startup.cfg to the TFTP server at 192.168.100.11.
<Sysname> system-view [Sysname] scheduler job backupconfig [Sysname-job-backupconfig] command 2 tftp 192.168.100.11 put flash:/startup.cfg backup.cfg
Related commands
scheduler job