[one-users] how to get accounting per user

Daniel Molina dmolina at opennebula.org
Thu Feb 9 06:33:36 PST 2012


Hi,

On 3 February 2012 11:27, Olivier Sallou <olivier.sallou at irisa.fr> wrote:
> Hi,
> I wonder how to have accounting per user?
>
> watchclient class provide host and vm stats, but I do not see an method
> in Ruby API to query accouting on a (all) user.

You should use the oneacct tool:
http://www.opennebula.org/documentation:rel3.2:accounting

The source code of this tool can be found in the following files:
https://github.com/OpenNebula/one/blob/master/src/cli/oneacct
https://github.com/OpenNebula/one/blob/master/src/acct/oneacct.rb

Cheers

>
> Thanks
>
> Olivier
>
> --
>
> gpg key id: 4096R/326D8438  (pgp.mit.edu)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula



More information about the Users mailing list