Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
ContentIndex
  
[+] Expand All
[-] Collapse All

Symbols  A  C  D  E  F  H  I  K  L  M  N  O  P  Q  R  S  T  U  W  X

 

Symbols

* in completion list
+ in completion list
+* in completion list
> in completion list
| (pipe) filter for command output
 

A

active configuration
 

C

C Series Controllers    
directories    12
files
C Series controllers    
status
C Series platforms    
version
candidate configuration
CLI    
command hierarchy
command history
command mode
configuration mode    
command completion
commands    12
comparing
entering    12
exiting
hierarchy    123
navigation commands
overview    12
statement description
symbols in statement lists    12
verifying configurations
editing level    12
environment settings
help    12
interface elements
keyboard sequences
messages
modes    
changing    12
overview
operating systems
overview    12
password
prerequisites
privilege levels
prompt strings
tutorial
working directory
command output    
MORE prompt
number of lines
pagination
saving to a file
See also regular expressions
XML format, displaying
commands    
categories
completion    12
configuration mode
filenames in
operational mode
options
types
URLs in
commit and-quit command    12
commit check command
commit command    12
configuration    
backup
changes by multiple users
committing    123
default
deleting statements
displaying current configuration
example
loading    123
local
merge
modifying
replacement    12
rollback
saving
slot
statements.     See configuration statements    
storage
verifying
configuration files    
attributes
overview
preparation to load
set format
text format
XML format
configuration hierarchy
configuration mode     See CLI    
configuration statements    
deleting
overview    12
symbols in statements
configure command
conventions    
notice icons
text
count filter
cursor, moving
customer support    1
contacting JTAC
 

D

delete command    12
directories on C Series Controller
documentation    
comments on
 

E

edit command    12
enable command
environment settings, CLI    1
command completion
editing level
prompt string
screen dimensions    12
terminal language
terminal type
working directory
except filter
exit command    12
 

F

file commands
files    
saving command output to
specifying names in commands
find filter
 

H

help command
history command
history, CLI commands
 

I

identifiers    
inserting in sequential lists
renaming
insert command    12
 

K

keyboard sequences at MORE prompt
 

L

load command
load factory-default command
load merge command
load override command
load replace command
load set command    123
 

M

manuals    
comments on
messages    
CLI
MORE filter
MORE prompt
 

N

notice icons
 

O

online help     See CLI, help    
operational mode
 

P

privilege levels for CLI
prompt strings for CLI
 

Q

quit command
 

R

redrawing screen
regular expressions    
displaying first match
displaying matching output
disregarding nonmatching output
overview
rename command    12
request system halt command
request system reboot
restart command    12
rollback command    12
run command
 

S

save command
screen    
dimensions    12
redrawing
set cli complete-on-space command
set cli directory command    12
set cli language command
set cli level command
set cli password command
set cli prompt command
set cli screen-length command
set cli screen-width command
set cli terminal command
set command    12
show cli authorization command
show cli command
show cli history command
show cli level command
show command
show component command    12
show configuration command
show system information command
SRC CLI    
starting    
C Series platform
SRC components    
disabling
enabling
managing
restarting    12
status
SRC modules    
managing
restarting
SRC software    
rebooting
stopping
statements     See configuration statements, names of individual statements    
support, technical     See technical support    
symbols in statements
 

T

technical support    
contacting JTAC
terminal type
text conventions defined
Text format, XML format, Set format
top command
 

U

up command
URLs in commands
user accounts    
configuration example
 

W

working directory
 

X

XML format, command output in

Related Documentation

Configuring a Schedule for Executing the Commands or Scripts (SRC CLI)

To periodically execute the SRC CLI commands or scripts according to a given schedule, use the system schedule schedule-name command. You can use the redirection operator (>) with the commands or scripts to redirect the command execution output to a file.

Use the following statements to schedule a repetitive task on an SRC system:

system schedule schedule-name {day-of-week day-of-week;month month;day-of-month day-of-month;hour hour;minute minute;special (reboot | yearly | annually | monthly | weekly | daily | midnight | hourly);command command;script script;}

To periodically execute the commands or scripts according to a given schedule:

  1. In configuration mode, enter the name of the schedule that is capable of adding schedule entries for the executable scripts or commands. A schedule name can contain alphanumeric characters only. In this sample procedure, src1cron is the name of the schedule.
    [edit]user@host# edit system schedule src1cron
  2. (Optional) Enter the day of the week on which you want the command or script sequence to execute. The default value is * (asterisk).
    [edit system schedule src1cron]user@host# set day-of-week day-of-week
  3. (Optional) Enter the month of the year in which you want the command or script sequence to execute. The default value is * (asterisk).
    [edit system schedule src1cron]user@host# set month month
  4. (Optional) Enter the day of the month on which you want the command or script sequence to execute. The default value is * (asterisk).
    [edit system schedule src1cron]user@host# set day-of-month day-of-month
  5. (Optional) Enter the hour of the day at which you want the command or script sequence to execute. The default value is * (asterisk).
    [edit system schedule src1cron]user@host# set hour hour
  6. (Optional) Enter the minute at which you want the command or script sequence to execute. The default value is * (asterisk).
    [edit system schedule src1cron]user@host# set minute minute

    Table 5 lists the values allowed for the periodic strings (such as day-of-week, month, day-of-month, hour, and minute).

    Table 5: Values Allowed for the Periodic Strings

    Options

    Values

    day-of-week

    0-7 (where both 0 and 7 mean Sunday) or SUN-SAT

    month

    1-12 or JAN-DEC

    day-of-month

    1-31

    hour

    0-23

    minute

    0-59

    You can use multiple combinations of the special characters described in Table 6.

    Table 6: Available Special Characters

    Special Characters

    Meaning

    *

    Indicates all values.

    For example, to execute the command or script every hour:

    user@host# set hour *

    /

    Indicates the increments of ranges.

    For example, to execute the command or script at the third minute of the hour and every 15 minutes thereafter:

    user@host# set minute 3-59/15

    ,

    Indicates to separate the values of a list.

    For example, to execute the command or script on Mondays, Wednesdays and Fridays:

    user@host# day of week MON,WED,FRI

    -

    Indicates the ranges.

    For example, to execute the command or script every hour from 3 through 10:

    user@host# set hour 3-10

  7. (Optional) Enter the special string values such as reboot, yearly, annually, monthly, weekly, daily, midnight, and hourly at which you want the command or script sequence to execute.

    For example, to execute the command or script at midnight on the first day of each month:

    [edit system schedule src1cron]user@host# set special-string monthly

    Note: If you configure both special string values and periodic string values (such as day-of-week, month, day-of-month, hour, or minute options), a message indicating that both special strings and periodic strings cannot be defined is displayed when you commit the changes.

    Table 7 lists the special string options.

    Table 7: Special String Options

    Options

    Description

    reboot

    Executes the command or script at boot and reboot of the system.

    yearly

    Executes the command or script at midnight, January 1 each year.

    annually

    Executes the command or script at midnight, January 1 each year.

    monthly

    Executes the command or script at midnight on the first day of each month.

    weekly

    Executes the command or script at midnight each Sunday.

    daily

    Executes the command or script at midnight each day.

    midnight

    Executes the command or script at midnight each day.

    hourly

    Executes the command or script at on the first second of every hour.

  8. Configure the complete path of the script to be executed for the schedule.

    Note: The script and command options are mutually exclusive. You cannot configure both options at the same time.

    [edit system schedule src1cron]user@host# set script script

    Note: The CLI editing level must be set to expert by using the set cli level expert command for this option.

  9. Configure the CLI command to be executed for the schedule.

    Note:

    • The script and command options are mutually exclusive. You cannot configure both options at the same time.

    Before you configure a CLI command for the schedule, perform the following steps to make sure that you can configure the CLI command as part of the schedule execution:

    1. Enter the CLI command in the shell with the cli –c “command name” option.
    2. Verify whether the CLI command returns the expected output.
    [edit system schedule src1cron]user@host# set command command
  10. (Optional) Verify your configuration.
    user@host# show src1cron {command show;day-of-month 7;day-of-week 5; hour 11;minute 0; month 12;}

Related Documentation

Modified: 2015-06-22