HP3000-L Archives

September 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Thu, 28 Sep 2000 20:50:41 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Eric Chamba wrote:
>
> Does someone know a way to get the MAC (hardware) adress of the nic
> in a PC running an emulator connected (NS/VT or telnet) onto a
> HP3000 _from the HP3000 side_ ?

OK, a lot of folks took a shot at this one, mostly referencing NETTOOL,
but let me add my two cents...

As far as I know, there is *no* reliable way on *any* platform to
determine to MAC address of any arbitrary PC connected to your system,
as the PC may not be on your subnet, and any associated MAC address will
be the MAC address of the gateway closest to the system.  Assuming that
you have some SNMP skills and the proper community strings and read the
right MIBs, you can trace back through the gateway ARP tables and/or
switch L2 cache MIBs and possibly discover the MAC.  If you add
traceroute to get the last gateway, you can shortcut that process.  But
this is horribly complicated, and unless you "own the farm" between your
server and the PC, you're unlikely to be able to read the MIBs in the
first place.

If they are on your subnet, then yes, the MAC is available in the 3000s
ARP table, accessible via NETTOOL for sure, SNMP maybe, else
you'll need priv mode and debug and lots of nasties to dig it out for
yourself.

If there was a "raw" socket interface such that you could build your own
packets (fat chance), you could construct a ping packet to the IP
address (HPREMIPADDR) and get the MAC from the echo reply; but the
'ping' programs (ping.net.sys and the one in nettool) only show the IP
portion of the return, not the source MAC.

A more likely (but certainly not bullet-proof) solution would be to use
a known emulator like Reflection, and invoke a script that would obtain
the MAC address from Windows [dunno about MACs] and pass it back to you
as a string.

Be grateful that you have the IP address.  You can't even get that from
a Telnet Access Card (TAC) in a DTC except on the DTC Manager server.

Jeff Kell <[log in to unmask]>

ATOM RSS1 RSS2