Related commands
•
clock datetime
•
clock summer-time
•
display clock
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
Parameters
id: Specifies an ID for the command, in the range of 0 to 4294967295. A command ID uniquely
identifies a command in a job. Commands in a job are executed in ascending order.
command: Specifies the command to be assigned to the job.
Usage guidelines
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. If these
requirements are not met, the command cannot be executed automatically.
Examples
# Assign commands to job backupconfig 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
copyright-info enable
Use copyright-info enable to enable copyright statement display.
Use undo copyright-info enable to disable copyright statement display.
227