On Wed, Sep 18, 2013 at 02:33:57PM +0200, Petter Reinholdtsen wrote: > [Giorgio Pioda] > > Hi, > > > > running sitesummary2ldapdhcp -a I get the following error: > > > > error: Not sure how to handle several objects for the same host > > > > I guess that two objects have the same MAC? No easy to find which since > > I have more than 100 machines added. > > > > How can it happen? > > Seem unlikely, as sitesummary store host info using the MAC. I had a > look at the code, and the error happen if there are several host > entries in LDAP with the same MAC address. I'll improve the error > message. > > Try locating it using > > ldapsearch -h ldap -x '(macAddress=*)' dn macaddress > > > Is there a way to reset the sitesummary DB? > > Running > > rm -rf /var/lib/sitesummary/entries/ether* > > will remove all sitesummary entries. But it will not solve your > problem. > > -- > Happy hacking > Petter Reinholdtsen > > > -- > To UNSUBSCRIBE, email to [email protected] > with a subject of "unsubscribe". Trouble? Contact [email protected] > Archive: http://lists.debian.org/[email protected] > >
Seems that a couple of entries had not the MAC set (some manually added printers, NAS, whatever). Inserting the correct values solves. Regards Giorgio -- Giorgio Pioda - Sysadmin SPSE-Tenero Cell +41 79 629 20 63 Uff. +41 91 735 62 48 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

