Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2005 12:57:34 +0800
From:      "Paul Hamilton" <paulh@bdug.org.au>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: Enumerating a Windows based PC from a FreeBSD based server - Resolved
Message-ID:  <027a01c5dd0e$70cfbbb0$6600a8c0@w2k2>

next in thread | raw e-mail | index | archive | help
Hi,

OK, after a lot more searching of the ports system - nothing found so =
far.
Something joggled a neuron to have a look at what samba utils could tell =
me.

By running: "nmblookup -A <IP Number or PC name>"  it quickly returns a =
nice
list of info. All I need to do then is grep for '<03>' and exclude the =
PC
name to have a list of users logged into that PC or Server.

I have only done hand testing. I will whip up a script, and test it out
during a work day to see how it goes ;-)

Cool.

Cheers,

Paul Hamilton

> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org
> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of=20
> Paul Hamilton
> Sent: Sunday, 30 October 2005 9:28 AM
> To: freebsd-questions@freebsd.org
> Subject: Enumerating a Windows based PC from a FreeBSD based server
>=20
>=20
> Hi,
>=20
> I am trying to document which managed switch port (HP 4000m),
> a users PC is plugged into.  I had thought to use a login=20
> script to dump some info into a MySQL DB, but I am now=20
> leaning on scanning the switch, and build up the data=20
> backwards from there.  The info will all end up on a PHP=20
> searchable web page.  I should then be able to track admin=20
> logins (does anyone know the passwd?), have some users given=20
> their username and passwd to someone else to use? Etc.
>=20
> I have found the SNMP OID's of the IP and MAC addresses and
> the switch port number the computer is plugged into.  From a=20
> DNS lookup, I can find the PC name, but how do I find out the=20
> current logged in user name on the PC, remotely from a FreeBSD server?
>=20
> The GFI LanGuard network scanner is a very informative tool:
> http://www.gfi.com/lannetscan/  so having something similar=20
> to this on a FreeBSD server would be great. The utility must=20
> of course be scriptable.
>=20
>=20
> Cheers,
>=20
> Paul
>=20
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to=20
> "freebsd-questions-unsubscribe@freebsd.org"
>=20
>=20






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?027a01c5dd0e$70cfbbb0$6600a8c0>