On 05/08/16 02:32, Josh Nielsen wrote:

> It looks like that uses the nics table which is currently empty in my
> config. The examples on that page show IPs being entered in
> manually/individually though. How does that relate to the regular
> expressions I've created for each of my hosts in the 'hosts' table that
> automatically assign an IP address based on the hostname?

You can use regular expressions in the nics table as well:

#node,nicips,nichostnamesuffixes,nichostnameprefixes,nictypes,niccustomscripts,nicnetworks,nicaliases,comments,disable
"compute","|\D+(\d+)|ib0!10.2.0.($1*1)|","ib0!-ib",,"ib0!Infiniband",,"ib0!bruce_infiniband",,,

Gives (for example):

[root@bruce-m ~]# lsdef bruce001 | fgrep 10. | fgrep -v kcmdline
    ip=10.13.0.1
    nicips.ib0=10.2.0.1
    otherinterfaces=-bmc:10.12.0.1

[root@bruce-m ~]# lsdef bruce003 | fgrep 10. | fgrep -v kcmdline
    ip=10.13.0.3
    nicips.ib0=10.2.0.3
    otherinterfaces=-bmc:10.12.0.3

All the best,
Chris
-- 
 Christopher Samuel        Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: sam...@unimelb.edu.au Phone: +61 (0)3 903 55545
 http://www.vlsci.org.au/      http://twitter.com/vlsci

------------------------------------------------------------------------------
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to