billingd is a utility that gathers usage data for all members in the customers table that have an associated rule, and stores the info in the database. billingd is launched by crontab periodically; we recommend that it be run every 15 minutes.

*       *       *       *       *       root    /usr/bwmgr/utils/alertd
*/5 * * * * root /usr/bwmgr/utils/bwmgrd stats -d
*/5 * * * * root /usr/bwmgr/utils/billingd
*/15 * * * * root /usr/bwmgr/utils/bw_timemanager debug


billingd stats
billingd reset
billingd cleardaily [customer]
billingd clearmonthly customer

stats will gather do a stats loop for all defined customers with rules. Reset can be run at boot; it will reset automatically but data will be lost until the first time it is run. You should put

/usr/bwmgr/utils/billingd reset

in your rc.bwmgr startup file.

cleardaily with no customer specified will clear the daily profile settings in the case that something gets mucked up. Daily settings should be reset at midnight every day. You can also call cleardaily with a customer to just clear that one setting.

clearmonthly must be called per customer, as customers may have different billing cycles and are unlikely to all have the same issues.

Next: ipmireset