08-System Volume

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Series Ethernet Switches Command Manual(Release 6300 series V1.03)08-System Volume
08-System Maintaining and Debugging Commands
Title Size Download
08-System Maintaining and Debugging Commands 63.26 KB

System Maintaining Commands

ping

Syntax

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

View

Any view

Default Level

0: Visit level

Parameters

ip: Supports IPv4 protocol.

-a source-ip: Specifies the source IP address of an ICMP echo request (ECHO-REQUEST). It must be a legal IP address configured on the device.

-c count: Specifies the number of times that an ICMP echo request is sent, in the range 1 to 4294967295. The default value is 5.

-f: Discards packets larger than the MTU of a given interface, that is, the ICMP echo request is not allowed to be fragmented.

-h ttl: Specifies the TTL value for an ICMP echo request, in the range 1 to 255. The default value is 255.

-i interface-type interface-number: Specifies the ICMP echo request sending interface by its type and number.

-m interval: Specifies the interval (in milliseconds) to send an ICMP echo response, in the range 1 to 65535. The default value is 200 ms.

l          If a response from the destination is received within the timeout time, the interval to send the next echo request equals the actual response period plus the value of interval.

l          If no response from the destination is received within the timeout time, the interval to send the next echo request equals the timeout value plus the value of interval.

-n: Specifies that the Domain Name System (DNS) is disabled. DNS is enabled by default, that is, the hostname is translated into an address.

-p pad: Specifies the value of the pad field in an ICMP echo request, in hexadecimal format, 1 to 8 bits, in the range 0 to ffffffff. If the specified value is less than 8 bits, 0s will be added to extend the value to 8 bits. For example, if pad is configured as 0x2f, then the packets will be padded with 0x0000002f repeatedly to make the total length of the packet meet the requirements of the device. By default, the padded value starts from 0x01 up to 0xff, where another round starts again if necessary, like 0x010203…feff01….

-q: Presence of this parameter 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, in the range 20 to 8100. The default value is 56.

-t timeout: Specifies the timeout value (in milliseconds) of an ICMP echo reply (ECHO-REPLY), in the range 0 to 65535. It defaults to 2000.

-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 reply received. By default, the system does not display non ICMP echo reply.

-vpn-instance vpn-instance-name: Specifies the name of an MPLS VPN instance, which is a string of 1 to 31 characters. It is case sensitive.

remote-system: IP address or host name (a string of 1 to 20 characters) of the destination device.

Description

Use the ping command to verify whether the destination device in an IP network is reachable, and to display the related statistics.

Note that:

l          You must use the command in the form of ping ip ip instead of ping ip if the destination name is a key word, such as ip.

l          Only the directly connected segment address can be pinged if the outgoing interface is specified with the -i argument.

Examples

# Check whether the device with an IP address of 10.1.1.5 is reachable.

<Sysname> ping 10.1.1.5

PING 10.1.1.5 : 56 data bytes, press CTRL_C to break

Reply from 10.1.1.5 : bytes=56 Sequence=1 ttl=255 time = 1 ms

Reply from 10.1.1.5 : bytes=56 Sequence=2 ttl=255 time = 2 ms

Reply from 10.1.1.5 : bytes=56 Sequence=3 ttl=255 time = 1 ms

Reply from 10.1.1.5 : bytes=56 Sequence=4 ttl=255 time = 3 ms

Reply from 10.1.1.5 : bytes=56 Sequence=5 ttl=255 time = 2 ms

 

--- 10.1.1.5 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 1/2/3 ms

The above information indicates the following:

l          The destination host was reachable

l          All probe packets sent by the source device got responses

l          The minimum time, average time, and maximum time for the packet’s roundtrip time are 1 ms, 2 ms, and 3 ms respectively

ping ipv6

Syntax

ping ipv6 [ -a source-ipv6 | -c count | -m interval | -s packet-size | -t timeout ] * remote-system [ -i interface-type interface-number ]

View

Any view

Default Level

0: Visit level

Parameters

