Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I've been trying to see if a XP computer is started (compA).

To do that I've been using arp calls in a batch file from another XP computer (compB):

@setlocal enableextensions enabledelayedexpansion
@echo off
:start
for /f "tokens=1 delims= " %%i in ('arp -a ^| find /i "00-00-00-00-00-00"') do set ip=%%i
@echo IP %ip%


Note: this mac has been replaced by 0's not to make it public here.

This made it the first times, while the computer (compA) was on.

Then I tried searching for the computer while it (compA) was off (of course it had to fail which it has). The issue appeared here, after a minute of waiting recalling that arp command continuously in compB, I've started compA and to my surprise after getting it started I have not seen any different result so no IP was being retrieved, nor MAC was being found from compB.

Restarted compA several times and tried to find it from other computers and it worked.

I can find the ip address of any other computer using this method but not of the one which I've used to test, also I can find the test computer from other computers in my LAN, so the problem is clearly on the computer that has been making arp calls continuously...

When I do call arp -a in compB I can see only two computers in the arp cache... so it should not have any relationship with that but...

I've tried:

--> netsh interface ip delete arpcache

--> arp -d *

They have not helped.

As extra information, I've just tested it from a virtual machine (compC) and the result has been the same than with compB.

What should I do to get the hability to make arp calls from that computer to the remote one?

I would like to integrate that at the beginning of my batch file to ensure that problem won't arise again, or, in the worst case, it will arise, but automatically be solved.

Thank you in advance!
Posted
Updated 21-Aug-14 0:04am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900