To schedule a maintenance job, use the
scheduler
command. To disable a job, use the no form of the
command.
scheduler {aaa-authentication [username username] password [0 | 7] password | job name job-name | logfile size filesize | schedule name schedule-name}
no scheduler {aaa-authentication [username username] password [0 | 7] password | job name job-name | logfile size filesize | schedule name schedule-name}
Syntax Description
aaa-authentication
|
Specifies AAA credentials for AAA authentication of a
remote user.
|
username
|
(Optional) Specifies the remote user and specifies the
username. If the username keyword is not specified in the command, the
currently logged-in user's name will be used.
|
username
|
(Optional) Specifies the remote user username.
|
password
|
Specifies the password of the logged-in remote user for AAA
authentication.
|
0
|
(Optional) Specifies that the password is in clear text.
|
7
|
(Optional) Specifies that the password is encrypted.
|
password
|
Specifies the remote user’s password. If the encryption
level was not specified (0 or 7), the supplied password will be encrypted.
|
job
name
|
Specifies a scheduler job.
|
job-name
|
Specifies the name of the scheduler job. The maximum length
is 31 characters.
|
logfile
size
|
Specifies a log file configuration.
|
filesize
|
Specifies the size of the log file. The range is 16 to 1024
KB.
|
schedule
name
|
Specifies a scheduler schedule.
|
schedule-name
|
Specifies the name of the schedule. The maximum length is
31 characters.
|
Command Modes
Configuration mode
Command History
Release
|
Modification
|
NX-OS 4.1(3)
|
Deleted a note from the Usage Guidelines.
|
NX-OS 4.1(1b)
|
Added a note to the Usage Guidelines.
|
2.0(x)
|
This command was introduced.
|
Usage Guidelines
Scheduler job configurations may not be edited. They need to be
deleted and reconfigured to make changes. Jobs may comprise of multiple
commands which can be entered in a single line by using ";" as the
delimiter between commands.
A user's credentials are checked by the scheduler before allowing
them to create, delete or run a scheduled jobs. Use the scheduler
aaa-authetication command to configure a remote user's (a user without local
credentials) credentials. The scheduler uses these credentials to verify that
the user account is still active on the AAA server each time before it starts
the job.
To use the command scheduler. You do not need to obtain any license.
Examples
The following example shows how to enable the scheduler command:
switch# config t
switch(config)# feature scheduler
switch(config)#
The following example shows how to specify the password for the
currently logged-in remote user:
switch# config t
switch(config)# scheduler aaa-authentication password newpwd
switch(config)#
The following example shows how to specify a clear text password for
the currently logged-in remote user:
switch# config t
switch(config)# scheduler aaa-authentication password 0 X12y34Z56a
switch(config)#
The following example shows how to specify a name and password for a
remote user:
switch# config t
switch(config)# scheduler aaa-authentication username newuser password newpwd3
switch(config)#
The following example shows how to specify scheduler logfile size:
switch(config)# scheduler logfile size 512 switch(config)#
The following example shows how to define a name for the schedule and
enters the submode for that schedule:
switch(config)# scheduler schedule name my_timetable
switch(config-schedule)#
The following example shows how to specify a schedule to run jobs:
switch(config-schedule)# time daily 1:23
switch(config-schedule)#
The following example shows how to define a job that uses variables:
switch(config)# scheduler job name my_job
switch(config-job)# cli var name timestamp $(TIMESTAMP);copy running-config
bootflash:/$(SWITCHNAME)-cfg.$(timestamp);copy bootflash:/$(SWITCHNAME)-cfg.$(timestamp)
tftp://1.2.3.4/
switch(config-job)# exit
switch(config)#