H3C S9500 Series Command Manual

Type
Command Manual

The H3C S9500 Series, your newly acquired networking solution, empowers you with a range of capabilities to optimize your network infrastructure. It offers comprehensive system maintenance, debugging tools, and network connectivity testing features to ensure seamless operation.

The H3C S9500 Series, your newly acquired networking solution, empowers you with a range of capabilities to optimize your network infrastructure. It offers comprehensive system maintenance, debugging tools, and network connectivity testing features to ensure seamless operation.

Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches Table of Contents
i
Table of Contents
Chapter 1 System Maintenance and Debugging Commands...................................................1-1
1.1 Basic System Configuration and Management Commands..............................................1-1
1.1.1 clock datetime .........................................................................................................1-1
1.1.2 clock summer-time..................................................................................................1-1
1.1.3 clock timezone.........................................................................................................1-3
1.1.4 quick-ping enable....................................................................................................1-3
1.1.5 sysname..................................................................................................................1-4
1.2 Querying System Status and Configuring Agent Information............................................1-5
1.2.1 display clock............................................................................................................1-5
1.2.2 display debugging...................................................................................................1-6
1.2.3 display device manuinfo..........................................................................................1-6
1.2.4 display fiber-module................................................................................................1-7
1.2.5 display users ...........................................................................................................1-9
1.2.6 display version.......................................................................................................1-10
1.3 System Debugging Commands.......................................................................................1-11
1.3.1 debugging..............................................................................................................1-11
1.3.2 display diagnostic-information...............................................................................1-12
1.4 Network Connection Test Commands.............................................................................1-14
1.4.1 ping........................................................................................................................1-14
1.4.2 pingmac.................................................................................................................1-16
1.4.3 tracert....................................................................................................................1-17
1.4.4 tracemac enable....................................................................................................1-19
1.4.5 tracemac................................................................................................................1-20
1.5 Command Line Parser Cache Function Commands.......................................................1-21
1.5.1 parser cache..........................................................................................................1-21
1.5.2 display parser statistic...........................................................................................1-21
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-1
Chapter 1 System Maintenance and Debugging
Commands
1.1 Basic System Configuration and Management
Commands
1.1.1 clock datetime
Syntax
clock datetime HH:MM:SS YYYY/MM/DD
View
User view
Parameters
HH:MM:SS: Current time. HH ranges from 0 to 23. MM and SS range from 0 to 59.
YYYY/MM/DD: Year, month and date. YYYY ranges from 2000 to 2100. MM ranges
from 1 to 12 and DD ranges from 1 to 31.
Description
Use the clock datetime command to configure the current date and clock of the switch.
By default, the date and clock of the switch is set to 0:0:0, 2000/1/1.
The current date and clock of the switch must be set by this command where absolute
time is strictly required.
Related commands: display clock.
Examples
# Set the current date of the switch to 0:0:0, 2001/01/01.
<H3C> clock datetime 0:0:0 2001/01/01
1.1.2 clock summer-time
Syntax
clock summer-time zone-name { one-off | repeating } start-time start-date end-time
end-date offset-time
undo clock summer-time
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-2
View
User view
Parameters
zone-name: Name of the summer time, which is a string of 1 to 32 characters.
one-off: Sets the summer time of a certain year.
repeating: Sets the summer time of every year starting from a certain year.
start-time: Sets start time of the summer time, in the form of HH:MM:SS
(hour/minute/second).
start-date: Sets start date of the summer time, in the form of YYYY/MM/DD
(year/month/day).
end-time: Sets end time of the summer time, in the form of HH:MM:SS
(hour/minute/second).
end-date: Sets end date of the summer time, in the form of YYYY/MM/DD
(year/month/day).
offset-time: Sets the offset relative to the summer time, in the form of HH:MM:SS
(hour/minute/second).
Description
Use the clock summer-time command to set the name, start and end time of the
summer time.
Use the undo clock summer-time command to restore the local time to the default
UTC time.
After the configuration takes effect, the display clock command can be used to check
it. Besides, the time of the log or debugging information uses the local time after the
adjustment of the time zone and summer time.
Related commands: clock timezone.
Examples
# Set the summer time for z2 that starts at 06:00:00 on 08/06/2002 and ends at
06:00:00 on 01/09/2002 with the time adding 1 hour.
<H3C> clock summer-time z2 one-off 06:00:00 2002/06/08 06:00:00 2002/09/01
01:00:00
# Set the summer time for z2 that starts at 06:00:00 on 08/06 and ends at 06:00:00 on
01/09 in each year from 2002 on with the time adding 1 hour.
<H3C> clock summer-time z2 repeating 06:00:00 2002/06/08 06:00:00 2002/09/01
01:00:00
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-3
1.1.3 clock timezone
Syntax
clock timezone zone-name { add | minus } HH:MM:SS
undo clock timezone
View
User view
Parameters
zone-name: Name of the time zone, which is a character with the length ranging from 1
to 32.
add: Time is adding compared with the UTC.
minus: Time is minus compared with the UTC.
HH:MM:SS: Time (hour/minute/second).
Description
Use the clock timezone command to set the information of the local time zone.
Use the undo clock timezone command to restore to the default Universal Time
Coordinated (UTC) time zone.
After the configuration takes effect, the display clock command can be used to check
it. Besides, the time of the log or debug information uses the local time after the
adjustment of the time zone and summer time.
Related commands: clock summer-time.
Examples
# Set the name of the local time zone to Z5 with five hours ahead compared with the
UTC time.
<H3C> clock timezone z5 add 05:00:00
1.1.4 quick-ping enable
Syntax
quick-ping enable
undo quick-ping enable
View
System view
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-4
Parameters
None
Description
Use the quick-ping enable command to enable the PING distribution function.
Use the undo quick-ping enable command to disable the PING distribution function.
By default, the PING distribution function is enabled.
Examples
# Enable the ping distribution function.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] quick-ping enable
1.1.5 sysname
Syntax
sysname sys-name
undo sysname
View
System view
Parameters
sys-name: Hostname of the switch, a string of 1 to 30 characters. The default hostname
of the switch is H3C.
Description
Use the sysname command to configure the system name of the switch.
Changing the hostname name of the switch will affect the prompt of command line
interface. For example, if the system name of the switch is H3C, and the prompt in user
view is <H3C>.
Use the undo sysname command to restore the system name of the switch to the
default value.
Examples
# Set the system name of the switch to H3CLANSwitch.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] sysname H3CLANSwitch
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-5
[H3CLANSwitch]
1.2 Querying System Status and Configuring Agent
Information
1.2.1 display clock
Syntax
display clock
View
Any view
Parameters
None
Description
Use the display clock command to display the system date and time information, so
that you make timely changes if the system time is incorrect.
The maximum time value supported by this command is 23:59:59 2100/12/31.
Related commands: clock datetime.
Examples
# View the current system date and time.
<H3C> display clock
18:36:31 beijing Sat 2006/02/02
Time Zone : beijing add 01:00:00
Summer-Time : bj one-off 01:00:00 2003/01/01 01:00:00 2003/08/08 01:00:00
Table 1-1 display clock command output description
Field Description
18:36:31 beijing Sat 2002/02/02 Current system time
Time Zone : beijing add 01:00:00 Configured time zone information
Summer-Time : bj one-off 01:00:00
2003/01/01 01:00:00 2003/08/08
01:00:00
Configured summer time information
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-6
1.2.2 display debugging
Syntax
display debugging [ interface interface-type interface-number ] [ module-name ]
View
Any view
Parameters
interface-type: Interface type supported by the switch, including Ethernet,
GigabitEthernet, AUX, and VLAN-interface.
interface-number: Interface number.
module-name: Module name.
Description
Use the display debugging command to display debugging that has been enabled.
You can execute the display debugging to view the specific debugging that has been
enabled. If the command is executed without any parameter specified, the system will
display all debugging that has been enabled.
Related commands: debugging.
Examples
# Display all debugging that has been enabled.
<H3C> display debugging
Multicast packet forwarding debugging switch is on
1.2.3 display device manuinfo
Syntax
display device manuinfo [ slot slot-number ]
View
Any view
Parameters
slot-number: Number of the slot where a card is located.
Description
Use the display device manuinfo command to display the manufacturing information
of a card. If no slot number is specified, the command displays the manufacturing
information of all cards.
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-7
Examples
# Display the manufacturing information of all cards.
<H3C> display device manuinfo
slot 0
DEVICE_NAME : LSBM1GP12B
DEVICE_SERIAL_NUMBER : NONE
MAC_ADDRESS : NONE
MANUFACTURING_DATE : 2007-07-05
VENDOR_NAME : H3C
slot 5
DEVICE_NAME : H3C
DEVICE_SERIAL_NUMBER : NONE
MAC_ADDRESS : 00E0-FC00-5600
MANUFACTURING_DATE : 2005-11-20
VENDOR_NAME : H3C
Table 1-2 display device manuinfo command output description
Field Description
DEVICE_NAME Device name
DEVICE_SERIAL_NUMBER Serial number of an OEM device
MAC_ADDRESS Start MAC address of the device
MANUFACTURING_DATE Manufacturing date of the device
VENDOR_NAME Vendor name
1.2.4 display fiber-module
Syntax
display fiber-module [ interface-type interface-number ]
View
Any view
Parameters
interface-type: Interface type supported by switch, including Ethernet and
GigabitEthernet.
interface-number: Interface number.
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-8
Description
Use the display fiber-module command to display the information of the optical
modules connected with all the optical interfaces in position on the current shelf,
including module information, optical module type, connector type, vendor name,
manufacturer part number, single mode or multi-mode, wave length, and transmission
distance.
Use the display fiber-module [ interface-type interface-number | interface-name ]
command to display optical module information of the specified port.
Note:
If the command level that a login user can access is the visit level, the user cannot use
this command. For related information, refer to the user privilege level command.
Examples
# Display the optical module information of all optical interfaces in position on the
current shelf.
<H3C> display fiber-module
GigabitEthernet4/1/1:
Card info: 10G-XFP
Fiber connect: LC
VendorName: JDS Uniphase
PartNumber: 64P0215
SerialNumber: W44060540031
Mode: SingleMode
WaveLength: 1310nm
Length for 9um: 10km
Digital diagnostic monitoring: supported
TX power: -1.5329 dbm, Alarm: none
RX power: -27.9578 dbm, Alarm: none
Table 1-3 display fiber-module command output description
Field Description
Card info Card information
Fiber connect Fiber connector type
VendorName Vendor name
PartNumber Manufacturer part number
Mode Single mode or multi-mode
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-9
Field Description
WaveLength Wave length
Length for X um: Y km/m
The transmission distance of X-um sized fiber is Y
km/m
Length for A / B um: Y km/m
The transmission distance of the fiber with an inner
diameter of A um and outer diameter of B um is Y
km/m.
Digital diagnostic monitoring:
supported
The current XFP optical module supports digital
diagnostic monitoring
TX power: -1.5329 dbm,
Alarm: none
TX power: Transmit power, in dbm;
Alarm: Alarm information
none: No alarm.
RX power: -27.9578 dbm,
Alarm: none
RX power: Receive power, in dbm;
Alarm: Alarm information
none: No alarm.
1.2.5 display users
Syntax
display users [ all ]
View
Any view
Parameters
all: Displays all users connected to the switch.
Description
Use the display users command to view information about users connected to the
switch.
Examples
# Display the information about all the active users on the console.
<H3C> display users
UI Delay Type Ipaddress Username
+ 0 CON 0 00:00:00
+ 130 VTY 0 00:00:05 TEL 192.168.1.253 tb
# Display the information about all the users on the console.
<H3C> display users all
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-10
UI Delay Type Ipaddress Username
+ 0 CON 0 00:00:00
129 AUX 0
+ 130 VTY 0 00:00:16 TEL 192.168.1.253 tb
131 VTY 1
132 VTY 2
133 VTY 3
134 VTY 4
Table 1-4 display users command output description
Field Description
+ Information about an active user
UI
The first number is the absolute number of the UI (user interface),
and the second number is the relative number of the UI.
Delay
The time elapsing after the last user input, in the format of
hh:mm:ss
Type User type, such as Telnet, SSH, PAD
Ipaddress
Initial connection location, that is, the IP address of the incoming
host
Username
Name of the user who uses this UI, that is, the login username of
this user. If the current terminal line is in anonymous login mode
(AAA authentication is enabled on it), this field is null
1.2.6 display version
Syntax
display version
View
Any view
Parameters
None
Description
Use the display version command to view such information as software version, issue
date and the basic hardware configurations.
Examples
# Display the information about the system version.
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-11
<H3C> display version
H3C Comware Platform Software
Comware software, Version 3.10, Feature 1631
Copyright(c) 2004-2007 Hangzhou H3C Technologies Co., Ltd. All rights
reserved.
H3C S9505 uptime is 0 week, 2 days, 4 hours, 19 minutes
LSB1SRP1N6 1: uptime is 0 week,2 days,4 hours,19 minutes
H3C S9500 with 1 MPC755 Processor
512M bytes SDRAM
16384K bytes Flash Memory
512K bytes NVRAM Memory
PCB Version : Ver.B
BootROM Version : 123
CPLD Version : 001
Software Version : S9500-CMW310-F1631
LSB1GT12B0 3: uptime is 0 week,2 days,4 hours,17 minutes
H3C S9500 LPU with 1 MPC8245 Processor
128M bytes SDRAM
0K bytes NVRAM Memory
PCB Version : REV.0
BootROM Version : 103
1.3 System Debugging Commands
1.3.1 debugging
Syntax
debugging { all | timeout interval | module-name [ debugging-option ] }
undo debugging { all | module-name [ debugging-option ] }
View
User view
Parameters
all: Enables or disables all the debugging.
timeout interval: Specifies the interval (in minutes) during which the debugging all
switch is on. The value ranges from 1 to 1440. With this configuration, all debugging
takes the time at which it is enabled as the start time, and takes effect during the
predefined time. And after that, all debugging is disabled.
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-12
module-name: Module name.
debugging-option: Debugging option.
Description
Use the debugging command to enable the system debugging.
Use the undo debugging command to disable the system debugging.
By default, all the debugging processes are disabled.
The switch provides various kinds of debugging functions for technical support
personnel and experienced maintenance staff to troubleshoot the network.
Enabling the debugging will generate a large amount of debugging information and
decrease the system efficiency. Specially, network system may collapse after all the
debugging is enabled by the debugging all command. So it is not suggested to use the
debugging all command. It is convenient for the user to disable all the debugging with
undo debugging all command.
Related commands: display debugging.
Examples
# Enable IP packet debugging.
<H3C> debugging ip packet
<H3C> display debugging
IP packet debugging is on
The above output shows that the IP packet debugging is enabled.
1.3.2 display diagnostic-information
Syntax
display diagnostic-information
View
Any view
Parameters
None
Description
Use the display diagnostic-information command to view the current configuration
information about all running modules. You can use all the information to help diagnose
and troubleshoot the switch.
When the switch does not run well, you can collect all sorts of information about the
switch to locate the source of fault. However, each module has many corresponding
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-13
display commands, which makes it difficult for you to collect all the information needed.
In this case, you can use display diagnostic-information command.
Note:
Before executing the display diagnostic-information command, configure the
terminal debugging & terminal monitor commands in user view first.
Examples
# Display all system configuration information.
This operation may take a few minutes, continue?[Y/N]y
-------------------- display version --------------------
H3C Comware Platform Software
Comware Software, Version 3.10, Feature 1631
Comware Platform Software Version COMWAREHZV300R001B10D015
H3C S9505 Software Version V100R006B01D015
H3C S9505 Product Version S9500-CMW310-F1631(EI)
Copyright(c) 2004-2007 Hangzhou H3C Technologies Co., Ltd. All rights
reserved.
H3C S9505 uptime is 0 week, 2 days, 4 hours, 46 minutes
This device is H3C S9505E
LSB1SRP1N6 1: uptime is 0 week,2 days,4 hours,46 minutes
H3C S9500 with 1 MPC755 Processor
512M bytes SDRAM
16384K bytes Flash Memory
512K bytes NVRAM Memory
PCB Version : Ver.B
BootROM Version : 123
CPLD Version : 001
Software Version : S9500-CMW310-F1631
LSB1GT12B0 3: uptime is 0 week,2 days,4 hours,44 minutes
H3C S9500 LPU with 1 MPC8245 Processor
128M bytes SDRAM
0K bytes NVRAM Memory
PCB Version : REV.0
BootROM Version : 103
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-14
CPLD Version : 005
Software Version : S9500-CMW310-F1631
CPUCard 1
PCB Ver : REV.0
CPLD Ver : 001
SubCard 1
PCB Ver : Ver.A
CPLD Ver : NONE
SubCard 2
PCB Ver : Ver.A
CPLD Ver : NONE
SubCard 3
PCB Ver : Ver.A
CPLD Ver : NONE
1.4 Network Connection Test Commands
1.4.1 ping
Syntax
ping [ ip ] [ -a ip-address | -c count | -d | -h ttl | -i { interface-type interface-num |
interface-name } | -n | - p pattern | -q | -r | -s packetsize | -t timeout | -tos tos | -v |
-vpn-instance vpn-instance-name ] * host
View
Any view
Parameters
-a ip-address: Specifies the source IP address of an ICMP echo request
(ECHO-REQUEST).
-c count: Specifies the number of ICMP echo requests sent, in the range 1 to
4294967295. The default value is 5.
-d: Sets socket to DEBUGGING mode. The default is non-DEBUGGING mode.
-h ttl: Specifies the TTL value for an ICMP echo request, in the range 1 to 255. The
default value is 255.
interface-type: Interface type.
interface-num: Interface number.
interface-name: Interface name.
-i: Specifies the ICMP echo request sending interface.
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-15
-n: Specifies that the host argument is used as the IP address, without domain name
resolution performed. By default, host is taken as the IP address, and if host is not an IP
address, domain name resolution will be performed.
-p: Specifies the padded bytes in an ICMP echo request, in hexadecimal format. For
example, if pattern is configured as ff, then the packets will be padded with ff. By default,
the padded bytes start from 0x01 up to 0x09, where another round starts again if
necessary.
-q: Presence of this keyword indicates that only statistics are displayed. By default, all
information is displayed.
-r: Records routes. By default, routes are not recorded.
-s packet-size: Specifies length (in bytes) of an ICMP echo request (excluding the IP
and ICMP header). The default value is 56.
-t timeout: Specifies the timeout value (in milliseconds) of an ICMP echo reply
(ECHO-REPLY). It defaults to 2000 ms.
-tos tos: Specifies type of service (ToS) of an echo request, in the range 0 to 255. The
default value is 0.
-v: Displays non ICMP echo replies received. By default, the system does not display
non ICMP echo replies.
-vpn-instance vpn-instance-name: Specifies the name of a VPN instance.
host: IP address or domain name of the destination host.
ip: Specifies that IP ICMP packets are used.
Description
Use the ping command to check host reachability and network connectivity in an IP or
IPX network.
The ping command involves the following steps in its execution:
1) The source device sends an ICMP echo request to the destination host.
2) If the network is functioning properly, the destination host responds by sending an
ICMP echo reply to the source device after receiving the ICMP echo request.
You can use the ping command to test network connectivity and connection quality.
Output of the ping command falls into the following:
z Information on the destination’s responses towards each ICMP echo request. If
the source device does not receive an ICMP echo reply within the timeout time, it
displays the prompt information “Request time out.”; otherwise, it displays the
number of bytes of the echo reply, the message sequence number, Time to Live
(TTL), the response time.
z The statistics during the ping operation, which include number of packets sent,
number of echo reply messages received, percentage of messages not received,
and the minimum, average, and maximum response time.
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-16
If the network transmits data rather slowly, you can set a bigger timeout.
Related commands: tracert.
Examples
# Check whether the host with an IP address of 202.38.160.244 is reachable.
<H3C> ping 202.38.160.244
ping 202.38.160.244 : 56 data bytes
Reply from 202.38.160.244 : bytes=56 sequence=1 ttl=255 time = 1ms
Reply from 202.38.160.244 : bytes=56 sequence=2 ttl=255 time = 2ms
Reply from 202.38.160.244 : bytes=56 sequence=3 ttl=255 time = 1ms
Reply from 202.38.160.244 : bytes=56 sequence=4 ttl=255 time = 3ms
Reply from 202.38.160.244 : bytes=56 sequence=5 ttl=255 time = 2ms
--202.38.160.244 ping statistics--
5 packet transmitted
5 packet received
0% packet loss
round-trip min/avg/max = 1/2/3 ms
1.4.2 pingmac
Syntax
pingmac mac-address vlan vlan-id
View
Any view
Parameters
mac-address: MAC address of the destination host. The format is H-H-H.
vlan-id: VLAN that the destination host belongs to, in the range of 1 to 4094.
Description
Use the pingmac command to check the layer-2 network connection and the
reachability of the host.
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-17
Note:
z At present, the pingmac command only supports detection of hosts in the same
VLAN.
z Before executing the pingmac command, enable ndp in system view and port view
first.
Related commands: tracemac.
Examples
# Check whether a host in VLAN 100 with the MAC address of 00f0-fc00-0110 is
reachable.
<H3C> pingmac 00f0-fc00-0110 vlan 100
destination reachable
1.4.3 tracert
Syntax
tracert [ -a source-IP | -f first-TTL | -m max-TTL | -p port | -q num-packet |
-vpn-instance vpn-instance-name | -w timeout ] string
View
Any view
Parameters
-a source-IP: Specifies the source IP address of a tracert packet. It must be a legal IP
address configured on the device.
-f first-TTL: Specifies the first TTL, that is, the allowed number of hops for the first
packet. first-TTL defaults to 1 and must be greater than 0 and less than the maximum
TTL.
-m max-TTL: Specifies the maximum TTL, that is, the maximum allowed number of
hops for a packet. max-TTL defaults to 30, and must be greater than the first TTL.
-p port: Specifies the UDP port number of the destination host. The default value is
33434. You do not need to modify this argument.
-q num-packet: Specifies the number of probe packets sent each time. num-packet is
an integer greater than 0, defaulting to 3.
-vpn-instance vpn-instance-name: Specifies the name of an MPLS VPN instance.
-w timeout: Specifies the timeout time of the reply packet of a probe packet, in seconds.
timeout is an integer greater than 0, defaulting to 5.
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-18
string: IP address of the destination host or host name of the remote system.
Description
Use the tracert command to trace the gateways 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.
2) The first hop 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 gateway.
3) The source device sends a packet with a TTL value of 2 to the destination.
4) The second hop responds with a TTL-expired ICMP message, which gives the
source device the address of the second gateway.
The above process continues until the ultimate destination is reached. In this way, the
source device can trace the addresses of all the gateways involved to get to the
destination.
After having identified network failure with the ping command, you can use the tracert
command to determine the failed node(s).
Output information of the tracert command includes IP addresses of all the gateways
the packets traverse from the source to the destination. If a gateway times out, "* * *"
will be displayed.
Caution:
At present, the device does not support check of whether a network is reachable using
the tracert command and identification of failed node(s) in the event of network failure
in an MPLS domain.
Examples
# Display the routers the packets traverse from the source device to the destination
device with an IP address of 18.26.0.115.
<H3C> tracert 18.26.0.115
tracert to allspice.lcs.mit.edu (18.26.0.115), 30 hops max
1 helios.ee.lbl.gov (128.3.112.1) 0 ms 0 ms 0 ms
2 lilac-dmc.Berkeley.EDU (128.32.216.1) 19 ms 19 ms 19 ms
3 lilac-dmc.Berkeley.EDU (128.32.216.1) 39 ms 19 ms 19 ms
4 ccngw-ner-cc.Berkeley.EDU (128.32.136.23) 19 ms 39 ms 39 ms
Command Manual – System Maintenance and Debugging
H3C S9500 Series Routing Switches
Chapter 1 System Maintenance and
Debugging Commands
1-19
5 ccn-nerif22.Berkeley.EDU (128.32.168.22) 20 ms 39 ms 39 ms
6 128.32.197.4 (128.32.197.4) 59 ms 119 ms 39 ms
7 131.119.2.5 (131.119.2.5) 59 ms 59 ms 39 ms
8 129.140.70.13 (129.140.70.13) 80 ms 79 ms 99 ms
9 129.140.71.6 (129.140.71.6) 139 ms 139 ms 159 ms
10 129.140.81.7 (129.140.81.7) 199 ms 180 ms 300 ms
11 129.140.72.17 (129.140.72.17) 300 ms 239 ms 239 ms
12 * * *
13 128.121.54.72 (128.121.54.72) 259 ms 499 ms 279 ms
14 * * *
15 * * *
16 * * *
17 * * *
18 ALLSPICE.LCS.MIT.EDU (18.26.0.115) 339 ms 279 ms 279 ms
1.4.4 tracemac enable
Syntax
tracemac enable
undo tracemac enable
View
System view
Parameters
None
Description
Use the tracemac enable command to enable the TraceMac&Ping Mac function of
the system.
Use the undo tracemac enable command to disable the TraceMac&Ping Mac
function.
Note:
The tracemac&pingmac functions cannot go without the support of NDP, and will not
work if NDP and tracemac are disabled. By default, NDP is disabled.
By default, the TraceMac and Ping Mac functions are disabled on the switch.
Related commands: tracemac.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23

H3C S9500 Series Command Manual

Type
Command Manual

The H3C S9500 Series, your newly acquired networking solution, empowers you with a range of capabilities to optimize your network infrastructure. It offers comprehensive system maintenance, debugging tools, and network connectivity testing features to ensure seamless operation.

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI