S5510 Series

H3C S5510 Series, S3610 Series Operating instructions

  • Hello! I am an AI chatbot trained to assist you with the H3C S5510 Series Operating instructions. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Table of Contents
i
Table of Contents
Chapter 1 Basic Configurations...................................................................................................1-1
1.1 Basic Configurations..........................................................................................................1-1
1.1.1 Entering/Exiting System View.................................................................................1-1
1.1.2 Configuring the Device Name.................................................................................1-2
1.1.3 Configuring the System Clock.................................................................................1-2
1.1.4 Configuring a Banner ..............................................................................................1-5
1.1.5 Configuring CLI Hotkeys.........................................................................................1-7
1.1.6 Configuring User Levels and Command Levels......................................................1-8
1.1.7 Displaying and Maintaining Basic Configurations.................................................1-10
1.2 CLI Features....................................................................................................................1-11
1.2.1 Introduction to CLI.................................................................................................1-11
1.2.2 Online Help with Command Lines.........................................................................1-12
1.2.3 Display Features ...................................................................................................1-13
1.2.4 History Command .................................................................................................1-13
1.2.5 Command Line Error Information..........................................................................1-14
1.2.6 Edit Features.........................................................................................................1-15
Chapter 2 System Maintaining and Debugging..........................................................................2-1
2.1 System Maintaining and Debugging Overview..................................................................2-1
2.1.1 Introduction to System Maintaining and Debugging ...............................................2-1
2.1.2 Introduction to System Debugging..........................................................................2-2
2.2 System Maintaining and Debugging..................................................................................2-3
2.2.1 System Maintaining.................................................................................................2-3
2.2.2 System Debugging..................................................................................................2-4
2.3 System Maintaining Example ............................................................................................2-5
Chapter 3 Device Management.................................................................................................... 3-1
3.1 Device Management Overview..........................................................................................3-1
3.2 Configuring Device Management......................................................................................3-1
3.2.1 Rebooting a Device.................................................................................................3-1
3.2.2 Specifying a Boot ROM File for the Next Device Boot............................................ 3-2
3.2.3 Upgrading Boot ROM..............................................................................................3-3
3.2.4 Configuring a Detection Interval..............................................................................3-3
3.2.5 Clearing the 16-bit Interface Indexes Not Used in the Current System..................3-4
3.2.6 Identifying and Diagnosing Pluggable Transceivers...............................................3-5
3.3 Displaying and Maintaining Device Management Configuration.......................................3-7
3.4 Device Management Configuration Example.................................................................... 3-7
3.4.1 Remote Upgrade Configuration Example............................................................... 3-7
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-1
Chapter 1 Basic Configurations
While performing basic configurations of the system, go to these sections for
information you are interested in:
z Basic Configurations
z CLI Features
1.1 Basic Configurations
This section covers the following topics:
z Entering/Exiting System View
z Configuring the Device Name
z Configuring the System Clock
z Configuring a Banner
z Configuring CLI Hotkeys
z Configuring User Levels and Command Levels
z Displaying and Maintaining Basic Configurations
1.1.1 Entering/Exiting System View
Follow these steps to enter/exit system view:
To do… Use the command… Remarks
Enter system view from user view
system-view
Return to user view from system view
quit
Note:
With the quit command, you can return to the previous view. You can execute the
return command or press the hot key <Ctrl+Z> to return to user view.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-2
1.1.2 Configuring the Device Name
To do… Use the command… Remarks
Enter system view system-view
Configure the device
name
sysname sysname
Optional
The device name is H3C by default.
1.1.3 Configuring the System Clock
I. Configuring the system clock
Follow these steps to configure the system clock:
To do… Use the command… Remarks
Set time and date
clock datetime time date
Set the time zone
clock timezone zone-name { add | minus }
zone-offset
clock summer-time zone-name one-off
start-time start-date end-time end-date
add-time
Set a summer
time scheme
clock summer-time zone-name repeating
start-time start-date end-time end-date
add-time
Optional
Available in
user view.
II. Displaying the system clock
The system clock is displayed by system time stamp, which is the same as that
displayed by the display clock command. The system clock is decided by the
commands clock datetime, clock timezone and clock summer-time. If these three
commands are not configured, the display clock command displays the original
system clock. If you combine these three commands in different ways, the system clock
is displayed in the ways shown in
Table 1-1. The meanings of the parameters in the
configuration column are as follows:
z 1 indicates date-time has been configured with the clock datetime.
z 2 indicates time-zone has been configured with the clock timezone command
and the offset time is zone-offset.
z 3 indicates summer time has been configured with the clock summer-time
command and the offset time is summer-offset.
z [1] indicates the clock datetime command is an optional configuration.
z The default system clock is 2005/1/1 1:00:00 in the example.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-3
Table 1-1 Relationship between the configuration and display of the system clock
Configuration
System clock displayed by the
display clock command
Example
1
date-time
Configure: clock datetime
1:00 2007/1/1
Display: 01:00:00 UTC Mon
01/01/2007
2
The original system clock ±
zone-offset
Configure: clock timezone
zone-time add 1
Display: 02:00:00 zone-time
Sat 01/01/2005
1 and 2
date-time ± zone-offset
Configure: clock datetime
2:00 2007/2/2 and clock
timezone zone-time add 1
Display: 03:00:00 zone-time
Fri 02/02/2007
[1], 2 and 1
date-time
Configure: clock timezone
zone-time add 1 and clock
datetime 3:00 2007/3/3
Display: 03:00:00 zone-time
Sat 03/03/2007
If the original system clock is not
in the summer time range, the
original system clock is displayed.
Configure: clock
summer-time ss one-off
1:00 2006/1/1 1:00 2006/8/8
2
Display: 01:00:00 UTC Sat
01/01/2005
3
If the original system clock is in
the summer time range, the
original system clock +
summer-offset is displayed.
Configure: clock
summer-time ss one-off
00:30 2005/1/1 1:00
2005/8/8 2
Display: 03:00:00 ss Sat
01/01/2005
If date-time is not in the summer
time range, date-time is
displayed.
Configure: clock datetime
1:00 2007/1/1 and clock
summer-time ss one-off
1:00 2006/1/1 1:00 2006/8/8
2
Display: 01:00:00 UTC Mon
01/01/2007
1 and 3
If date-time is in the summer time
range, “date-time” +
summer-offset” is displayed.
Configure: clock datetime
8:00 2007/1/1 and clock
summer-time ss one-off
1:00 2007/1/1 1:00 2007/8/8
2
Display: 10:00:00 ss Mon
01/01/2007
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-4
Configuration
System clock displayed by the
display clock command
Example
If date-time is not in the summer
time range, date-time is
displayed.
Configure: clock
summer-time ss one-off
1:00 2007/1/1 1:00 2007/8/8
2 and clock datetime 1:00
2008/1/1
Display: 01:00:00 UTC Tue
01/01/2008
Configure: clock
summer-time ss one-off
1:00 2007/1/1 1:00 2007/8/8
2 and clock datetime 1:30
2007/1/1
Display: 23:30:00 UTC Sun
12/31/2006
[1], 3 and 1
date-time is in the summer time
range:
If the value of “date-time” -
“summer-offset” is not in the
summer-time range, “date-time” -
“summer-offset” is displayed;
If the value of “date-time” -
“summer-offset” is in the
summer-time range, date-time is
displayed.
Configure: clock
summer-time ss one-off
1:00 2007/1/1 1:00 2007/8/8
2 and clock datetime 3:00
2007/1/1
Display: 03:00:00 ss Mon
01/01/2007
Configure: clock timezone
zone-time add 1 and clock
summer-time ss one-off
1:00 2007/1/1 1:00 2007/8/8
2
Display: 02:00:00 zone-time
Sat 01/01/2005
If the value of the original system
clock ± “zone-offset” is not in the
summer-time range, the original
system clock ± “zone-offset” is
displayed.
Configure: clock timezone
zone-time add 1 and clock
summer-time ss one-off
1:00 2005/1/1 1:00 2005/8/8
2
Display: 04:00:00 ss Sat
01/01/2005
2 and 3 or 3
and 2
If the value of the original system
clock ± “zone-offset” is in the
summer-time range, the original
system clock ± “zone-offset”
+ ”summer-offset” is displayed.
Configure: clock datetime
1:00 2007/1/1, clock
timezone zone-time add 1
and clock summer-time ss
one-off 1:00 2008/1/1 1:00
2008/8/8 2
Display: 02:00:00 zone-time
Mon 01/01/2007
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-5
Configuration
System clock displayed by the
display clock command
Example
If the value of
"date-time"±"zone-offset" is not in
the summer-time range,
"date-time"±"zone-offset" is
displayed.
Configure: clock datetime
1:00 2007/1/1, clock
timezone zone-time add 1
and clock summer-time ss
one-off 1:00 2007/1/1 1:00
2007/8/8 2
Display: 04:00:00 ss Mon
01/01/2007
1, 2 and 3 or 1,
3 and 2
If the value of
"date-time"±"zone-offset" is in the
summer-time range,
"date-time"±"zone-offset"+”summ
er-offset” is displayed.
Configure: clock timezone
zone-time add 1, clock
summer-time ss one-off
1:00 2008/1/1 1:00 2008/8/8
2 and clock datetime 1:00
2007/1/1
Display: 01:00:00 zone-time
Mon 01/01/2007
If date-time is not in the summer
time range, date-time is
displayed.
Configure: clock timezone
zone-time add 1, clock
summer-time ss one-off
1:00 2008/1/1 1:00 2008/8/8
2 and clock datetime 1:30
2008/1/1
Display: 23:30:00 zone-time
Mon 12/31/2007
[1], 2, 3 and 1 or
[1], 3, 2 and 1
date-time is in the summer time
range:
If the value of
“date-time”-“summer-offset” is not
in the summer-time range,
“date-time”-“summer-offset” is
displayed;
If the value of
“date-time”-“summer-offset” is in
the summer-time range,
date-time is displayed.
Configure: clock timezone
zone-time add 1, clock
summer-time ss one-off
1:00 2008/1/1 1:00 2008/8/8
2 and clock datetime 3:00
2008/1/1
Display: 03:00:00 ss Tue
01/01/2008
1.1.4 Configuring a Banner
I. Introduction to banners
Banners are prompt information displayed by the system when users are connected to
the device, perform login authentication, and start interactive configuration. The
administrator can set corresponding banners as needed.
At present, the system supports the following five kinds of welcome information.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-6
z shell banner, also called session banner, displayed when a non Modem user
enters user view.
z incoming banner, also called user interface banner, displayed when a user
interface is activated by a Modem user.
z login banner, welcome information at login authentications, displayed when
password and scheme authentications are configured.
z motd banner, welcome information displayed before authentication.
z legal banner, also called authorization information. The system displays some
copyright or authorization information, and then displays the legal banner before a
user logs in, waiting for the user to confirm whether to continue the authentication
or login. If entering Y or pressing the Enter key, the user enters the authentication
or login process; if entering N, the user quits the authentication or login process. Y
and N are case insensitive.
II. Configuring a banner
When you configure a banner, the system supports two input modes. One is to input all
the banner information right after the command keywords. The start and end characters
of the input text must be the same but are not part of the banner information. In this
case, the input text, together with the command keywords, cannot exceed 510
characters. The other is to input all the banner information in multiple lines by pressing
the Enter key. In this case, up to 2000 characters can be input.
The latter input mode can be achieved in the following three ways:
z Press the Enter key directly after the command keywords, and end the setting with
the % character. The Enter and % characters are not part of the banner
information.
z Input a character after the command keywords at the first line, and then press the
Enter key. End the setting with the character input at the first line. The character at
the first line and the end character are not part of the banner information.
z Input multiple characters after the command keywords at the first line (with the first
and last characters being different), then press the Enter key. End the setting with
the first character at the first line. The first character at the first line and the end
character are not part of the banner information.
Follow these steps to configure a banner:
To do… Use the command… Remarks
Enter system view
system-view
Configure the banner to be
displayed at login
header incoming text
Optional
Configure the banner to be
displayed at login authentication
header login text
Optional
Configure the authorization
information before login
header legal text
Optional
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-7
To do… Use the command… Remarks
Configure the banner to be
displayed when a user enters user
view
header shell text
Optional
Configure the banner to be
displayed before login
header motd text
Optional
1.1.5 Configuring CLI Hotkeys
Follow these steps to configure CLI hotkeys:
To do… Use the command… Remarks
Enter system view
system-view
Configure CLI hotkeys
hotkey { CTRL_G |
CTRL_L | CTRL_O |
CTRL_T | CTRL_U }
command
Optional
The <Ctrl+G>, <Ctrl+L>
and <Ctrl+O> hotkeys are
specified with command
lines by default.
Display hotkeys
display hotkey
Available in any view.
Refer to
Table 1-2 for
hotkeys reserved by the
system.
Note:
By default, the <Ctrl+G>, <Ctrl+L> and <Ctrl+O> hotkeys are configured with command
line and the <Ctrl+T> and <Ctrl+U> commands are NULL.
z <Ctrl+G> corresponds to the display current-configuration command.
z <Ctrl+L> corresponds to the display ip routing-table command.
z <Ctrl+O> corresponds to the undo debugging all command.
Table 1-2 Hotkeys reserved by the system
Hotkey Function
<Ctrl+A> Moves the cursor to the beginning of the current line.
<Ctrl+B> Moves the cursor one character to the left.
<Ctrl+C> Stops performing a command.
<Ctrl+D> Deletes the character at the current cursor position.
<Ctrl+E> Moves the cursor to the end of the current line.
<Ctrl+F> Moves the cursor one character to the right.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-8
Hotkey Function
<Ctrl+H> Deletes the character to the left of the cursor.
<Ctrl+K> Terminates an outgoing connection.
<Ctrl+N> Displays the next command in the history command buffer.
<Ctrl+P> Displays the previous command in the history command buffer.
<Ctrl+R> Redisplays the current line information.
<Ctrl+V> Pastes the content in the clipboard.
<Ctrl+W>
Deletes all the characters in a continuous string to the left of the
cursor.
<Ctrl+X> Deletes all the characters to the left of the cursor.
<Ctrl+Y> Deletes all the characters to the right of the cursor.
<Ctrl+Z> Exits to user view.
<Ctrl+]> Terminates an incoming connection or a redirect connection.
<Esc+B>
Moves the cursor to the leading character of the continuous string to
the left.
<Esc+D>
Deletes all the characters of the continuous string at the current
cursor position and to the right of the cursor.
<Esc+F>
Moves the cursor to the front of the next continuous string to the
right.
<Esc+N>
Moves the cursor down by one line (available before you press the
Enter key)
<Esc+P>
Moves the cursor up by one line (available before you press the
Enter key)
<Esc+<> Specifies the cursor as the beginning of the clipboard.
<Esc+>> Specifies the cursor as the ending of the clipboard.
Note:
These hotkeys are defined by the device. When you interact with the device from
terminal software, these keys may be defined to perform other operations. If so, the
definition of the terminal software will dominate.
1.1.6 Configuring User Levels and Command Levels
All the commands are defaulted to different views and categorized into four levels: visit,
monitor, system, and manage, identified respectively by 0 through 3. If you want to
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-9
acquire a higher privilege, you must switch to a higher user level, and it requires
password to do so for AUX and VTY user interfaces for the security’s sake.
The following table describes the default level of the commands.
Table 1-3 Default command levels
Level Privilege Command
0 Visit ping, tracert, telnet
1 Monitor refresh, reset, send
2 System
All configuration commands except for those at
manage level
3 Manage
FTP, TFTP, XMODEM, and file system
operation commands
Follow these steps to configure user level and command level:
To do… Use the command… Remarks
Switch the user level super [ level ]
Optional
Available in user view.
Enter system view system-view
Configure the password
for switching the user
level
super password [ level
user-level ] { simple |
cipher } password
Optional
By default, no password is
configured.
Configure the command
level in system view
command-privilege
level level view view
command
Optional
Note:
The commands available depend on your user level when you log onto a device. For
example, if your user level is 3 and the command level of VTY 0 interface is 1, you can
use commands below level 3 (inclusive).
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-10
Caution:
z When you configure the password for switching user level with the super password
command, the user level is defaulted to 3 if no user level is specified.
z You can switch to a lower user level unconditionally. To switch to a higher user level,
however, you need to enter the password needed (The password can be set with
the super password command.). If the entered password is incorrect or no
password is configured, the switch fails. Therefore, before switching to a higher user
level, you should configure the password needed.
z You are recommended to use the default user level; otherwise the change of user
level may bring inconvenience to your maintenance and operation.
1.1.7 Displaying and Maintaining Basic Configurations
To do… Use the command… Remarks
Display information on
system version
display version
Display information on the
system clock
display clock
Display information on
terminal users
display users [ all ]
Display the configurations
saved in the storage
device
display saved-configuration
[ by-linenum ]
Display the current
validated configurations
display current-configuration
[ [ configuration [ configuration ] |
controller | interface [ interface-type ]
[ interface-number ] ] [ by-linenum ] [ |
{ begin | include | exclude } text ] ]
Display the valid
configuration under
current view
display this [ by-linenum ]
Display clipboard
information
display clipboard
Display and save
statistics of each module’s
running status
display diagnostic-information
During daily maintenance or when the system is operating abnormally, you need to
view each module’s running status to find the problem. Therefore, you are required to
execute the corresponding display commands one by one. To collect more information
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-11
one time, you can execute the display diagnostic-information command in any view
to display statistics of each module’s running status. The execution of the display
diagnostic-information command has the same effect as that of the commands
display clock, display version, display device, and display current-configuration.
Note:
z For the detailed description of the display users command, refer to the Login
Commands part of the manual.
z The display commands discussed above are for the global configuration. Refer to
the corresponding section for the display command for specific protocol and
interface.
1.2 CLI Features
This section covers the following topics:
z Introduction to CLI
z Online Help with Command Lines
z Display Features
z History Command
z Command Line Error Information
z Edit Features
1.2.1 Introduction to CLI
CLI is an interaction interface between devices and users. Through CLI, you can
configure your devices by entering commands and view the output information and
verify your configurations, thus facilitating your configuration and management of your
devices.
CLI provides the following features for you to configure and manage your devices:
z Hierarchical command protection where you can only execute the commands at
your own or lower levels. Refer to
Configuring User Levels and Command Levels
for details.
z Easy access to on-line help by entering “?”
z Abundant debugging information for fault diagnosis.
z Saving and executing commands that have be executed.
z Fuzzy match for convenience of input. You only need to input the characters that
can uniquely identify a keyword to recognize and execute the keyword. For
example, for the keyword Ethernet, you only need to input eth when you execute
a command with this keyword.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-12
1.2.2 Online Help with Command Lines
The following are the types of online help available with the CLI:
z Full help
z Fuzzy help
To obtain the desired help information, you can:
1) Enter <?> in any view to access all the commands in this view and brief description
about them as well.
<Sysname> ?
User view commands:
backup Backup next startup-configuration file to TFTP server
boot-loader Set boot loader
bootrom Update/read/backup/restore bootrom
cd Change current directory
clock Specify the system clock
cluster Run cluster command
copy Copy from one file to another
debugging Enable system debugging functions
delete Delete a file
dir List files on a file system
display Display current system information
......omitted......
2) Enter a command and a <?> separated by a space. If <?> is at the position of a
keyword, all the keywords are given with a brief description.
<Sysname> terminal ?
debugging Send debug information to terminal
logging Send log information to terminal
monitor Send information output to current terminal
trapping Send trap information to terminal
3) Enter a command and a <?> separated by a space. If <?> is at the position of a
parameter, the description about this parameter is given.
<Sysname> system-view
[Sysname] interface vlan-interface
<1-4094> VLAN interface number
[Sysname] interface vlan-interface 1 ?
<cr>
[Sysname] interface vlan-interface 1
Where, <cr> indicates that there is no parameter at this position. The command is then
repeated in the next command line and executed if you press <Enter>.
4) Enter a character string followed by a <?>. All the commands starting with this
string are displayed.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-13
<Sysname> c?
cd
clock
copy
5) Enter a command followed by a character string and a <?>. All the keywords
starting with this string are listed.
<Sysname> display ver?
version
6) Press <Tab> after entering the first several letters of a keyword to display the
complete keyword, provided these letters can uniquely identify the keyword in this
command.
1.2.3 Display Features
CLI offers the following feature:
When the information displayed exceeds one screen, you can pause using one of the
methods shown in
Table 1-4.
Table 1-4 Display functions
Action Function
Press <Space> when
information display pauses
Continues to display information of the next
screen page.
Press <Enter> when information
display pauses
Continues to display information of the next line.
Enter <Ctrl+C> when information
display pauses
Stops the display and the command execution.
<Ctrl+E> Moves the cursor to the end of the current line.
1.2.4 History Command
The CLI can automatically save the commands that have been used. You can invoke
and repeatedly execute them as needed. By default, the CLI can save up to ten
commands for each user. You can use the history-command max-size command to
set the capacity of the history commands log buffer for the current user interface (For
the detailed description of the history-command max-size command, refer to the
Login Commands part of the manual). The following table lists the operations that you
can perform.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-14
Follow these steps to access history commands:
To do… Use the key/command… Result
View the history
commands
display
history-command
Displays the commands
that you have entered
Access the previous
history command
Up-arrow key or <Ctrl+P>
Displays the earlier
history command, if there
is any.
Access the next history
command
Down-arrow key or
<Ctrl+N>
Displays the next history
command, if there is any.
Note:
You may use arrow keys to access history commands in Windows 200X and XP
Terminal or Telnet. However, the up-arrow and down-arrow keys are invalid in
Windows 9X HyperTerminal, because they are defined in a different way. You can use
<Ctrl+P> and <Ctrl+N> instead.
1.2.5 Command Line Error Information
The commands are executed only if they have no syntax error. Otherwise, error
information is reported.
Table 1-5 lists some common errors.
Table 1-5 Common command line errors
Error information Cause
The command was not found.
The keyword was not found.
Parameter type error
% Unrecognized command found at '^'
position.
The parameter value is beyond the
allowed range.
% Incomplete command found at '^'
position.
Incomplete command
% Ambiguous command found at '^'
position.
Ambiguous command,
Too many parameters Too many parameters
% Wrong parameter found at '^' position. Wrong parameter
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 1 Basic Configurations
1-15
1.2.6 Edit Features
The CLI provides the basic command edit functions and supports multi-line editing. The
maximum length of each command is 256 characters.
Table 1-6 lists these functions.
Table 1-6 Edit functions
Key Function
Common keys
If the editing buffer is not full, insert the character at
the position of the cursor and move the cursor to
the right.
<Backspace> key
Deletes the character to the left of the cursor and
move the cursor back one character.
Left-arrow key or <Ctrl+B> The cursor moves one character space to the left.
Right-arrow key or <Ctrl+F> The cursor moves one character space to the right.
Up-arrow key or <Ctrl+P>
Down-arrow key or <Ctrl+N>
Displays history commands
<Tab> key
Pressing <Tab> after entering part of a keyword
enables the fuzzy help function. If finding a unique
match, the system substitutes the complete
keyword for the incomplete one and displays it in
the next line. If there are several matches or no
match at all, the system does not modify the
incomplete keyword and displays it again in the
next line.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 2 System Maintaining and Debugging
2-1
Chapter 2 System Maintaining and Debugging
When maintaining and debugging the system, go to these sections for information you
are interested in:
z System Maintaining and Debugging Overview
z System Maintaining and Debugging
z System Maintaining Example
2.1 System Maintaining and Debugging Overview
2.1.1 Introduction to System Maintaining and Debugging
You can use the ping command and the tracert command to verify the current network
connectivity.
I. The ping command
You can use the ping command to verify whether a device with a specified address is
reachable, and to examine network connectivity.
The ping command involves the following steps in its execution:
1) The source device sends an ICMP echo request to the destination device.
2) If the network is functioning properly, the destination device responds by sending
an ICMP echo reply to the source device after receiving the ICMP echo request.
3) If there is network failure, the source device displays timeout or destination
unreachable.
4) Display related statistics.
Output of the ping command includes:
z Information on the destination’s responses towards each ICMP echo request, if
the source device has received the ICMP echo reply within the timeout time, it
displays the number of bytes of the echo reply, the message sequence number,
Time to Live (TTL), and the response time.
z If within the period set by the timeout timer, the destination device has not received
the ICMP response, it displays the prompt information.
z The ping command can apply to the destination’s name or IP address. If the
destination’s name is unknown, the prompt information is displayed.
z The statistics during the ping operation, which include number of packets sent,
number of echo reply messages received, percentage of messages not received,
the minimum, average, and maximum response time.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 2 System Maintaining and Debugging
2-2
II. The tracert command
By using the tracert command, you can trace the routers involved in delivering a packet
from source to destination. This is useful for identification of failed node(s) in the event
of network failure.
The tracert command involves the following steps in its execution:
1) The source device sends a packet with a TTL value of 1 to the destination device.
2) The first hop (the router that first receives the packet) responds by sending a
TTL-expired ICMP message to the source, with its IP address encapsulated. In
this way, the source device can get the address of the first router.
3) The source device sends a packet with a TTL value of 2 to the destination device.
4) The second hop responds with a TTL-expired ICMP message, which gives the
source device the address of the second router.
5) The above process continues until the ultimate destination device is reached. In
this way, the source device can trace the addresses of all the routers that have
been used to get to the destination device.
2.1.2 Introduction to System Debugging
The device provides various debugging functions. For the majority of protocols and
features supported, the system provides corresponding debugging information to help
users diagnose errors.
The following two switches control the display of debugging information:
z Protocol debugging switch, which controls protocol-specific debugging information
z Screen output switch, which controls whether to display the debugging information
on a certain screen.
Figure 2-1 illustrates the relationship between the protocol debugging switch and the
screen output switch. Assume that the device can output debugging information to
module 1, 2 and 3. Only when both are turned on can debugging information be output
on a terminal.
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 2 System Maintaining and Debugging
2-3
OFF
ON
OFF
ON
Debugging
information
Protocol
debugging
switch
Screen
output
switch
1
3
1 2 3
OFF
ON
ON
1
3
1 2 3
1
3
Debugging
information
Screen
output
switch
Protocol
debugging
switch
Figure 2-1 The relationship between the protocol and screen debugging switch
Note:
Displaying debugging information on the terminal is the most commonly used way to
output debugging information. You can also output debugging information to other
directions. For details, refer to Information Center Configuration.
2.2 System Maintaining and Debugging
2.2.1 System Maintaining
To do… Use the command… Remarks
ping [ ip ] [ -a source-ip | -c count |
-f | -h ttl | -i interface-type
interface-number | -m interval | -n
| -p pad | -q | -r | -s packet-size | -t
timeout | -tos tos | -v |
-vpn-instance
vpn-instance-name ] *
remote-system
Optional
Used in IPv4 network
Available in any view
Check whether a
specified IP
address can be
reached
ping ipv6 [ -a source-ipv6 | -c
count | -m interval | -s packet-size
| -t timeout ] * remote-system [ -i
interface-type interface-number ]
Optional
Used in IPv6 network
Available in any view
Operation Manual – System Maintaining and Debugging
H3C S3610&S5510 Series Ethernet Switches Chapter 2 System Maintaining and Debugging
2-4
To do… Use the command… Remarks
tracert [ -a source-ip | -f first-ttl |
-m max-ttl | -p port | -q
packet-number | -vpn-instance
vpn-instance-name | -w timeout ] *
remote-system
Optional
Used in IPv4 network
Available in any view
View the routes
from the source to
the destination
tracert ipv6 [ -f first-ttl | -m max-ttl
| -p port | -q packet-number | -w
timeout ] * remote-system
Optional
Used in IPv6 network
Available in any view
Note:
z For a low-speed network, you are recommended to set a larger value for the timeout
timer (indicated by the -t parameter in the command) when configuring the ping
command.
z Only the directly connected segment address can be pinged if the outgoing interface
is specified with the -i argument.
2.2.2 System Debugging
To do… Use the command… Remarks
Enable the terminal
monitoring of system
information
terminal monitor
Optional
The terminal monitoring
on the console is enabled
by default and that on the
monitoring terminal is
disabled by default.
Enable the terminal
display of debugging
information
terminal debugging
Required
Disabled by default
Available in user view
Enable debugging for a
specified module
debugging { all [ timeout
time ] | module-name
[ option ] }
Required
Disabled by default
Available in user view
Display the enabled
debugging functions
display debugging
[ interface interface-type
interface-number ]
[ module-name ]
Optional
Available in any view
/