Scheduling jobs
You can schedule a job to automatically run a command or a set of commands without administrative
interference. The commands in a job are polled every minute. When the scheduled time for a command
is reached, the job automatically executes the command. If a confirmation is required while the
command is running, the system automatically enters Y or Yes. If characters are required, the system
automatically enters a default character string or an empty character string when no default character
string is available.
Job configuration approaches
You can configure jobs in a non-modular or modular approach. Use the non-modular approach for a
one-time command execution and use non-modular approach for complex maintenance work.
Table 20 A comparison of non-modular and modular approaches
Comparison item
Configuration method
Can multiple jobs be
configured?
Can a job have multiple
commands?
Supported views
Supported commands
Can a job be executed
multiple times?
Can a job be saved?
Configuration guidelines
To have a job successfully run a command, make sure the specified view and command are valid.
•
The system does not verify their validity.
After job execution, the configuration interface, view, and user status that you have before job
•
execution restores even if the job ran a command to change the user interface (for example, telnet,
ftp, and ssh2), the view (for example, system-view and quit), or the user status (for example, super).
The jobs run in the background without displaying any messages except log, trap and debugging
•
messages.
In the modular approach:
•
Scheduling a job in the non-modular
approach
Configure all elements in one command.
No.
No.
If you use the schedule job command
multiple times, the most recent
configuration takes effect.
User view and system view. In the
schedule job command, shell represents
user view, and system represents system
view.
Commands in user view and system
view.
No.
No.
112
Scheduling a job in the modular
approach
Separate job, view, and time settings.
Yes.
Yes.
You can use the time command in job
view to configure commands to be
executed at different time points.
All views. In the time command,
monitor represents user view.
Commands in all views.
Yes.
Yes.