HP 6125XLG R2306-HP 6125XLG Blade Switch Fundamentals Configuration Guide - Page 110

Scheduling a task, Configuration guidelines, Configuration procedure

Page 110 highlights

Task Specify the reboot delay time. Command scheduler reboot delay time Remarks By default, no reboot delay time is specified. Scheduling a task You can schedule the device to automatically execute a command or a set of commands without administrative interference. You can configure a one-time schedule or a periodic schedule. A one-time schedule is not saved to the configuration file, and is lost when the device reboots. A periodic schedule is saved to the startup configuration file and is automatically executed periodically. Configuration guidelines • To make sure a task schedule can be executed as expected, check that the system time is correct. If the system time is incorrect, reconfigure the system time or configure NTP. For more information about NTP, see Network Management and Monitoring Configuration Guide. • Make sure all commands in a schedule are compliant to the command syntax. The system does not check the syntax when you assign a command to a job. • A schedule cannot contain any of these commands: telnet, ftp, ssh2, and monitor process. • A schedule does not support user interaction. If a command requires a yes or no answer, the system always assumes that a Y or Yes is entered. If a command requires a character string input, the system assumes that the default character string (if any) is entered, or a null string is entered. • A schedule is executed in the background, and no output (except for logs, traps, and debug information) is displayed for the schedule. Configuration procedure To configure a one-time schedule for the device: Step 1. Enter system view. 2. Create a job. Command system-view scheduler job job-name 3. Assign a command to the job. command id command 4. Exit to system view. 5. Create a schedule. quit scheduler schedule schedule-name Remarks N/A By default, no job exists. By default, no command is assigned to a job. You can assign multiple commands to a job. A command with a smaller ID will be executed first. N/A By default, no schedule exists. 103

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155

103
Task
Command
Remarks
Specify the reboot delay
time.
scheduler
reboot
delay
time
By default, no reboot delay time is specified.
Scheduling a task
You can schedule the device to automatically execute a command or a set of commands without
administrative interference.
You can configure a one-time schedule or a periodic schedule. A one-time schedule is not saved to the
configuration file, and is lost when the device reboots. A periodic schedule is saved to the startup
configuration file and is automatically executed periodically.
Configuration guidelines
To make sure a task schedule can be executed as expected, check that the system time is correct. If
the system time is incorrect, reconfigure the system time or configure NTP. For more information
about NTP, see
Network Management and Monitoring Configuration Guide
.
Make sure all commands in a schedule are compliant to the command syntax. The system does not
check the syntax when you assign a command to a job.
A schedule cannot contain any of these commands:
telnet
,
ftp
,
ssh2
, and
monitor process
.
A schedule does not support user interaction. If a command requires a yes or no answer, the system
always assumes that a
Y
or
Yes
is entered. If a command requires a character string input, the
system assumes that the default character string (if any) is entered, or a null string is entered.
A schedule is executed in the background, and no output (except for logs, traps, and debug
information) is displayed for the schedule.
Configuration procedure
To configure a one-time schedule for the device:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a job.
scheduler job
job-name
By default, no job exists.
3.
Assign a command to
the job.
command
id
command
By default, no command is assigned
to a job.
You can assign multiple commands
to a job. A command with a smaller
ID will be executed first.
4.
Exit to system view.
quit
N/A
5.
Create a schedule.
scheduler schedule
schedule-name
By default, no schedule exists.