You can use generateUsageRecords api  . It Generates usage records. This will 
generate records only if there any records to be generated, i.e if the 
scheduled usage job was not run or failed
Request parameters
Parameter Name  Description     Required
enddate End date range for usage record query. Use yyyy-MM-dd as the date 
format, e.g. startDate=2009-06-03.    true
startdate       Start date range for usage record query. Use yyyy-MM-dd as the 
date format, e.g. startDate=2009-06-01.  true
domainid        List events for the specified domain.   false
Response Tags
Response Name   Description
displaytext     any text associated with the success or failure
success true if operation is executed successfully

Hope this will help .

If you can share the logs it will be easier for us to help more.

Thanks
Shweta

-----Original Message-----
From: Rajani Karuturi [mailto:[email protected]] 
Sent: Friday, June 13, 2014 10:36 AM
To: [email protected]
Subject: Re: Usage Server Issues

Can you share logs?

I don't know if you can start it manually. But, you can definitely tweak the 
configs to start every 10 min.
http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/latest/usage.html


~Rajani



On 13-Jun-2014, at 8:41 am, Steve Searles 
<[email protected]<mailto:[email protected]>> wrote:

Any experts on the usage server out there?  I have a weird problem where my 
accounts table and user_statistics table are populated but the rest of the 
tables in the DB are empty (with the exception of usage_job).  Does anyone know 
how to manually fire off the usage job from the command line rather than 
waiting for it to happen? Any pointers on how to debug this?  I have about 40 
vm's running in my lab that should be making plenty of data.

CS 4.3

Steve Searles





Reply via email to