[Top][All Lists]

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

Re: [Freeipmi-devel]

From: Christopher Maestas
Subject: Re: [Freeipmi-devel]
Date: Tue, 21 Dec 2010 22:35:14 -0700

Here's a stab at adding a -e flag that lets you run a perl regex against the hostname.  Then you can run:

./ -e 's/^mp-//g' -h mp-cn[1-4] -D -d

I'm sure it could be cleaned up further or restricted to only doing/checking for search and replace expressions.


On Tue, Dec 21, 2010 at 2:20 PM, Al Chu <address@hidden> wrote:
Hi Chris,

Hmmm.  I'm not really sure how we could/should do that.  Perhaps some
other option would tell the script to create/remove the prefix before
passing it up to ganglia?


On Tue, 2010-12-21 at 10:52 -0800, Christopher Maestas wrote:
> Any thought given to translating the hostlist from the management
> processor name to a real device name?  For example:
>       * device name is mp-cn[1-2] and hostname is cn[1-2]
> ./ -D -d -h mp-cn[1-2] | sed -e 's/mp-//g'
> but I don't think that will do what I want ...
Albert Chu
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory

Description: Text Data

reply via email to

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