Computing.Net > Forums > Programming > Parsing doubled when run locally

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Parsing doubled when run locally

Reply to Message Icon

Name: keridbey
Date: January 19, 2008 at 15:15:02 Pacific
OS: Win2000
CPU/Ram: 1.83 Ghz / 1 Gb
Product: Dell
Comment:

Folks, I've got a doozy here. I'll explain the circumstances first, then the problem. I have a batch file that uses TST10.exe to script a telnet session into a managed switch. It retrieves the MAC addresses of all active devices on the network, then it sends one ping to every possible IP so it can then retrieve the ARP table of the PC. It then deduces which device is in which port by way of comparing MAC and IP addresses. (This bit of magic was IVO's handiwork.) Here's the problem: if I run this batch file remotely (i.e. via PsExec), the end report looks great (I've actually been doing the parsing locally after retrieving the information from the remote system). If I parse everything on the local machine, it doubles the IPs and MACs. Here's an example:

Port 3 192.168.0.3
Port 3 192.168.0.3
Port 4 192.168.0.4
Port 4 192.168.0.4
Port 5 192.168.0.5
Port 5 192.168.0.5
Port 6 192.168.0.6
Port 6 192.168.0.6
Port 15 192.168.0.25
Port 15 192.168.0.25
Port 12 192.168.0.34
Port 12 192.168.0.34
Port 13 192.168.0.251
Port 13 192.168.0.251
Port 10 192.168.0.253
Port 10 192.168.0.253

Here's the message that IVO left his code on (with my explaining what I was originally trying to do):
http://www.computing.net/programmin...

I have used the same computer both times (dialed in remotely and physically sitting at it). Any ideas as to why it doubles the lines when parsed locally?



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: January 20, 2008 at 03:17:15 Pacific
Reply:

Hello keridbey,

before we go ahead along exoteric lanes, please, can you verify if the ARP table contains the same entries either locally or remotely constructed?

As the issue may be due to a data collection trouble more than the parsing procedure.

Sorry, but that is the first thing to be inspected before carring on any debugging.


0

Response Number 2
Name: keridbey
Date: January 20, 2008 at 06:27:49 Pacific
Reply:

Argh.. I had gone through my code several times yesterday and couldn't find anything wrong with it. Today I took one look and see that I had somehow copied and pasted two lines twice, doubling up on the information it was parsing. I think my ancient CRT has been cooking my brain.

Thanks for your help!!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Parsing doubled when run locally

Parsing Question www.computing.net/answers/programming/parsing-question/16238.html

VB6 / Winsock / IPF?? www.computing.net/answers/programming/vb6-winsock-ipf/9025.html

Running ActiveX Documents www.computing.net/answers/programming/running-activex-documents/7766.html