Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 1997 16:07:38 -0600 (MDT)
From:      Brandon Gillespie <brandon@roguetrader.com>
To:        Nicholas Merrill <nick@calyx.net>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: WinNT to FreeBSD
Message-ID:  <Pine.BSF.3.96.970819155343.5038A-100000@roguetrader.com>
In-Reply-To: <3.0.3.32.19970819160929.0375cc84@calyx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970819155343.5038A-100000>