Page 691 / 757 Scroll up to view Page 686 - 690
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
687
upload cfg_toTFTP
relative pathname or an absolute pathname.
pathname
- The pathname specifies an absolute pathname on the device file system.
If pathname is not specified, it refers to the boot_up CFG file.
filter_string
- A filter string is enclosed by symbol. Thus, the filter string itself cannot contain
the character. The filter string is case sensitive.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To upload configuration from TFTP:
DGS-3627:admin# upload cfg_toTFTP 10.48.74.121 dest_file C:\test
Command: upload cfg_toTFTP 10.48.74.121 dest_file C:\test
Connecting to server... Done.
Upload Configuration... Done.
DGS-3627:admin#
upload log_toTFTP
Purpose
Used to upload a log file from device to TFTP server. This command is required to be
supported when file system is not supported on device’s FLASH EPROM.
Syntax
upload log_toTFTP { [<ipaddr> | <ipv6addr> | <domain_name 255>] dest_file
<path_filename 64> }
Description
This command is used to upload a log file from device to TFTP server.
Parameters
ipaddr
- The IP address of the TFTP server.
ipv6addr
- The IPV6 address of the TFTP server.
domain_name
- The domain name of the TFTP server.
dest_file
- Used to identify the parameter “path_filename”.
path_filename
- The pathname specifies the pathname on the TFTP server. It can be a
relative pathname or an absolute pathname.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To upload a log file from TFTP server:
DGS-3627:admin# upload log_toTFTP 10.48.74.121 dest_file C:\LOG
Command: upload log_toTFTP 10.48.74.121 dest_file C:\LOG
Connecting to server... Done.
Upload log... Done.
DGS-3627:admin#
upload attack_log_toTFTP
Purpose
Used to upload the attack log on a unit.
Syntax
upload attack_log_toTFTP [<ipaddr> | <ipv6addr> | <domain_name 255>] dest_file
<path_filename 64> {unit <unit_id 1-12>}
Page 692 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
688
upload attack_log_toTFTP
Description
This command is used to upload the attack log on a unit.
Parameters
ipaddr
- The IP address of the TFTP server.
ipv6addr
- The IPV6 address of the TFTP server.
domain_name
- The domain name of the TFTP server.
dest_file
- Used to identify the parameter “path_filename”.
path_filename
- Specifies the path name on the TFTP server to hold the attack log.
unit
- The attack log messages on the specified unit will be uploaded to the TFTP server. If it
is not specified, it refers to the master unit.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To upload the master’s dangerous log:
DGS-3627:admin# upload attack_log 10.90.90.1 dest_file C:\alert.txt
Command: upload attack_log 10.90.90.1 dest_file C:\alert.txt
Success.
DGS-3627:admin#
Page 693 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
689
95
TIME AND SNTP COMMANDS
The Simple Network Time Protocol (SNTP) (an adaptation of the Network Time Protocol (NTP)) commands in the
Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command
Parameters
config sntp
{primary <ipaddr> | secondary <ipaddr> | poll-interval <int 30-99999>}
show sntp
enable sntp
disable sntp
config time
<date ddmthyyyy> <time hh:mm:ss>
config time_zone
{operator [+ | -] | hour <gmt_hour 0-13> | min <minute 0-59>}
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]}]
show time
Each command is listed, in detail, in the following sections.
config sntp
Purpose
Used to setup SNTP service.
Syntax
config sntp {primary <ipaddr> | secondary <ipaddr> | poll-interval <int 30-99999>}
Description
Use this command to configure SNTP service from an SNTP server. SNTP must be
enabled for this command to function (See
enable sntp
).
Parameters
primary
This is the primary server the SNTP information will be taken from.
<ipaddr>
The IP address of the
primary server.
secondary
This is the secondary server the SNTP information will be taken from in the
event the primary server is unavailable.
<ipaddr>
The IP address for the
secondary server.
poll-interval <int 30-99999>
This is the interval between requests for updated SNTP
information. The polling interval ranges from
30
to
99,999
seconds.
Restrictions
Only Administrator and Operator-level users can issue this command. SNTP service
must be enabled for this command to function (
enable sntp
).
Example usage:
To configure SNTP settings:
Page 694 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
690
DGS-3627:admin# config sntp primary 10.1.1.1 secondary 10.1.1.2 poll-interval 30
Command: config sntp primary 10.1.1.1 secondary 10.1.1.2 poll-interval 30
Success.
DGS-3627:admin#
show sntp
Purpose
Used to display the SNTP information.
Syntax
show sntp
Description
This command will display SNTP settings information including the source IP address, time
and poll interval.
Parameters
None.
Restrictions
None.
Example usage:
To display SNTP configuration information:
DGS-3627:admin# show sntp
Command: show sntp
Current Time Source
: System Clock
SNTP
: Disabled
SNTP Primary Server
: 10.1.1.1
SNTP Secondary Server
: 10.1.1.2
SNTP Poll Interval
: 720 sec
DGS-3627:admin#
enable sntp
Purpose
To enable SNTP server support.
Syntax
enable sntp
Description
This will enable SNTP support. SNTP service must be separately configured (see
config
sntp
). Enabling and configuring SNTP support will override any manually configured system
time settings.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command. SNTP settings must
be configured for SNTP to function (
config sntp
).
Example usage:
To enable the SNTP function:
Page 695 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
691
DGS-3627:admin# enable sntp
Command: enable sntp
Success.
DGS-3627:admin#
disable sntp
Purpose
To disable SNTP server support.
Syntax
disable sntp
Description
This will disable SNTP support. SNTP service must be separately configured (see
config
sntp
).
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example:
To disable SNTP support:
DGS-3627:admin# disable sntp
Command: disable sntp
Success.
DGS-3627:admin#
config time
Purpose
Used to manually configure system time and date settings.
Syntax
config time <date ddmthyyyy> <time hh:mm:ss>
Description
This will configure the system time and date settings. These will be overridden if SNTP is
configured and enabled.
Parameters
date
– Express the date using two numerical characters for the day of the month, three
alphabetical characters for the name of the month, and four numerical characters for the
year. For example: 03aug2003.
time
– Express the system time using the format hh:mm:ss, that is, two numerical characters
each for the hour using a 24-hour clock, the minute and second. For example: 19:42:30.
Restrictions
Only Administrator and Operator-level users can issue this command. Manually configured
system time and date settings are overridden if SNTP support is enabled.
Example usage:
To manually set system time and date settings:
DGS-3627:admin# config time 30jun2003 16:30:30
Command: config time 30jun2003 16:30:30
Success.
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