命令行大全

pathping

秃噜豆儿 发表于 2020-06-23 17:36浏览次数:

与tracert命令类似,pathping命令使用户能定位具有网络延迟和网络丢失的位置。

查看英文版

目录:

1 pathping 运行系统环境

2 pathping 示例

3 pathping 语法

pathping 运行系统环境

Windows xp

Windows vista

Windows 2000

Windows 7

Windows 8

Windows 10

pathping 示例

pathping computerhope.com
Tracing route to computerhope.com [2400:cb00:2048:1::6814:3876]
over a maximum of 30 hops:
0 Hope-PC.hsd1.ut.comcast.net [2601:681:8380:1830:b5b4:6583:4660:1898]
1 2601:681:8380:1830:2e95:69ff:fe9b:3739
2 2001:558:4072:9::1
3 po-104-rur01.sandy.ut.utah.comcast.net [2001:558:102:2060::1]
4 2001:558:fe0b:a::a
5 2400:cb00:2048:1::6814:3876
Computing statistics for 125 seconds...
Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
0 Hope-PC [192.168.120.101]
0/ 100 = 0% |
1 1ms 0/ 100 = 0% 0/ 100 = 0% 2601:681:8380:1830:2e95:69ff:fe9b:3739
0/ 100 = 0% |
2 --- 100/ 100 =100% 100/ 100 =100% 2001:558:4072:9::1
0/ 100 = 0% |
3 7ms 0/ 100 = 0% 0/ 100 = 0% sandy.ut.utah.comcast.net [2001:558:102:2060::1]
0/ 100 = 0% |
4 8ms 0/ 100 = 0% 0/ 100 = 0% 2001:558:fe0b:a::a
0/ 100 = 0% |
5 8ms 0/ 100 = 0% 0/ 100 = 0% 2400:cb00:2048:1::6814:3876
Trace complete.

在上面的路径示例输出中,总共有五跳,总共需要8ms。列出的每个地址都是每个跃点上的计算机或路由器。

pathping computerhope.com
Tracing route to computerhope.com [2400:cb00:2048:1::6814:3876]
over a maximum of 30 hops:
0 Hope-PC.hsd1.ut.comcast.net [2601:681:8380:1830:b5b4:6583:4660:1898]
1 2601:681:8380:1830:2e95:69ff:fe9b:3739
2 2001:558:4072:9::1
3 po-104-rur01.sandy.ut.utah.comcast.net [2001:558:102:2060::1]
4 2001:558:fe0b:a::a
5 2400:cb00:2048:1::6814:3876
Computing statistics for 125 seconds...
Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
0 Hope-PC [192.168.120.101]
0/ 100 = 0% |
1 1ms 0/ 100 = 0% 0/ 100 = 0% 2601:681:8380:1830:2e95:69ff:fe9b:3739
0/ 100 = 0% |
2 --- 100/ 100 =100% 100/ 100 =100% 2001:558:4072:9::1
0/ 100 = 0% |
3 7ms 0/ 100 = 0% 0/ 100 = 0% sandy.ut.utah.comcast.net [2001:558:102:2060::1]
0/ 100 = 0% |
4 8ms 0/ 100 = 0% 0/ 100 = 0% 2001:558:fe0b:a::a
0/ 100 = 0% |
5 8ms 0/ 100 = 0% 0/ 100 = 0% 2400:cb00:2048:1::6814:3876
Trace complete.

In the pathping example output above, there are a total of five hops that take a total of 8ms. Each of the addresses are listed are the computers or routers on each of the hops.

查看英文版

查看中文版

pathping 语法

Windows XP,Vista,7和8语法

用法:

pathping [-g host-list] [-h maximum_hops] [-i address] [-n] [-p period] [-q num_queries] [-w timeout] [-P] [-R] [-T] [-4] [-6] target_name

选项:

-g host-list 主机列表中的源路由松散。
-h maximum_hops 搜索目标的最大跳数。
-i address 使用指定的源地址。
-n 不要将地址解析为主机名。
-p period 两次ping之间的等待时间(毫秒)。
-q num_queries 每跳的查询数。
-w timeout 每个回复的等待超时毫秒数。
-P 测试RSVP PATH连接。
-R 测试每个跃点是否都知道RSVP。
-T 使用第2层优先级标签测试与每个跃点的连接性。
-4 强制使用IPv4。
-6 强制使用IPv6。
Windows 2000语法

用法:

pathping [-n] [-h maximum_hops] [-g host-list] [-p period] [-q num_queries] [-w timeout] [-t] [-R] [-r] target_name

Options:

-n 不要将地址解析为主机名。
-h maximum_hops 搜索目标的最大跳数。
-g host-list 主机列表中的源路由松散。
-p period 两次ping之间的等待时间(以毫秒为单位)。
-q num_queries 每跳的查询数。
-w timeout 每个回复的等待超时时间(以毫秒为单位)。
-T 使用第2层优先级标签测试与每个跃点的连接性。
-R 测试每个跃点是否都知道RSVP。
Windows XP, Vista, 7, and 8 syntax

Usage:

pathping [-g host-list] [-h maximum_hops] [-i address] [-n] [-p period] [-q num_queries] [-w timeout] [-P] [-R] [-T] [-4] [-6] target_name

Options:

-g host-list Loose source route along host-list.
-h maximum_hops Maximum number of hops to search for a target.
-i address Use the specified source address.
-n Do not resolve addresses to hostnames.
-p period Wait period milliseconds between pings.
-q num_queries Number of queries per hop.
-w timeout Wait timeout milliseconds for each reply.
-P Test for RSVP PATH connectivity.
-R Test if each hop is RSVP aware.
-T Test connectivity to each hop with Layer-2 priority tags.
-4 Force using IPv4.
-6 Force using IPv6.
Windows 2000 syntax

Usage:

pathping [-n] [-h maximum_hops] [-g host-list] [-p period] [-q num_queries] [-w timeout] [-t] [-R] [-r] target_name

Options:

-n Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for a target.
-g host-list Loose source route along host-list.
-p period Wait period in milliseconds between pings.
-q num_queries Number of queries per hop.
-w timeout Wait timeout in milliseconds for each reply.
-T Test connectivity to each hop with Layer-2 priority tags.
-R Test if each hop is RSVP aware.

查看英文版

查看中文版