[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freeipmi-users] set operations on hostlists?

From: Al Chu
Subject: Re: [Freeipmi-users] set operations on hostlists?
Date: Tue, 15 Dec 2009 10:08:55 -0800

Hi Dave,

Assuming you want to script, there is a Hostlist perl module lib in the
gendersllnl package which can be found here:

gendersllnl is a "llnl collection" of wrappers and tools and libs around
normal genders.  The perldoc shows these functions, which is what I
assume you want:

        Hostlist::intersect(address@hidden, address@hidden)
        Hostlist::union(address@hidden, address@hidden)
        Hostlist::diff(address@hidden, address@hidden)
        Hostlist::xor(address@hidden, address@hidden)
        Hostlist::within(address@hidden, address@hidden)
        Hostlist::same(address@hidden, address@hidden)

If you got more questions on this, how about we move it to one of the
genders mailing lists.

If you're looking to code in 'C', there is the hostlist.[ch] files in
FreeIPMI that can copied.  I'm afraid there's no shared library though.

Hope that helps,


On Tue, 2009-12-15 at 16:08 +0000, Dave Love wrote:
> While I'm on, I'd meant to ask about something which isn't
> freeipmi-specific, but at least directly related to what I'm doing with
> it, and I don't know if there's a better place to ask.
> Is there anything available for doing set operations on hostlists of the
> form freeipmi uses?  Obviously union is trivial, but I'm interested
> particularly in difference, to remove a few exceptions from a longish
> list.
> A relevant application of this is for feeding out-of-band sensor
> measurements to ganglia while excluding nodes known to be down, so that
> ganglia doesn't register them as alive due to metrics arriving from
> gmetric rather than gmond.
> _______________________________________________
> Freeipmi-users mailing list
> address@hidden
> http://*
Albert Chu
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory

reply via email to

[Prev in Thread] Current Thread [Next in Thread]