------art_51157_12017426.1217872773791
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Mon, Aug 4, 2008 at 11:25 AM, <brabuhr / gmail.com> wrote:

> On Mon, Aug 4, 2008 at 9:13 AM, Glen Holcomb <damnbigman / gmail.com> wrote:
> > This whole thing started as a tool to shutdown certain machines at
> certain
> > times in the evening and then wake them (WOL) at a scheduled time in the
> > morning to be ready for classes.  I only manage three labs so it wasn't a
> > big deal to input the MAC addresses by hand.  However the larger IT
> > department here at the school has taken notice and is interested in using
> it
> > to manage machines institution wide.
> >
> > Since they have over a thousand machines they manage the current idea is
> to
> > populate both the computer db entries and the group/lab/area db entries
> from
> > LDAP/AD.  Hence my quest for an easily automated way to get MAC
> addresses,
> > machine names are easy (LDAP/AD) and IP is also easy, at least assuming
> DNS
> > is correct it is.
>
> If you are talking about mainly Windows boxes and they still have the
> NetBIOS bits enabled, try nbtstat:
>
> C:\>nbtstat -A 172.16.121.11
>
> Local Area Connection:
> Node IpAddress: [172.16.121.54] Scope Id: []
>
>           NetBIOS Remote Machine Name Table
>
>       Name               Type         Status
>    ---------------------------------------------
> ...
>
>    MAC Address  X-XX-XX-XX-XX-XX
>
> C:\>nbtstat -A 172.16.23.204
>
> Local Area Connection:
> Node IpAddress: [172.16.121.54] Scope Id: []
>
>           NetBIOS Remote Machine Name Table
>
>       Name               Type         Status
>    ---------------------------------------------
> ...
>
>    MAC Address  X-XX-XX-XX-XX-XX
>
>
Thanks brabuhr,

Most of the target machines are definitely Windows boxes and the app will
probably reside on a Windows box so this would work in that case.

Much appreciated.

-Glen

-- 
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can't hear a word you're saying."

-Greg Graffin (Bad Religion)

------art_51157_12017426.1217872773791--