-a source-ipv6: Specifies the source IPv6 address of an ICMP echo request. It must be a legal IPv6 address configured on the device.

-c count: Specifies the number of times that an ICMPv6 echo request is sent, in the range 1 to 4294967295. The default value is 5.

-m interval: Specifies the interval (in milliseconds) to send an ICMPv6 echo reply, in the range 1 to 65535. The default value is 200 ms.

l          If a response from the destination is received within the timeout time, the interval to send the next echo request equals the actual response period plus the value of interval.

l          If no response from the destination is received within the timeout time, the interval to send the next echo request equals the timeout value plus the value of interval.

-s packet-size: Specifies length (in bytes) of an ICMPv6 echo request, in the range 20 to 8100. It defaults to 56.

-t timeout: Specifies the timeout value (in milliseconds) of an ICMPv6 echo reply, in the range 0 to 65535. It defaults to 2000.

remote-system: IPv6 address or host name of the destination device, a string of 1 to 46 characters.

-i interface-type interface-number: Specifies an outgoing interface by its type and number. This parameter can be used only in case that the destination address is the link local address and the specified outgoing interface must have a link local address (For the configuration of link local address, see IPv6 Basics in the IP Services Volume).

Description

Use the ping ipv6 command to verify whether an IPv6 address is reachable, and display the corresponding statistics.

You must use the command in the form of ping ipv6 ipv6 instead of ping ipv6 if the destination name is an ipv6 name.

Examples

# Verify whether the IPv6 address 2001::1 is reachable.

<Sysname> ping ipv6 2001::1

  PING 2001::1 : 56  data bytes, press CTRL_C to break

  Reply from 2001::1  bytes=56 Sequence=1 hop limit=64  time = 20 ms

  Reply from 2001::1  bytes=56 Sequence=2 hop limit=64  time = 0 ms

  Reply from 2001::1  bytes=56 Sequence=3 hop limit=64  time = 0 ms

  Reply from 2001::1  bytes=56 Sequence=4 hop limit=64  time = 0 ms

  Reply from 2001::1  bytes=56 Sequence=5 hop limit=64  time = 0 ms

  --- 2001::1 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 0/4/20 ms

The “hop limit” field in this prompt information has the same meaning as the “ttl” field in the prompt information displayed by the IPv4 ping command, indicating the TTL value in the ICMPv6 echo request.

tracert

Syntax

tracert [ -a source-ip | -f first-ttl | -m max-ttl | -p port | -q packet-number | -vpn-instance vpn-instance-name | -w timeout ] * remote-system

View

Any view

Default Level

0: Visit level

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, in the range 1 to 255. It defaults to 1 and must be less than the maximum TTL.

-m max-ttl: Specifies the maximum TTL, that is, the maximum allowed number of hops for a packet, in the range 1 to 255. It defaults to 30, and must be greater than the first TTL.

-p port: Specifies the UDP port number of the destination device, in the range 1 to 65535. The default value is 33434. You do not need to modify this parameter.

-q packet-number: Specifies the number of probe packets sent each time, in the range 1 to 65535. The default value is 3.

-vpn-instance vpn-instance-name: Specifies the name of an MPLS VPN instance, which is a string of 1 to 31 characters.

-w timeout: Specifies the timeout time of the reply packet of a probe packet, in the range 1 to 65535, in milliseconds. The default value is 5000 ms.

remote-system: IP address or host name (a string of 1 to 20 characters) of the destination device.

Description

Use the tracert command to trace the routers the packets traverse from the source to the destination device.

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 routers the packets traverse from the source to the destination device. If a router times out, "* * *" will be displayed.

Examples

# Display the routers the packets traverse from the source device to the destination device with an IP address of 18.26.0.115.

<Sysname> tracert 18.26.0.115

traceroute to 18.26.0.115(18.26.0.115) 30 hops max,40 bytes packet, press CTRL_C to break

1  128.3.112.1  10 ms 10 ms 10 ms

2  128.32.210.1  19 ms 19 ms 19 ms

3  128.32.216.1  39 ms 19 ms 19 ms

