When the students arrive in a few weeks, we will have several thousand registered samba users and (we anticipate) several hundred simultaneous Samba connections. (This will be our first period of significant Samba use.) Our management folks are asking about collecting periodic Samba usage figures. This is a bit vague, but something like a rolling count of simultaneous connections, per-user and/or per-interval disk usage etc. have been mentioned. I haven't seen anything in the documentation (2.0.4b) about this. Have I missed it? If so, where? If not, does anyone know of either undocumented features or of work-in-hand/TO-DO in this regard? -- : David Lee I.T. Service : : Systems Programmer Computer Centre : : University of Durham : : http://www.dur.ac.uk/~dcl0tdl South Road : : Durham : : Phone: +44 191 374 2882 U.K. :
I know of know easy prebuilt way, but with perl and smbstatus you should be able to do something meaningful. I do not have anything like that written, but I could help if you if you want to write something.> > When the students arrive in a few weeks, we will have several thousand > registered samba users and (we anticipate) several hundred > simultaneous > Samba connections. (This will be our first period of > significant Samba > use.) > > Our management folks are asking about collecting periodic Samba usage > figures. This is a bit vague, but something like a rolling count of > simultaneous connections, per-user and/or per-interval disk > usage etc. > have been mentioned. > > I haven't seen anything in the documentation (2.0.4b) about > this. Have I > missed it? If so, where? If not, does anyone know of either > undocumented > features or of work-in-hand/TO-DO in this regard? > > -- > > : David Lee I.T. Service : > : Systems Programmer Computer Centre : > : University of Durham : > : http://www.dur.ac.uk/~dcl0tdl South Road : > : Durham : > : Phone: +44 191 374 2882 U.K. : > >
David Lee said:> When the students arrive in a few weeks, we will have several > thousand registered samba users and (we anticipate) several hundred > simultaneous Samba connections. (This will be our first period of > significant Samba use.) > > Our management folks are asking about collecting periodic Samba usage > figures. This is a bit vague, but something like a rolling count of > simultaneous connections, per-user and/or per-interval disk usage > etc. have been mentioned.OK - here is what we have done: a) we record in syslog (and this is just a matter of setting up syslog config) all connections and closes to shares. I have modified the code to log connections and closes with facility AUTH to fit in with our syslog environment. This can then provide detailed per user, share, server stats - I have started a perl script to do this, but still a WiP - however bits of it are available. b) I run on all our samba servers a little perl script that condenses the smbstatus output to 1 line and run this at 10 minute intervals to a log file. I have another program that can summarise to min average max for a range of these values. This programs are available at ftp://ftp.brunel.ac.uk/peter/samba/ -- ----------------------------------------------------------------------------- | Peter Polkinghorne, Computer Centre, Brunel University, Uxbridge, UB8 3PH,| | Peter.Polkinghorne@brunel.ac.uk +44 1895 274000 x2561 UK | -----------------------------------------------------------------------------
You wrote: | When the students arrive in a few weeks, we will have several thousand | registered samba users and (we anticipate) several hundred | simultaneous Samba connections. (This will be our first period of | significant Samba use.) | Our management folks are asking about collecting periodic Samba usage | figures. This is a bit vague, but something like a rolling count of | simultaneous connections, per-user and/or per-interval disk usage etc. | have been mentioned. Hmmn: just what I did in a previous life for a new community of NFS v3 users at York University (in Canada) Send me mail: we can probably do some useful monitoring. The general answer to the question: write a program or script to poll the smb status information at 5-15 minute intervals to get the shape of the usage curve. Disk usage can be monitored with ordinary means (quotas, du scripts), and disk and network i/o can be sampled with tools like iostat and sar. If you happen to be running Solaris, or anything with sar and iostat, definitely contact me: I'm in the midst of a review of performance tools and methods, and can give fairly precise advice about system tuning... --dave -- David Collier-Brown, | Always do right. This will gratify some people 185 Ellerslie Ave., | and astonish the rest. -- Mark Twain Willowdale, Ontario | http://java.science.yorku.ca/~davecb Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb@canada.sun.com