[Samba] Get number of current logged on users
mromani at ottotecnica.com
Thu Jan 31 07:29:03 GMT 2008
Adam Tauno Williams ha scritto:
>> I'm looking for a simple way to get the number of current logged on
>> users (with established sessions) to measure the use frequency of our
>> student labs. I don't need to identify the users.
> sardine:~ # expr `smbstatus -b | cut -c35-45 | sort | uniq | wc -l` - 3
I've tried it and it seems the columns are slightly wrong...
serverlinux backup # smbd --version
The cut parameters should be:
More information about the samba