<div dir="ltr"><div><div><div>Thanks Martin.<br><br>This is the document link: <a href="https://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/automember.html">https://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/automember.html</a><br></div>It says : Dividing hosts based on their IP address or subnet.<br></div><br></div>After I installed ipa-client-install the host would be registered to server automatically. I have many clients in two subnets ,it's impossible to add description manually.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-14 22:29 GMT+08:00 Martin Kosek <span dir="ltr"><<a href="mailto:mkosek@redhat.com" target="_blank">mkosek@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/14/2015 03:33 PM, zhiyong xue wrote:<br>
> The document said<br>
<br>
Hi,<br>
<br>
What document you have in mind?<br>
<span class=""><br>
> we can create automembership rule based by IP or subnet.<br>
> But there's no any sample about it. Anyone know knows how to create them?<br>
<br>
</span>If the information/attribute is not in the LDAP entry for the Host, Automember<br>
has no means of applying the rule and adding the membership. The only idea I<br>
have now is that you could create the Host entries before ipa-client-install is<br>
run, and manually set some attribute containing the subnet identification to<br>
description os Host Class attribute that Automember could consume.<br>
<div class="HOEnZb"><div class="h5"><br>
> I have two subnets and need to create two host groups for them. And all<br>
> host name were auto generated without any pattern.<br>
><br>
> Thanks all.<br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>