From owner-freebsd-questions@FreeBSD.ORG Fri Oct 14 05:12:13 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60EE9106564A for ; Fri, 14 Oct 2011 05:12:13 +0000 (UTC) (envelope-from MTaylor@bytecraft.com.au) Received: from bcmelmx.bytecraft.au.com (bcmelmx.bytecraft.au.com [203.39.118.2]) by mx1.freebsd.org (Postfix) with ESMTP id E59F88FC1B for ; Fri, 14 Oct 2011 05:12:12 +0000 (UTC) Received: from svmailmarshal.bytecraft.internal (svmailmarshal.bytecraft.internal [10.48.0.3]) by bcmelmx.bytecraft.au.com (8.13.8/8.12.11) with ESMTP id p9E4eBsC028309; Fri, 14 Oct 2011 15:40:17 +1100 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from svmailmel.bytecraft.internal (Not Verified[10.48.0.24]) by svmailmarshal.bytecraft.internal with MailMarshal (v6, 8, 4, 9558) id ; Fri, 14 Oct 2011 15:40:10 +1100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 14 Oct 2011 15:40:10 +1100 Message-ID: In-Reply-To: <4E94A3B4.6000601@gmx.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Turning system accounting data into money Thread-Index: AcyIUpndAZv65ndGR+CHx8EymP7yGQB2IOeg From: "Murray Taylor" To: "Nikos Vassiliadis" , "Polytropon" Cc: FreeBSD Questions Subject: RE: Turning system accounting data into money X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2011 05:12:13 -0000 Follow up --- I have just been told that the issue will be resolved over the weekend -- there apparently is some other=20 issue being dealt with first. I should have the 44 files in the inbucket on Monday. =20 --=20 Murray Taylor Bytecraft Systems Special Projects Engineer P: +61 3 8710 0600 D: +61 3 9238 5168 F: +61 3 9238 5140 =20|_|0|_| "Absence of evidence =20|_|_|0| is not evidence of absence" =20|0|0|0| Carl Sagan =20 -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Nikos Vassiliadis Sent: Wednesday, 12 October 2011 7:15 AM To: Polytropon Cc: FreeBSD Questions Subject: Re: Turning system accounting data into money On 10/11/2011 5:06 PM, Polytropon wrote: > This is _not_ a spam message trying to sell something > stupid to the list. I'm just searching for a solution > to turn consumed computing resources into a number and > a currency symbol. :-) > > Reason: A growing amount of (my) customers seems to > like this concept: They speed a low fee for access to > systems and applications, and they want to pay according > to what they did with that system. The access fee covers > access and some basic services (backup& quota), and for > anything "more advanced" they want to be charged per > "units" used, or per "consumed resources". This can be dialog > time (SSH), disk I/O, disk occupied, pages printed (can happen) > or pages required to print on exceptional specific forms > (can happen once or twice a year and is charged with an > additional fee for fold, staple& mutilate). > > Sounds stupid? I have _real_ customers intendedly > requesting that payment model (instead of "just pay > amount n Euro a month and do whatever you like"). > > Accidentally, I remembered history. > > So I thought: This funcitonality has been present on > UNIX systems for many decades. But _how_ to use it? I > know there's the command set for accounting, for example > the "ac" command. But what does its output "total 7264.15" > mean? There also are "acct" (process accounting), "sa" > (for system accounting) and "pac" (for printer accounting, > just dooesn't seem to work with CUPS). > > I'd also like to use the /etc/csh.logout resp. ~/.logout > mechanism. When a user logs in, he will be presented the > program he uses (or a menu, in case he uses different ones). > This can also be a regular "remote desktop" session. When > he logs out, a message should be displayed that informs > him how much will be charged for the session. At the end > of the month, he should get an invoice with the proper > accumulated amount. > > For example, if a user wishes to issue a "make a backup > _now_, because I intendedly want _this_ current state > backed up _now_", this will be seen as additional I/O > load and disk occupation (because it's handled aside of > the regular backup runs that should be part of the > "basic package" charged with the "conneciton fee"). > Or as I said, he issues printing for stuff he cannot > print at home, so he will be charged for 500 pages. > And in case he transfers 10 GB data in, and 10 GB data > out, he will be charged for that traffic, as well as > for the I/O. > > The sessions in questions will be SSH sessions (text mode) > as well as SSH/X sessions (remote desktops). > > Maybe someone already uses something similar he wants > to share? Suggestions and inspirations are welcome. > > > > Yes, the builtin accounting facilities do most of the stuff you are interested in. Just add 'accounting_enable=3D"YES"' in your /etc/rc.conf, run '/etc/rc.d/accounting start' and use sa to examine the output. I believe the per-user accounting will fit the bill nicely. You did not mention jails, right? The networking part perhaps can be a firewall's job, though I don't know if the per-user IP traffic rules work properly. There were some problems regarding this ages ago... The builtin printing stuff I believe is for use with the ancient printing tools and I know nothing about CUPS... Hey, these are pretty old stuff you are looking for or perhaps this email was stuck in the mail server's queue for 25 years;) HTH, Nikos _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" --------------------------------------------------------------- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material.=20 E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --------------------------------------------------------------- ### This e-mail message has been scanned for Viruses by Bytecraft ###