Purpose
Command or Action
switch(config-time-range)# copy running-config
startup-config
Changing a Time-Range
You can add and remove rules in an existing time range. You cannot change existing rules. Instead, to change
a rule, you can remove it and recreate it with the desired changes.
If you need to add more rules between existing rules than the current sequence numbering allows, you can
use the
resequence
command to reassign sequence numbers.
SUMMARY STEPS
1.
configure terminal
2.
time-range name
3.
(Optional) [
sequence-number
]
periodic weekday time to
[
weekday
]
time
4.
(Optional) [
sequence-number
]
periodic list-of-weekdays time to time
5.
(Optional) [
sequence-number
]
absolute start time date
[
end time date
]
6.
(Optional) [
sequence-number
]
absolute
[
start time date
]
end time date
7.
(Optional)
no
{
sequence-number
|
periodic arguments . . .
|
absolute arguments. . .
}
8.
(Optional)
show time-range name
9.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Enters time-range configuration mode for the specified time
range.
time-range name
Example:
Step 2
switch(config)# time-range workday-daytime
switch(config-time-range)#
Creates a periodic rule that is in effect for one or more
contiguous days between and including the specified start
and end days and times.
(Optional) [
sequence-number
]
periodic weekday time to
[
weekday
]
time
Example:
Step 3
switch(config-time-range)# periodic monday 00:00:00
to friday 23:59:59
Creates a periodic rule that is in effect on the days specified
by the
list-of-weekdays
argument between and including
(Optional) [
sequence-number
]
periodic list-of-weekdays
time to time
Step 4
the specified start and end times. The following keywords
are also valid values for the
list-of-weekdays
argument:
Example:
switch(config-time-range)# 100 periodic weekdays
05:00:00 to 22:00:00
•
daily
—All days of the week.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
281
Configuring IP ACLs
Changing a Time-Range