xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
55
9
S
WITCH
U
TILITY
C
OMMANDS
The switch utility commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command Parameters
download
[ firmware_fromTFTP [<ipaddr> |<ipv6addr>] <path_filename 64> {image_id<int 1-
2>} {unit [all|<unitid 1-12>]} | cfg_fromTFTP [<ipaddr> |<ipv6addr>] <path_filename
64> {[<config_id 1-2> | increment]} ]
config firmware
{unit [<unitid_list 1-12>|all]} image_id <int 1-2> [delete|boot_up]
show firmware information
config configuration
<config_id 1–2> [boot_up | delete | active]
show config
[current_config | config_in_nvram <config_id 1–2> | information ]
upload
[cfg_toTFTP [<ipaddr> | <ipv6addr>] <path_filename 64> {<config_id 1–2>} |
log_toTFTP [<ipaddr> | <ipv6addr>] <path_filename 64>] | attack_log_toTFTP
[<ipaddr> | <ipv6addr>] <path_filename 64>] {unit <unit_id 1–12>}]
clear attack_log
{[unit <unit_id 1–12> | all]}
show attack_log
{unit <unit_id 1–12>} {index <value_list>}
enable autoconfig
disable autoconfig
show autoconfig
ping
<ipaddr> {times <value 0–255>} {timeout <sec 1–99>}
ping6
<ipv6addr> {times <value 0–255> | size <value 1–6000> | timeout <value 1–10>}
Each command is listed, in detail, in the following sections.
download
Purpose
Used to download and install new firmware or a new configuration on the switch from a
TFTP server.
Syntax
download [ firmware_fromTFTP [<ipaddr> |<ipv6addr>] <path_filename 64>
{image_id<int 1-2>} {unit [all|<unitid 1-12>]} | cfg_fromTFTP [<ipaddr> |<ipv6addr>]
<path_filename 64> {[<config_id 1-2> | increment]} ]
Description
This command is used to download a new firmware or a switch configuration file from a
TFTP server. The firmware can be loaded to different images and units according to the
image ID and unit ID,and you can choose to download through IPv6 if your switch
supports IPv6. If the image id or the unit id does not exist in the system, the download will
fail and give an error message.
Parameters
firmware_fromTFTP
−
Download and install new firmware on the Switch from a TFTP
server.
cfg_fromTFTP
−
Download and install a new configuration file on the Switch from a TFTP
server.
•
image_id
– Specifies the image index ID number of the firmware in the Switch’s
memory. The Switch can store two firmware images for use. Image ID 1 will be
the default boot up firmware for the Switch unless otherwise configured by the
user.
•
unit [all | <unitid 1–12>]
–
all
specifies all units (switches),
<unitid>
is the unit ID
of the switch in the switch stack that will receive the download. This parameter is
for downloading firmware only.