Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way to monitor the network connection from my PC to a Windows Server running on our network. My PC is running Windows 7 and the server is running Windows Server 2003 R2. I'm looking for things like dropped packets, errors, packet loss, data loss, loss of connection, etc.

If it helps the server is a VM running on XenServer 5.5 - if I'm able to monitor it using XS instead?

Does anyone know the best way to do this for free?

share|improve this question
You'll get better answers if you describe what problem you're trying to solve, or are just doing this as a learning exercise. – mfinni May 27 '11 at 15:21

One way to do this is to use your network switch to monitor the port the Windows 7 PC is using. It will have all of these statistics (in real time).

share|improve this answer
Cool. Unfortunately I'm not sure which port I'm connected to. :( – Reado May 27 '11 at 14:26
@Reado - Can you find out? If you're just a user, and not an admin, on this network, you really should work with your local tech support and admins to help you. – mfinni May 27 '11 at 20:13

+1 for the idea of looking at the switch port.

Ping server four times if it doesn't reply send an email.

Set it run as cron job every 5 minutes.

check=$(ping -c $count $server | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
if [ $check -eq 0 ]; then
  echo "Host : $server is down (ping failed) at $(date)" | mail -s "$subject" $email

I got it from here which is a complete script.

share|improve this answer
If I ran a ping from a Linux server with a timeout of 0ms, that would hammer the server with pings, but would this be recommended or not? Could I use SNMP or is that something else? – Reado May 27 '11 at 14:28
You could use ping -c and a cron job. Or snmp. It's all about polling. – JamesBarnett Jun 1 '11 at 20:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.