From owner-freebsd-isp Tue Aug 19 15:05:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA09005 for isp-outgoing; Tue, 19 Aug 1997 15:05:15 -0700 (PDT) Received: from roguetrader.com (brandon@cold.org [206.81.134.103]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA08999 for ; Tue, 19 Aug 1997 15:05:11 -0700 (PDT) Received: from localhost (brandon@localhost) by roguetrader.com (8.8.5/8.8.5) with SMTP id QAA05090; Tue, 19 Aug 1997 16:07:38 -0600 (MDT) Date: Tue, 19 Aug 1997 16:07:38 -0600 (MDT) From: Brandon Gillespie To: Nicholas Merrill cc: freebsd-isp@FreeBSD.ORG Subject: Re: WinNT to FreeBSD In-Reply-To: <3.0.3.32.19970819160929.0375cc84@calyx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 19 Aug 1997, Nicholas Merrill wrote: > At 02:35 AM 8/20/97 +0800, you wrote: > >We are currently operating an ISP under Windows NT Server 4, and are > >seriously thinking about changing and running it under FreeBSD 2.2.2. > > > >There is only one thing holding us back, it is very important that we keep > >track of our users, such as login times and length of login plus how much > >they are downloading per call. > > > >Windows NT displays all this information easily, I have not yet found a > >way to receive the same level of info from FreeBSD .. Can anyone please > >suggest some ideas? As we _REALLY_ want to change over ASAP. > > > >Thank you, > >Jason McKay. > > Actually I heard it wasn't possible to track any information like that > with FreeBSD. That may be the one edge that NT has in this competition. It is. Everything is logged. You can either use the 'last' command [man last(1)], or write your own interface to the last log [man utmp(5)]. Both of these options are trivial. I am not as sure what to do if you want to know byte information, a simple approach may be to have their logout script call netstat, ala: netstat -b -I INTERFACE (where INTERFACE is their current interface--i.e. their ppp interface, do 'netstat -i' to see them all) You may have some problems in determining the interface. I'm sure I could figure out a simple way to do it, given enough time--of which I have not much of :) This should at least give you some pointers of where to look. -Brandon Gillespie