[Nut-upsdev] enumerating UPSes with upsc (was Re: [Nut-upsuser] SNMP/management front-ends)

Carlos Rodrigues carlos.efr at mail.telepac.pt
Wed Jan 3 01:06:26 CET 2007


On 1/2/07, Charles Lepple <clepple at gmail.com> wrote:
> On 1/2/07, Daniel O'Connor <doconnor at gsoft.com.au> wrote:
> > On Wednesday 03 January 2007 07:35, Carlos Rodrigues wrote:
> > > I think a "-l" option sounds good, better than just "@hostname".
> > >
> > > As for "@hostname" listing all variables from all UPSes, I think
> > > "*@hostname" would be a better choice (and it could even be extended
> > > to support real pattern matching in the future, if the need arises).
> >
> > How about both?
> >
> > @hostname is fairly intuitive (for people who've used finger anyway ;) and
> > doesn't preclude proper patten matching.
>
> Daniel,
>
> you're suggesting that @hostname return all variables from all UPSes, right?
>
> One thing that occurred to me after suggesting that syntax is that the
> results would all run together.
>
> If 'upsc -l host' lists the available UPSes, it is trivial (even in
> shell scripting) to iterate over the results, and run "upsc $ups at host"
> on each UPS. IMHO, it keeps the parsing simple.

Makes sense.

-- 
Carlos Rodrigues



More information about the Nut-upsdev mailing list