Tip

Troubleshoot networks with the pathping command

One way of resolving network problems is by using the pathping command. This command works like a combination of ping and tracert.

The first thing you'll need to do is type pathping from the command line, like this:
pathping target
where target is either a hostname or an IP address, for example, pop3.catalog.com or 209.217.46.121.

You then get a two-part report. The first part will be a list of every hop along the route to the destination, and the second part will be statistics about each hop, including the number of packets lost at each hop. It uses switches like those shown in the following example:

pathping -n -w 1000 msn.com

This command tells pathping not to resolve the IP addresses of routers, and to wait one second (1,000 milliseconds) for an Echo Reply message.

Here is a list of most important pathping switches:

  • n Does not display the hostname of each router.
  • hvalue Sets a maximum number of hops for the trace to the destination. The default is 30 hops.
  • wvalue Sets the maximum amount of time (in milliseconds) to wait for a reply.
  • p Sets the amount of time (in milliseconds) to wait before a new ping is issued. The default is 250.
  • qvalue Sets the number of ICMP Echo Request messages to transmit. The default is 100.

About the author: Rahul Shah currently works

    Requires Free Membership to View

at a software firm in India, where he is a systems administrator maintaining Windows servers. He has also worked for various software firms in testing and analytics, and also has experiences deploying client/server applications in different Windows configurations.

More information on this topic:


This was first published in September 2006

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.