Page 11 / 757 Scroll up to view Page 6 - 10
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
7
{braces}
Syntax
reset {[config | system]}
Description
In the above syntax example, users have the option to specify
config
or
system
. It is not
necessary to specify either optional value, however the effect of the system reset is dependent
on which, if any, value is specified. Therefore, with this example there are three possible
outcomes of performing a system reset. See the following chapter, Basic Commands for more
details about the reset command.
Example command
reset config
Line Editing Key Usage
Delete
Deletes the character under the cursor and then shifts the remaining characters in the line to the
left.
Backspace
Deletes the character to the left of the cursor and then shifts the remaining characters in the line
to the left.
Left Arrow
Moves the cursor to the left.
Right Arrow
Moves the cursor to the right.
Up Arrow
Repeats the previously entered command. Each time the up arrow is pressed, the command
previous to that displayed appears. This way it is possible to review the command history for the
current session. Use the down arrow to progress sequentially forward through the command
history list.
Down Arrow
The down arrow will display the next command in the command history entered in the current
session. This displays each command sequentially as it was entered. Use the up arrow to
review previous commands.
Tab
Shifts the cursor to the next field to the left.
Multiple Page Display Control Keys
Space
Displays the next page.
CTRL+c
Stops the display of remaining pages when multiple pages are to be displayed.
ESC
Stops the display of remaining pages when multiple pages are to be displayed.
n
Displays the next page.
p
Displays the previous page.
q
Stops the display of remaining pages when multiple pages are to be displayed.
r
Refreshes the pages currently displayed.
a
Displays the remaining pages without pausing between pages.
Enter
Displays the next line or table entry.
Page 12 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
8
4
BASIC SWITCH COMMANDS
The basic switch commands in the Command Line Interface (CLI) are listed (with the appropriate parameters) in the
following table.
Command
Parameters
create account
[admin | operator | user] <username 15>
config account
<username> {encrypt [plain_text| sha_1] <password>}
show account
delete account
<username> {<string>}
show session
show switch
show serial_port
config serial_port
{baud_rate [9600 | 19200 | 38400 | 115200] auto_logout [never | 2_minutes |
5_minutes | 10_minutes | 15_minutes]}
enable clipaging
disable clipaging
enable telnet
{<tcp_port_number 1-65535>}
disable telnet
telnet
[<ipaddr> | <domain_name 255>] {tcp_port <value 0-65535>}
enable web
{<tcp_port_number 1-65535>}
disable web
save
{[config {<drive_id>} <pathname 64> | log | all]}
reboot
{<string>}
reset
{[config |system]} {<string>}
login
logout
show device_status
config command_prompt
[<string 16> | username | default]
config greeting_message
{default}
show greeting_message
Each command is listed, in detail, in the following sections.
Page 13 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
9
create account
Purpose
Used to create user accounts.
Syntax
create account [admin | operator | user] <username 15>
Description
The
create account
command is used to create user accounts that consist of a username of
1
to
15
characters and a password of
0
to
15
characters. Up to eight user accounts can be created.
Parameters
admin <username 15>
Enter a name between 1 and
15
alphanumeric characters to define the
administrator account created here.
operator <username 15>
Enter a name between
1
and
15
alphanumeric characters to define the
operator account created here.
user <username 15>
Enter a name between
1
and
15
alphanumeric characters to define the
user account created here.
Restrictions
Only Administrator-level users can issue this command.
Example usage:
To create an administrator-level user account with the username “dlink”.
DGS-3627:admin# create account admin dlink
Command: create account admin dlink
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3627:admin#
To create an operator-level user account with the username “frazier”.
DGS-3627:admin# create account operator frazier
Command: create account operator frazier
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3627:admin#
To create a user-level user account with the username “reed”.
DGS-3627:admin# create account user reed
Command: create account user reed
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3627:admin#
Page 14 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
10
config account
Purpose
Used to configure user accounts.
Syntax
config account <username> {encrypt [plain_text| sha_1] <password>}
Description
The
config account
command configures a user account that has been created using the
create account
command.
Parameters
<username>
Enter a name between
1
and
15
alphanumeric characters to define the
administrator account to configure here.
encrypt
- Select the encrypted form of password.
plain_text
- Passwords should be between 0 and 15 characters.
sha_1
- Passwords should be fixed to 35 bytes long.
<password>
- The password for the user account.
Restrictions
Only Administrator-level users can issue this command.
Example usage:
To configure the user password of “dlink” account:
DGS-3627:admin# config account dlink
Command: config account dlink
Enter a old password:****
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3627:admin#
show account
Purpose
Used to display user accounts
Syntax
show account
Description
Displays all user accounts created on the Switch. Up to eight user accounts can exist at one
time.
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
Example usage:
To display the accounts that have been created:
DGS-3627:admin# show account
Command: show account
Current Accounts:
Username
Access Level
---------------
------------
dlink
Admin
DGS-3627:admin#
Page 15 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
11
delete account
Purpose
Used to delete an existing user account.
Syntax
delete account <username> {<string>}
Description
The
delete account
command deletes a user account that has been created using the
create account
command.
Parameters
<username>
<string> – Enter an alphanumeric string of up to 15 characters to define the username.
Restrictions
Only Administrator-level users can issue this command.
Example usage:
To delete the user account “System”:
DGS-3627:admin# delete account System
Command: delete account System
Are you sure to delete the last administrator account?(y/n)y
Success.
DGS-3627:admin#
show session
Purpose
Used to display a list of currently logged-in users.
Syntax
show session
Description
This command displays a list of all the users that are logged-in at the time the command is
issued.
Parameters
None
Restrictions
None.
Example usage:
To display the way that the users logged in:
DGS-3627:admin# show session
Command: show session
ID
Live Time
From
Level
Name
--
---------
------------
-----
-----------
8
03:36:27
Serial Port
5
Anonymous
Total Entries: 1
CTRL+C ESC q
Quit
SPACE n
Next Page
p
Previous Page
r
Refresh

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top