Arnaud Quette
2011-Jun-28 13:00 UTC
[Nut-upsdev] [nut-commits] svn commit r3060 - branches/nut-scanner/tools/nut-scanner
2011/6/27 Frederic BOHE <fbohe-guest at alioth.debian.org>> Author: fbohe-guest > Date: Mon Jun 27 13:56:51 2011 > New Revision: 3060 > URL: http://trac.networkupstools.org/projects/nut/changeset/3060 > > Log: > Add NUT server scan. > > (...) > device_t * scan_snmp(char * start_ip, char * stop_ip,long usec_timeout, > snmp_security_t * sec); > > device_t * scan_usb(); > > device_t * scan_xml_http(long usec_timeout); > > +device_t * scan_nut(char * startIP, char * stopIP, char * port); >for the sake of coherence and completion, you may also add the "long usec_timeout" here, as you did for SNMP and XML... I'm also wondering if the "startIP / stopIP" is really worth WRT a CIDR or "network / mask" notation... in all cases, providing conversion routines would be useful, to allow user to specify either start / stop hosts or network range. cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20110628/33cd7301/attachment.html>
Frédéric Bohé
2011-Jun-29 11:25 UTC
[Nut-upsdev] [nut-commits] svn commit r3060 - branches/nut-scanner/tools/nut-scanner
On Tue, 2011-06-28 at 15:00 +0200, Arnaud Quette wrote:> > 2011/6/27 Frederic BOHE <fbohe-guest at alioth.debian.org> > Author: fbohe-guest > Date: Mon Jun 27 13:56:51 2011 > New Revision: 3060 > URL: > http://trac.networkupstools.org/projects/nut/changeset/3060 > > Log: > Add NUT server scan. > > (...) > device_t * scan_snmp(char * start_ip, char * stop_ip,long > usec_timeout, snmp_security_t * sec); > > device_t * scan_usb(); > > device_t * scan_xml_http(long usec_timeout); > > +device_t * scan_nut(char * startIP, char * stopIP, char * > port); > > for the sake of coherence and completion, you may also add the "long > usec_timeout" here, as you did for SNMP and XML...OK, as soon as upscli_connect has a timeout parameter.> > > I'm also wondering if the "startIP / stopIP" is really worth WRT a > CIDR or "network / mask" notation... > in all cases, providing conversion routines would be useful, to allow > user to specify either start / stop hosts or network range.I will add those functions. Regards, Fred> > cheers, > Arnaud > -- > Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com > Network UPS Tools (NUT) Project Leader - > http://www.networkupstools.org/ > Debian Developer - http://www.debian.org > Free Software Developer - http://arnaud.quette.free.fr/ > > _______________________________________________ > Nut-upsdev mailing list > Nut-upsdev at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev-- Team Open Source Eaton - http://powerquality.eaton.com --------------------------------------------------------------------------