Page 1 of 1 1
Topic Options
#66261 - 2002-06-06 06:01 PM MAC Address
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Is there a script or program that will enumerate remote MAC addresses (not necessarily PCs, just nodes) for given IPs? I have fiddled with ping and arp and had limited success.

Brian

Top
#66262 - 2002-06-06 06:14 PM Re: MAC Address
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Brian,

You should be able get what you need from this?

http://cwashington.netreach.net/depo/view.asp?Index=612&ScriptType=vbscript

I know it is not Kix, but should be portable.

HTH,

- Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#66263 - 2002-06-06 07:40 PM Re: MAC Address
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Hmm. thanks for the good info... but I don't think that will work for non-Windows OSes. I'm specifically talking about hp jetdirect print servers and linux machines.

Brian

Top
#66264 - 2002-06-06 07:46 PM Re: MAC Address
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Here's a low-tech brain fart. When I need to know a MAC quickly without going to my NMS, what I do is to clear my ARP cache (ARP -D), ping the device, and check my ARP (ARP -A).

Using SNMP, you should be able to query the ARP table of your router.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66265 - 2002-06-06 09:33 PM Re: MAC Address
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I have been fiddling around with it but it only works on the local subnet.

Brian

Top
#66266 - 2002-06-06 09:41 PM Re: MAC Address
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Each router maintains its own list of MAC addresses that it has seen. I think you will have to hit each router and consolidate the lists.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66267 - 2002-06-06 10:56 PM Re: MAC Address
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
...and I bet you've got a Perl script that'll do just that...

If you don't, a quick search on google will get you one.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66268 - 2002-06-06 11:50 PM Re: MAC Address
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Sorry, I'll ease up on the Perl stuff. [Roll Eyes]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66269 - 2002-06-07 12:35 AM Re: MAC Address
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Oh!... Don't be sorry Howard. We all love KiXtart, but we all also want solutions to our problems as well, even if it is not KiXtart. [Roll Eyes]
Top
#66270 - 2002-06-07 12:48 AM Re: MAC Address
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Les, Yeah what he said! [Wink]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66271 - 2002-06-07 02:07 AM Re: MAC Address
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
EH HB, don't need to apologize for the Perl stuff. If KiX won't do it and Perl will, better to show what Perl can do. Maybe in the future, new versions of KiX will be able to do it too.

The only reason I mentioned it is that I was searching Google for a solution and all I could find was Perl stuff. You know, Perl is big in the NMS/SNMP arena. Take MRTG for example. I only wish there was room enough for both KiX and Perl. Unfortunately, not even enough for KiX (in my brain, that is). [Frown]

[ 07 June 2002, 02:09: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66272 - 2002-06-07 02:27 AM Re: MAC Address
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You know, I have an empty KiXtart web page on my site. I just can find anything to post on it that is not already here. I can't really compete in the KixTart arena.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66273 - 2002-06-07 02:32 AM Re: MAC Address
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
oh man - im not saying anything. howard, your a sh*t disturber man, i like you. gawd, i've fallen and i can't get up - my gut is splitting - roflmao

[ 07 June 2002, 02:33: Message edited by: Shawn ]

Top
#66274 - 2002-06-07 02:38 AM Re: MAC Address
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Don't hurt yourself [Big Grin]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66275 - 2002-06-07 04:26 PM Re: MAC Address
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I actually found some code written in C, but I don't have a C compiler so that doesn't do me too much good. It's not really a huge big deal.. I just thought it would be nice to have a command-line utility that resolves MAC addresses. This would help me in managing printer queues, mainly. Thanks for the effort guys.

Brian

Top
#66276 - 2002-06-07 06:47 PM Re: MAC Address
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Brian,
Did you know you can also query the MAC from your DHCP server (providing they use DHCP)?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66277 - 2002-06-07 08:26 PM Re: MAC Address
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
We are using static IPs for our printers (I wish we weren't, but that's not my decision.)..

Brian

Top
#66278 - 2002-06-07 08:48 PM Re: MAC Address
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Brian,

Send me your c code.. I should be able to compile it fer ya..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#66279 - 2002-06-10 02:35 AM Re: MAC Address
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Thanks, Kent.. I'm not worried about it anymore, though. [Smile] I've been given the job of maintaining print queues (along with my many other duties -- IE patches, investigating SMS, logon scripts, McAfee deployment and updates, proxy server/monitoring software, various and sundry desktop support issues)... Anyway, we are converting from token ring to ethernet and I was updating the database including MAC addresses... but I found another way to do it (albeit a hair less convenient) via HP Web Jet Admin.

Brian

P.S. If you want to look at the C++ code, I found it here:

http://tangentsoft.net/wskfaq/examples/getmac-snmp.html

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.07 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org