Where do I have to put my contribs? [message #44636] |
Sun, 18 December 2011 16:44  |
Felix
Messages: 3 Registered: December 2011
|
Junior Member |
|
|
Hi,
After trying the shell script, found at ``UBC failcnt reset''
on wiki engine, I've decided to build mine, to improve speed
and maybe put them in cron job...
I've added some consideration like reset-time and
the ability to deal with the ioacct file.
It's not perfect, could become some improvement,
but is workable and may give some ideas for futur.
Well, my question is about where to put this stuff?
In order, to become issues, bugs and other remarks back
from the community.
|
|
|
|
Re: Where do I have to put my contribs? [message #44699 is a reply to message #44689] |
Thu, 22 December 2011 20:39  |
Felix
Messages: 3 Registered: December 2011
|
Junior Member |
|
|
Well, based on ``beanc.sh'' from Steven Broos, his syntaxe has approx same form:
Quote:
beanc.pl [-fiIn] [ show [VE] | brief [VE] | tiny [VE] | init | reset [VE [varname] ] ]
Where [VE] could be a VeID, a name, a hostname or a ip.
Cache are stored gzipped in /var/cache/beanc/cache.gz.
For each counter, a timestamp are stored to compute statistics (TODO).
-f force - Don't ask before resetting all variables
-n nocache - Display raw values without computing cache
-i IOACCT - Take IOACCT file too, but mark solicited counters with a plus sing (``+'') instead of a star (``*'') as for real fail-counters.
-I IOACCT Only - Don't compute UserBeanCounter, but only IOACCT Files.
I'ts a Perl script, inline doc could be displayed with
Nota: This script is a pré-version, not fully useable (no stats), some improvements are todo, but I would appreciate returns for new ideas or better code... or maybe if my way is wrong, I could even go back to work on other projects...
-
Attachment: beanc.pl
(Size: 16.00KB, Downloaded 256 times)
|
|
|