From owner-freebsd-questions@FreeBSD.ORG Sun Oct 30 01:27:46 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 469D716A41F for ; Sun, 30 Oct 2005 01:27:46 +0000 (GMT) (envelope-from paulh@bdug.org.au) Received: from mail.bdug.org.au (mail.bdug.org.au [202.72.170.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A9B543D45 for ; Sun, 30 Oct 2005 01:27:45 +0000 (GMT) (envelope-from paulh@bdug.org.au) Received: from localhost (localhost.bdug.org.au [127.0.0.1]) by mail.bdug.org.au (Postfix) with ESMTP id 6F6284D for ; Sun, 30 Oct 2005 09:27:42 +0800 (WST) Received: from mail.bdug.org.au ([127.0.0.1]) by localhost (ant.bdug.org.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21662-07 for ; Sun, 30 Oct 2005 09:27:39 +0800 (WST) Received: from w2k2 (unknown [192.168.0.102]) by mail.bdug.org.au (Postfix) with ESMTP id 8CC0A22 for ; Sun, 30 Oct 2005 09:27:39 +0800 (WST) From: "Paul Hamilton" To: Date: Sun, 30 Oct 2005 09:28:03 +0800 Message-ID: <027801c5dcf1$2c274f90$6600a8c0@w2k2> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Scanned: amavisd-new at bdug.org.au Subject: Enumerating a Windows based PC from a FreeBSD based server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2005 01:27:46 -0000 Hi, I am trying to document which managed switch port (HP 4000m), a users PC = is plugged into. I had thought to use a login script to dump some info = into a MySQL DB, but I am now leaning on scanning the switch, and build up the = data backwards from there. The info will all end up on a PHP searchable web page. I should then be able to track admin logins (does anyone know the passwd?), have some users given their username and passwd to someone = else to use? Etc. 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 DNS lookup, I can find the = PC name, but how do I find out the current logged in user name on the PC, remotely from a FreeBSD server? The GFI LanGuard network scanner is a very informative tool: http://www.gfi.com/lannetscan/ so having something similar to this on a FreeBSD server would be great. The utility must of course be scriptable. Cheers, Paul