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

Charles Lepple clepple at gmail.com
Tue Jan 2 23:29:53 CET 2007


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.

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list