OcNOS-SP : System Management Guide : System Management Command Reference : Time Range Commands
Time Range Commands
This chapter describes the commands used to create and manage time range objects which are used to add a timing boundary for specified activities. The activity starts, ends, and repeats at the specific times that you set.
end-time (absolute)
Use this command to set the end time for the time range to an absolute time.
Command Syntax
end-time HH:MM <1-31> (january | february | march | april | may | june | july | august | september | october | november | december) <1995-2035>
Parameters
HH:MM
End time hour and minutes
<1-31>
Day of the month
april
Month of April
august
Month of August
december
Month of December
february
Month of February
january
Month of January
july
Month of July
june
Month of June
march
Month of March
may
Month of May
november
Month of November
october
Month of October
september
Month of September
<1995-2035>
Year
Default
N/A
Command Mode
Time range mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
(config)#time-range TIMER1
(config-tr)#end-time 10:10 20 february 2021
end-time after (relative)
Use this command to set the end time for the time range to a relative time in minutes, from the configured start time.
Command Syntax
end-time after <1-129600>
Parameters
<1-129600>
Number of minutes from the start time
Default
N/A
Command Mode
Time range mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
(config)#time-range TIMER1
(config-tr)#end-time after 100
frequency
Use this command to set the frequency for the time range.
Command Syntax
frequency (daily|hourly|weekly)
Parameters
daily
Daily frequency
hourly
Hourly frequency
weekly
Weekly frequency
Default
N/A
Command Mode
Time range mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
(config)#time-range TIMER1
(config-tr)#frequency hourly
 
frequency days (specific days)
Use this command to set the frequency for the time range to specific days of the week.
Command Syntax
frequency days WORD
Parameters
WORD
Colon-separated list of 3-letter days of the week for the days on which the range is repeated. For example:
mon:tue:wed:thu:fri:sat:sun
Default
N/A
Command Mode
Time range mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
(config)#time-range TIMER1
(config-tr)#frequency days mon:wed:fri
(config)#exit
(config)#time-range TIMER2
(config-tr)#frequency days mon:tue:wed:thu:fri:sat:sun
 
 
 
 
start-time (absolute)
Use this command to set the start time for the time range to an absolute time.
Command Syntax
start-time HH:MM <1-31> (january | february | march | april | may | june | july | august | september | october | november | december) <1995-2035>
Parameters
HH:MM
End time hour and minutes
<1-31>
Day of the month
april
Month of April
august
Month of August
december
Month of December
february
Month of February
january
Month of January
july
Month of July
june
Month of June
march
Month of March
may
Month of May
november
Month of November
october
Month of October
september
Month of September
<1995-2035>
Year
Default
N/A
Command Mode
Time range mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
(config)#time-range TIMER1
(config-tr)#start-time 09:09 20 february 2021
start-time after (relative)
Use this command to set the start time for the time range to a relative time in minutes, from the current time.
Command Syntax
start-time after <1-129600>
Parameters
<1-129600>
Number of minutes from the current time
Default
N/A
Command Mode
Time range mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
(config)#time-range TIMER1
(config-tr)#start-time after 100
 
start-time now (current)
Use this command to set the start time for the time range to the current system time.
Command Syntax
start-time now
Parameters
None
Default
N/A
Command Mode
Time range mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
(config)#time-range TIMER1
(config-tr)#start-time now
time-range
Use this command to create a time range and go into the time range mode to configure the time range. If the time range already exists, then it will be edited.
Use the no form of this command to remove a time range object.
Command Syntax
time-range NAME
no time-range NAME
Parameters
NAME
Name of the time range.
Default
N/A
Command Mode
Configuration mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
#configure terminal
(config)# time-range TIMER1
(config-tr)#?
Time Range configuration commands:
WORD String
abort Abort Transaction
commit commit
end End current mode and change to EXEC mode
end-time The end time for the Time Range
exit End current mode and down to previous mode
frequency The frequency of the Time Range
help Description of the interactive help system
no Delete
quit Exit current mode and down to previous mode
show Show running system information
start-time The start time for the Time Range