[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sitesummary2ldapdhcp issue



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 debian-edu-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: 20130918123357.GU7363@diskless.uio.no">http://lists.debian.org/20130918123357.GU7363@diskless.uio.no
> 
> 

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


Reply to: