Drakstats
From Mandriva Community Wiki
Contents |
Usage
drakstats retrieves statistics about installed rpm packages and allows you to send global package usage statistics to a remote server. It was introduced in Mandriva Linux 2005 LE.
drakstats shows a list of the installed rpm packages, together with their last usage time (based on file access time). It can be also used to remove old packages on a system.
Implementation
Statistics retrieval
drakstats uses the rpmstats command, which outputs a sorted list of packages with their last usage time and their last accessed file.
Statistics upload
Statistics are uploaded on the qa.mandriva.com server by passing the rpmstats output to a SOAP method, using the MAC address of a network interface as identifier:
SOAP::Lite->uri('http://qa.mandriva.com/Putstats')->proxy('http://qa.mandriva.com/cgi-bin/putstats.cgi')->save_stat2file($id, $output);
On the server end, a small SOAP script saves files in the /home/rpmstats/ directory.
References
- http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/drakstats/trunk/
- http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/rpmstats/trunk/
- http://esfa.vnunetblog.fr/mandriva/2005/05/pensez_ds_aujou.html
- /home/qa/bugzilla/putstats.cgi on qa.mandriva.com
- casinos en ligne


