Drakstats
From Mandriva Community Wiki
(Redirected from DrakStats)
Contents |
[edit] Usage
drakstats retrieve statistics about installed rpm packages and allows to send global package usage statistics to a remote server. It has been introduced in Mandriva Linux 2005 LE.
drakstats shows a list of the install rpm packages, together with their last usage time (based on file access time). Thus it can be used to remove old packages on a system.
[edit] Implementation
[edit] Statistics retrieval
drakstats uses the rpmstats command, which outputs a sorted list of packages with their last usage time and their last accessed file.
[edit] 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.
[edit] 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


