Page 696 / 757 Scroll up to view Page 691 - 695
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
692
config time_zone
Purpose
Used to determine the time zone used in order to adjust the system clock.
Syntax
config time_zone {operator [+ | -] | hour <gmt_hour 0-13> | min <minute 0-59>}
Description
This will adjust system clock settings according to the time zone. Time zone settings will
adjust SNTP information accordingly.
Parameters
operator
– Choose to add (+) or subtract (-) time to adjust for time zone relative to GMT.
hour
– Select the number of hours different from GMT.
min
– Select the number of minutes difference added or subtracted to adjust the time zone.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure time zone settings:
DGS-3627:admin# config time_zone operator + hour 2 min 30
Command: config time_zone operator + hour 2 min 30
Success.
DGS-3627:admin#
config dst
Purpose
Used to enable and configure time adjustments to allow for the use of Daylight Savings Time (DST).
Syntax
config dst [disable | repeating {s_week <start_week 1-4,last> | s_day <start_day sun-sat> |
s_mth <start_mth 1-12> | s_time start_time hh:mm> | e_week <end_week 1-4,last> |
e_day <end_day sun-sat> | e_mth <end_mth 1-12> | e_time <end_time hh:mm> | offset [30 | 60 |
90 | 120]} | annual {s_date start_date 1-31> | s_mth <start_mth 1-12> | s_time <start_time
hh:mm> | e_date <end_date 1-31> | e_mth <end_mth 1-12> | e_time <end_time hh:mm> | offset
[30 | 60 | 90 | 120]}]
Description
DST can be enabled and configured using this command. When enabled this will adjust the system
clock to comply with any DST requirement. DST adjustment effects system time for both manually
configured time and time set using SNTP service.
Parameters
disable
– Disable the DST seasonal time adjustment for the Switch.
repeating
– Using repeating mode will enable DST seasonal time adjustment. Repeating mode
requires that the DST beginning and ending date be specified using a formula. For example, specify to
begin DST on Saturday during the second week of April and end DST on Sunday during the last week
of October.
annual
– Using annual mode will enable DST seasonal time adjustment. Annual mode requires that
the DST beginning and ending date be specified concisely. For example, specify to begin DST on
April 3 and end DST on October 14.
Page 697 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
693
config dst
s_week
– Configure the week of the month in which DST begins.
<start_week 1-4,last>
– The number of the week during the month in which DST begins where 1 is the
first week, 2 is the second week and so on, last is the last week of the month.
e_week
– Configure the week of the month in which DST ends.
<end_week 1-4,last>
– The number of the week
during the month in which DST ends where 1 is the first week, 2 is the second week and so
on, last is the last week of the month.
s_day
– Configure the day of the week in which DST begins.
<start_day sun-sat>
– The day of the week in
which DST begins expressed using a three character abbreviation (sun, mon, tue, wed, thu,
fri, sat)
e_day
– Configure the day of the week in which DST ends.
<end_day sun-sat>
– The day of the week in
which DST ends expressed using a three character abbreviation (sun, mon, tue, wed, thu, fri,
sat)
s_mth
– Configure the month in which DST begins.
<start_mth 1-12>
– The month to begin DST
expressed as a number.
e_mth
– Configure the month in which DST ends.
<end_mth 1-12>
– The month to end DST
expressed as a number.
s_time
– Configure the time of day to begin DST.
<start_time hh:mm>
- Time is expressed using a
24-hour clock, in hours and minutes.
e_time
– Configure the time of day to end DST.
<end_time hh:mm>
– Time is expressed using a
24-hour clock, in hours and minutes.
s_date
– Configure the specific date (day of the month) to begin DST.
<start_date 1-31>
– The start date is expressed
numerically.
e_date
– Configure the specific date (day of the month) to begin DST.
<end_date 1-31>
– The end date is expressed
numerically.
offset [30 | 60 | 90 | 120]
– Indicates number of minutes to add or to subtract during the summertime.
The possible offset times are
30
,
60
,
90
, and
120
. The default value is
60
.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure daylight savings time on the Switch:
DGS-3627:admin# config dst repeating s_week 2 s_day tue s_mth 4 s_time 15:00 e_week 2
e_day wed e_mth 10 e_time 15:30 offset 30
Command: config dst repeating s_week 2 s_day tue s_mth 4 s_time 15:00 e_week 2 e_day wed
e_mth 10 e_time 15:30 offset 30
Success.
DGS-3627:admin#
Page 698 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
694
show time
Purpose
Used to display the current time settings and status.
Syntax
show time
Description
This will display system time and date configuration as well as display current system time.
Parameters
None.
Restrictions
None.
Example usage:
To show the time currently set on the Switch’s System clock:
DGS-3627:admin# show time
Command: show time
Current Time Source
: System Clock
Boot Time
: 27 Nov 2008
09:33:16
Current Time
: 27 Nov 2008
16:17:45
Time Zone
: GMT +00:00
Daylight Saving Time
: Disabled
Offset in minutes : 60
Repeating
From : Apr 1st
Sun 00:00
To
: Oct last Sun 00:00
Annual
From : 29 Apr 00:00
To
: 12 Oct 00:00
DGS-3627:admin#
Page 699 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
695
96
TIME RANGE COMMANDS
The Time Range commands are used in conjunction with the Access Profile commands listed in the previous chapter to
determine a starting point and an ending point, based on days of the week, when an Access Profile configuration will be
enabled on the Switch. Once configured here, the time range are to be applied to an access profile rule using the
config
access_profile profile_id
command.
NOTE:
The Time Range commands are based on the time settings of the Switch. Make sure to
configure the time for the Switch appropriately for these commands using commands listed in the
Time and SNTP Commands chapter later in this manual.
The Time Range commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in
the following table.
Command
Parameters
config time_range
<range_name 32> [hours start_time <time hh:mm:ss> end_time <time
hh:mm:ss> weekdays <daylist> | delete]
show time_range
Each command is listed, in detail, in the following sections.
config time_range
Purpose
Used to configure a time range in which an access profile rule is to be enabled.
Syntax
config time_range <range_name 32> [hours start_time <time hh:mm:ss> end_time <time
hh:mm:ss> weekdays <daylist> | delete]
Description
This command is to be used in conjunction with an access profile rule to determine a period of
time when an access profile and an associated rule are to be enabled on the Switch. Remember,
this time range can only be applied to one period of time and also, it is based on the time set on
the Switch.
Parameters
range_name 32
– Enter a name of no more than 32 alphanumeric characters that will be used to
identify this time range on the Switch. This range name will be used in the
config
access_profile profile_id
command to identify the access profile and associated rule to be
enabled for this time range.
hours
– This parameter is used to set the time in the day that this time range is to be set using
the following parameters:
start_time <time hh:mm:ss>
Use this parameter to identify the starting time of the
time range, in hours, minutes and seconds, based on the 24-hour time system.
end_time <time hh:mm:ss>
Use this parameter to identify the ending time of the time
range, in hours, minutes and seconds, based on the 24-hour time system.
weekdays
– Use this parameter to determine the days of the week to set this time range.
<daylist>
The user may set the days of the week here to set this time range in the
three letter format (mon, tue, wed…). To specify a day range, separate the daylist
using a dash (mon-fri would mean Monday through Friday). To specify a list of days in
a week, separate the daylist using a comma, with no spaces (mon,tue,fri would mean
Monday, Tuesday and
Friday).
delete
– Use this parameter to delete a previously configured time range from the system.
Page 700 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
696
config time_range
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the time range time1 to be between 6:30 a.m. and 9:40 p.m., Monday to Friday:
DGS-3627:admin# config time_range time1 hours start_time 6:30:00 end_time 21:40:00
weekdays mon-fri
Command: config time_range time1 hours start_time 6:30:00 end_time 21:40:00 weekdays mon-
fri
Success.
DGS-3627:admin#
show time_range
Purpose
To view the current configurations of the time range set on the Switch.
Syntax
show time_range
Description
This command is used to display the currently configured time range(s) set on the Switch.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To view the current time range settings.
DGS-3627:admin# show time_range
Command: show time_range
Time Range information
--------------------------------------------
Range name
: time1
Weekdays
: Mon, Tue, Wed, Thu, Fri
Start time
: 06:30:00
End time
: 21:40:00
Total entries: 1
DGS-3627:admin#

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top