Samba 3.0.2a, Debian linux, 2.6.x kernel, PDC server, WinXP clients. Hi, I'm setting up a samba server for one of our branch offices. During the monitoring of the server I'd like to be able to view how many domain users, and which ones, are logged in on the domain at particular times. The users use WinXP. Is there any way of getting number of logged on domainusers, their IP's or usernames? My alternative way is to write a perl script to analyze the samba logfiles. Thanks Frode
On Sunday 11 April 2004 16:52, Frode Lillerud wrote:> Samba 3.0.2a, Debian linux, 2.6.x kernel, PDC server, WinXP clients. > > Hi, I'm setting up a samba server for one of our branch offices. > > During the monitoring of the server I'd like to be able to view how many > domain users, and which ones, are logged in on the domain at particular > times. The users use WinXP. > > Is there any way of getting number of logged on domainusers, their IP's > or usernames? > > My alternative way is to write a perl script to analyze the samba > logfiles.smbstatus maybe?
Frode Lillerud wrote:> Samba 3.0.2a, Debian linux, 2.6.x kernel, PDC server, WinXP clients. > > Hi, I'm setting up a samba server for one of our branch offices. > > During the monitoring of the server I'd like to be able to view how many > domain users, and which ones, are logged in on the domain at particular > times. The users use WinXP. > > Is there any way of getting number of logged on domainusers, their IP's > or usernames?You can use the pre-exec (or root pre-exec) options in smb.conf to echo data out to a separate log file. This takes all the usual subsitution, so will record IP, NetBIOS name, username etc. of clients. You can then do what you like with this data, perl-wise :) I'm considering directing the log output into mysql so that I can analyse the logs through a PHP interface. Cheers, Tony
mrojava4@eastgranby.k12.ct.us
2004-Apr-12 00:29 UTC
[Samba] Getting stats for logged in domain users?
> Samba 3.0.2a, Debian linux, 2.6.x kernel, PDC server, WinXP clients. > > Hi, I'm setting up a samba server for one of our branch offices. > > During the monitoring of the server I'd like to be able to view how many > domain users, and which ones, are logged in on the domain at particular > times. The users use WinXP. > > Is there any way of getting number of logged on domainusers, their IP's > or usernames? > > My alternative way is to write a perl script to analyze the samba > logfiles. > > Thanks > Frode > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >Take a look at the "utmp" parameter in smb.conf and the who and last commands.
Jason.McGlamary@Medstar.net
2004-Apr-12 13:36 UTC
[Samba] Getting stats for logged in domain users?
Also, SWAT will display this information graphically and can be made to automatically refresh under the "Status" link. I have found SWAT to be fairly convenient for viewing connections, viewing current smb.conf file, and for restarting the Samba services. Just be careful if using SWAT, if you use it to change your Samba config, it will overwrite your current file, eliminating comments, and only showing nonstandard config options. Way to go depends on whether you need to use the information for another process, or if you're just monitoring. Jason McGlamary PC/LAN Specialist Washington Hospital Center "Frode Lillerud" <frode@lillerud.no> Sent by: samba-bounces+jason.mcglamary=medstar.net@lists.samba.org 04/11/2004 10:52 AM To <samba@lists.samba.org> cc Subject [Samba] Getting stats for logged in domain users? Samba 3.0.2a, Debian linux, 2.6.x kernel, PDC server, WinXP clients. Hi, I'm setting up a samba server for one of our branch offices. During the monitoring of the server I'd like to be able to view how many domain users, and which ones, are logged in on the domain at particular times. The users use WinXP. Is there any way of getting number of logged on domainusers, their IP's or usernames? My alternative way is to write a perl script to analyze the samba logfiles. Thanks Frode -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba