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

Re: computernames and MAC from LDAP



Hi Martin

On Sa 21 Mai 2011 22:40:51 CEST Martin Schulte wrote:

Hello,
i need a list with all computernames point to the corresponding MAC-Address. How is this possible (sth. with ldapsearch + grep, I think)?

Thanks, Martin

if you have the machines already stored in LDAP then this should work:

ldapsearch -x cn=*.intern | egrep "^(ipHost|macAddress|cn):.*$"

Greets,
Mike



--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgp0ebiH67wvS.pgp
Description: Digitale PGP-Unterschrift


Reply to: