HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Command Refer - Page 165

command, time1, the next day.

Page 165 highlights

view view: Specifies the view in which the command is executed. The view argument represents the view name, and it takes either of the following values at present: • shell-Represents user view. • system-Represents system view. command: Command to be executed. Description Use schedule job to schedule a job. Use undo schedule job to remove the job. 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. Follow these guidelines when you schedule a job in the non-modular approach: • You can schedule only one job and run only one command in this approach. If you perform the schedule job command multiple times, the last configuration takes effect. • To have the command successfully executed, check that the specified view and command are valid. The system does not verify their validity. • If you specify both the time1 and date arguments, the execution time or date must be later than the current system time or date. • If you specify the time1 argument, but not the date argument: { When time1 is earlier than the current system time, the command runs at time1 the next day. { When time1 is later than the current system time, the command runs at time1 of the current day. • The interval between the scheduled time and the current system time cannot exceed 720 hours, or 30 days. • Changing any clock setting can cancel the job set by using the schedule job command. • After job execution, the configuration interface, view, and user status that you have before job execution restore even if the job has run a command that changes the user interface (for example, telnet, ftp, and ssh2), the view (for example, system-view and quit), or the user status (for example, super). Examples # Schedule a job to execute the batch file 1.bat in system view in 60 minutes (assuming that the current time is 11:43). schedule job delay 60 view system execute 1.bat Info: Command execute 1.bat in system view will be executed at 12:43 10/31/2007 (in 1 hours and 0 minutes). # Schedule a job to execute the batch file 1.bat in system view at 12:00 (assuming that the current time is 11:43). schedule job at 12:00 view system execute 1.bat Info: Command execute 1.bat in system view will be executed at 12:00 10/31/2007 (in 0 hours and 16 minutes). 158

  • 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
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

158
view
view
: Specifies the view in which the command is executed. The
view
argument represents the view
name, and it takes either of the following values at present:
shell
—Represents user view.
system
—Represents system view.
command
: Command to be executed.
Description
Use
schedule job
to schedule a job.
Use
undo schedule job
to remove the job.
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.
Follow these guidelines when you schedule a job in the non-modular approach:
You can schedule only one job and run only one command in this approach. If you perform the
schedule job
command multiple times, the last configuration takes effect.
To have the command successfully executed, check that the specified view and command are valid.
The system does not verify their validity.
If you specify both the
time1
and
date
arguments, the execution time or date must be later than the
current system time or date.
If you specify the
time1
argument, but not the
date
argument:
{
When
time1
is earlier than the current system time, the command runs at
time1
the next day.
{
When
time1
is later than the current system time, the command runs at
time1
of the current day.
The interval between the scheduled time and the current system time cannot exceed 720 hours, or
30 days.
Changing any clock setting can cancel the job set by using the
schedule job
command.
After job execution, the configuration interface, view, and user status that you have before job
execution restore even if the job has run a command that changes the user interface (for example,
telnet
,
ftp
, and
ssh2
), the view (for example,
system-view
and
quit
), or the user status (for example,
super)
.
Examples
# Schedule a job to execute the batch file
1.bat
in system view in 60 minutes (assuming that the current
time is 11:43).
<Sysname> schedule job delay 60 view system execute 1.bat
Info: Command execute 1.bat in system view will be executed at 12:43 10/31/2007 (in 1 hours
and 0 minutes).
# Schedule a job to execute the batch file
1.bat
in system view at 12:00 (assuming that the current time
is 11:43).
<Sysname> schedule job at 12:00 view system execute 1.bat
Info: Command execute 1.bat in system view will be executed at 12:00 10/31/2007 (in 0 hours
and 16 minutes).