OpenVZ Forum


Home » General » Support » Where do I have to put my contribs? (Wanna share my own beanc.pl for discuss)
Where do I have to put my contribs? [message #44636] Sun, 18 December 2011 16:44 Go to next message
Felix is currently offline  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 #44689 is a reply to message #44636] Thu, 22 December 2011 12:48 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

1. there is vzubc script bundled with vzctl now

2. your contributions -- it's a wiki, meaning it's editable. Just add it there.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
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)
Previous Topic: Backing up via rsync -- Does it work?
Next Topic: OpenVAS Within Container
Goto Forum:
  


Current Time: Sat Aug 02 12:14:32 GMT 2025

Total time taken to generate the page: 0.40790 seconds