Lissa,
    I have and I could do something similar, to split apart the IP address 
based on a host entry like that script does, but I was hoping for a more 
elegant solution.  I guess I am asking a more general question.  Is there a 
method in xCAT 2.8.3 so I can expand templates, from within the kickstart 
during the nodeset.

If I do this:

    #TABLE:hosts:THISNODE:ip#

It gives me the boot IP Address of this host, based on the template:

    "login","|\D+(\d+).*$|172.20.5.($1-0)|",,"Login nodes compute interface",,

So, how do I do the same, but for a different template.  I've tried this, but 
it throws an error:

#TABLE:hosts:node=#TABLE:hosts:THISNODE:node#-ib0:ip#

but works if I have an entry in the hosts table for that specific node:

"login1-ib0","172.40.5.1",,,,

So, can I expand template "login-ib0" for host "login1" and get the answer to 
what it would be.  I know the template is correct, /etc/hosts and DNS have the 
entry.  So, the real question is, can I expand an xCAT template, with arbitrary 
input, inside the nodeset kickstart.


    Thanks,

        -Brad


===================================================
Brad Viviano
High Performance Computing & Scientific Visualization
Lockheed Martin, Supporting the EPA
Research Triangle Park, NC
919-541-2696

HSCSS Task Order Lead - Ravi Nair
919-541-5467 - [email protected]
High Performance Computing Subtask Lead - Durward Jones
919-541-5043 - [email protected]
Environmental Modeling and Visualization Lead - Heidi Paulsen
919-541-1834 - [email protected]


________________________________
From: Lissa Valletta <[email protected]>
Sent: Friday, December 27, 2013 10:01 AM
To: xCAT Users Mailing list
Cc: xCAT Users Mailing list
Subject: Re: [xcat-user] Expanding template information in node kickstart.


Have you looked at this doc?
http://pubads.g.doubleclick.net/apps/mediawiki/xcat/index.php?title=Managing_the_Mellanox_Infiniband_Network<https://sourceforge.net/apps/mediawiki/xcat/index.php?title=Managing_the_Mellanox_Infiniband_Network>


Lissa K. Valletta
8-3/B10
Poughkeepsie, NY 12601
(tie 293) 433-3102



[Inactive hide details for "Viviano, Brad" ---12/27/2013 09:46:13 AM---Hello,   
  I've looked through the WIKI and can't seem to]"Viviano, Brad" ---12/27/2013 
09:46:13 AM---Hello,     I've looked through the WIKI and can't seem to find 
this answer.  I have this template de

From: "Viviano, Brad" <[email protected]>
To: xCAT Users Mailing list <[email protected]>,
Date: 12/27/2013 09:46 AM
Subject: [xcat-user] Expanding template information in node kickstart.

________________________________



Hello,
   I've looked through the WIKI and can't seem to find this answer.  I have 
this template defined in the hosts table:

"login-ib0","|\D+(\d+).*$|172.40.5.($1-0)|",,"Login nodes IB interface",,

Makehosts/makedns works fine, so I know the template is correct.  I am trying 
to, during the install process get it to automatically create the ifcfg-ib0 
interface based on that:

/bin/cat > /etc/sysconfig/network-scripts/ifcfg-ib0 << EOF
DEVICE="ib0"
BOOTPROTO="static"
IPADDR=
NETMASK="#TABLE:networks:netname=ib:mask#"
ONBOOT="yes"
IPV6INIT="no"
EOF

Problem is, I don't know how to expand the "login-ib0" template to have it 
build the correct IP address.

If I put

IPADDR="#TABLE:hosts:node=#TABLE:hosts:THISHOST:node#:ip#"

it creates it as

IPADDR="|\D+(\d+).*$|172.20.5.($1-0)|"

I'm guessing I need another directive around the above to tell it to expand the 
template and compute the correct IP address based on that.  But I can't find 
docs on the WIKI that explains how to do that.  Can anyone point me at a page 
that gives more details.

    Thanks,
        -Brad Viviano

===================================================
Brad Viviano
High Performance Computing & Scientific Visualization
Lockheed Martin, Supporting the EPA
Research Triangle Park, NC
919-541-2696

HSCSS Task Order Lead - Ravi Nair
919-541-5467 - [email protected]
High Performance Computing Subtask Lead - Durward Jones
919-541-5043 - [email protected]
Environmental Modeling and Visualization Lead - Heidi Paulsen
919-541-1834 - 
paulsen.he...@epa.gov------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk<https://remoteworkplacedr.epa.gov/gampad/clk?id=84349831&iu=/4140/ostg.clktrk>_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to