4  128.32.136.23  19 ms 39 ms 39 ms

5  128.32.168.22  20 ms 39 ms 39 ms

6  128.32.197.4  59 ms 119 ms 39 ms

7  131.119.2.5  59 ms 59 ms 39 ms

8  129.140.70.13  80 ms 79 ms 99 ms

9  129.140.71.6  139 ms 139 ms 159 ms

10  129.140.81.7  199 ms 180 ms 300 ms

11  129.140.72.17  300 ms 239 ms 239 ms

12  * * *

13  128.121.54.72  259 ms 499 ms 279 ms

14  * * *

15  * * *

16  * * *

17  * * *

18  18.26.0.115  339 ms 279 ms 279 ms

tracert ipv6

Syntax

tracert ipv6 [ -f first-ttl | -m max-ttl | -p port | -q packet-number | -w timeout ] * remote-system

View

Any view

Default Level

0: Visit level

Parameters

-f first-ttl: Specifies the first TTL, that is, the allowed number of hops for the first packet, in the range 1 to 255. It defaults to 1 and must be less than the maximum TTL.

-m max-ttl: Specifies the maximum TTL, that is, the maximum allowed number of hops for a packet, in the range 1 to 255. It defaults to 30 and must be greater than the first TTL.

-p port: Specifies the UDP port number of the destination device, in the range 1 to 65535. The default value is 33434. It is unnecessary to modify this parameter.

-q packet-number: Specifies the number of probe packets sent each time, in the range 1 to 65535, defaulting to 3.

-w timeout: Specifies the timeout time of the reply packet of a probe packet, in the range 1 to 65535, in milliseconds. The default value is 5000 ms.

remote-system: IPv6 address or host name of the destination device, a string of 1 to 46 characters.

Description

Use the tracert ipv6 command to view the routers the IPv6 packets traverse from the source to the destination device.

Examples

# View the routes involved for packets to travel from the source to the destination with IPv6 address 3002::1.

<Sysname> tracert ipv6 3002::1

 traceroute to 3002::1  30 hops max,60 bytes packet

 1 3003::1 30 ms 10 ms 10 ms

 2 3002::1 10 ms 11 ms 9 ms

System Debugging Commands

debugging

Syntax

debugging { all [ timeout time ] | module-name [ option ] }

undo debugging { all | module-name [ option ] }

View

User view

Default Level

1: Monitor level

Parameters

all: All debugging functions.

timeout time: Specifies the timeout time for the debugging all command. When all debugging is enabled, the system automatically executes the undo debugging all command after the time. The value ranges from 1 to 1440, in minutes.

module-name: Module name, such as arp or device. You can use the debugging ? command to display the current module name.

option: The debugging option for a specific module. Different modules have different debugging options in terms of their number and content. You can use the debugging module-name ? command to display the currently supported options.

Description

Use the debugging command to enable the debugging of a specific module.

Use the undo debugging command to disable the debugging of a specific module.

By default, debugging functions of all modules are disabled.

Note the following:

l          Output of the debugging information may degrade system efficiency, so you are recommended to enable the debugging of a specific module for diagnosing network failure, and not to enable the debugging of multiple modules at the same time.

l          Default Level describes the default level of the debugging all command. Different debugging commands may have different default levels.

l          You must configure the debugging, terminal debugging and terminal monitor commands first to display detailed debugging information on the terminal. For the detailed description on the terminal debugging and terminal monitor commands, refer to Information Center Commands in the System Volume.

Related commands: display debugging.

Examples

# Enable IP packet debugging.

<Sysname> debugging ip packet

display debugging

Syntax

display debugging [ interface interface-type interface-number ] [ module-name ]

View

Any view

Default Level

1: Monitor level

Parameters

interface interface-type interface-number: Displays the debugging settings of the specified interface, where interface-type interface-number represents the interface type and number.

module-name: Module name.

Description

Use the display debugging command to display enabled debugging functions.

Related commands: debugging.

Examples

# Display all enabled debugging functions.

<Sysname> display debugging

IP packet debugging is on

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网