Charles Lepple
2007-Jan-02 21:38 UTC
[Nut-upsdev] enumerating UPSes with upsc (was Re: [Nut-upsuser] SNMP/management front-ends)
On 1/2/07, Eric A. Hall <ehall@ehsco.com> wrote:> I can hack up a Cacti PHP script to monitor UPS state via the upsc client > in the meantime. I'll have to manually enumerate the UPS names associated > with a host target (is there a way to probe for them with upsc now?), but > otherwise it ought to be pretty straightforward scripting.NUT developers, The NUT protocol suppports enumerating UPSes, but this functionality is not currently in upsc. Does anyone have any objections to adding a "-l" option or similar to fetch this list via upsc? We could also emulate "finger" syntax, and use "upsc @hostname" for to list UPSes, but that syntax would be more appropriate for listing all variables from all UPSes (not listing only the names of the UPSes). -- - Charles Lepple
Carlos Rodrigues
2007-Jan-02 22:05 UTC
[Nut-upsdev] enumerating UPSes with upsc (was Re: [Nut-upsuser] SNMP/management front-ends)
On 1/2/07, Charles Lepple <clepple@gmail.com> wrote:> The NUT protocol suppports enumerating UPSes, but this functionality > is not currently in upsc. Does anyone have any objections to adding a > "-l" option or similar to fetch this list via upsc? > > We could also emulate "finger" syntax, and use "upsc @hostname" for to > list UPSes, but that syntax would be more appropriate for listing all > variables from all UPSes (not listing only the names of the UPSes).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). -- Carlos Rodrigues