Commands

Job at | delay | enable | disable

Set schedule jobs using the options and set the count for the number of times the job is repeated.

Syntax

job JOB NAME at | delay | enable | disable

Description

Schedule a command to run automatically. Jobs can be scheduled to run once, multiple times on a recurring basis, or after certain events such as reboots. All commands run with manager privilege in configuration context.

The [no] form of the command deletes a scheduled job.

By default, jobs will be repeated an infinite number of times.

Restrictions

Jobs scheduled at any event will not be counted.

Jobs that are scheduled at the event “reboot” will not work in some multi management switches.

Range

  • <1-1000>: is the value range for the count option.

  • ([[DD:]HH:]MM): is the format used for the specific delay.

Options

count

Specify the number of times the job should run.

delay

Specify the delay before running the job.

enable

Enable a job that is disabled or expired.

disable

Disable a job. By default, a job is enabled.

Usage

job <JOB NAME> at <([DD:]HH:]MM on <WEEKDAY-LIST>)> config-save <COMMAND> count <1-1000>

job <JOB NAME> at <[HH:]MM on [MM/]DD> config-save <COMMAND> count <1-1000>

job <JOB NAME> at <EVENT> config-save <COMMAND>

job <JOB NAME> delay <([DD:]HH:]MM> config-save <COMMAND> count <1-1000>

job <JOB NAME> enable | disable

[no]job <JOB NAME>

Show job

Syntax

show job

Description

Show the jobs scheduled.

Show job

HP-2620-48-PoEP# show job

 Job Scheduler Status and Configuration

  Scheduler Status : Waiting for the system time to be set

                     Event or            Repeat  Save 
  Name               Time                Count   Cfg  Command
  ------------------ ---------------- ------- ---- ------------
  Burrrrrrrrrrrr...  reboot              --    Yes chassislocate blink
  baz                reboot              --     No  show time
  foo                17:00 SxTWTxS       --     No  savepower led
  a1                 12:00               2      Yes sh time
  a2                 Every 2:14:30 days  75     Yes vlan 3
  a3                 Every 00:00:25 days 1      No  vlan 4

Show job <Name>

Syntax

show job JOB NAME

Description

Show the job by name.

Show job <JOB NAME>

Aruba-3810M-16SFPP-2s # show job a1

Job Information

Job Name    : a1
Runs At     : 01:24
Config Save : No
Repeat Count: --
Job Status  : Enabled
Run Count   : 1
Error Count : 0
Command     : show time
Job Status  : Enabled

 Output from Last Run
 --------------------
 Tue Dec 15 01:24:00 2015
 

HP-2530-24 # show job a2

Job Information

Job Name    : a2
Runs At     : Every 2:14:30 days
Config Save : Yes
Repeat Count: 75
Run Count   : 0
Error Count : 0
Command     : vlan 3
Job Status  : Disabled

HP-2530-24 # show job foo


Job Information

Job Name    : foo
Runs At     : 17:00 SxTWTxS
Config Save : Yes
Repeat Count: --
Run Count   : 0
Error Count : 0
Command     : savepower led
Job Status  : Enabled