Hi Dave,

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

http://sourceforge.net/projects/genders/

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(\...@a, \...@b)
        Hostlist::union(\...@a, \...@b)
        Hostlist::diff(\...@a, \...@b)
        Hostlist::xor(\...@a, \...@b)
        Hostlist::within(\...@a, \...@b)
        Hostlist::same(\...@a, \...@b)

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,

Al

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
> [email protected]
> http://*lists.gnu.org/mailman/listinfo/freeipmi-users
> 
-- 
Albert Chu
[email protected]
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



_______________________________________________
Freeipmi-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/freeipmi-users

Reply via email to