OpenVZ Forum


Home » General » Support » Where do I have to put my contribs? (Wanna share my own beanc.pl for discuss)
Re: Where do I have to put my contribs? [message #44699 is a reply to message #44689] Thu, 22 December 2011 20:39 Go to previous message
Felix is currently offline  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
perldoc -F beanc.pl


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)
 
Read Message
Read Message
Read Message
Previous Topic: Backing up via rsync -- Does it work?
Next Topic: OpenVAS Within Container
Goto Forum:
  


Current Time: Sun Aug 03 10:01:01 GMT 2025

Total time taken to generate the page: 1.01333 seconds