[xcat-user] Querying database
Bradford, Matthew
matthew.bradford at eds.com
Fri Mar 27 03:32:56 MDT 2009
Lissa,
Thanks for that.
We are hoping to do a couple of things.
1) Add additional parameters into the SITE table so we can define
other servers/values which are relevant to our builds. (Will our own
parameters be extracted in to the environment?)
2) Query different tables to extract noderange specific values for
things like nfsservers etc. We don't have a common build due to compute
nodes being of various hardware, so we may require to obtain different
values for different nodes.
Thanks very much
Mat
From: xcat-user-bounces at lists.xcat.org
[mailto:xcat-user-bounces at lists.xcat.org] On Behalf Of Lissa Valletta
Sent: 26 March 2009 18:01
To: xCAT Users Mailing list
Cc: xcat-user at lists.xcat.org; xcat-user-bounces at lists.xcat.org
Subject: Re: [xcat-user] Querying database
Not from a compute node. What we do though, is if your postinstall
script is setup in xCAT, that is in /install/postscripts and in the
xCAT postscripts table, when we run it we export all the attributes in
the site table. What information are you looking for?
So when your postscript runs it is in a script that looks like this with
all these exports set :
NTPSERVERS='9.10.228.45,time.rchland.ibm.com, 9.10.225.159'
export NTPSERVERS
DHCPINTERFACES="'xcat20RRmn|eth0;rra000-m|eth1'"
export DHCPINTERFACES
FORWARDERS='9.114.8.1,9.114.8.2'
export FORWARDERS
USESSHONAIX='no'
export USESSHONAIX
DB='postg'
export DB
NODESTATUS='1'
export NODESTATUS
XCATDPORT='3001'
export XCATDPORT
XCATIPORT='3002'
export XCATIPORT
TFTPDIR='/tftpboot'
export TFTPDIR
SITEMASTER=9.111.47.250
export SITEMASTER
MASTER=9.111.47.250
export MASTER
DOMAIN='cluster.net'
export DOMAIN
INSTALLDIR='/install'
export INSTALLDIR
TIMEZONE=''
export TIMEZONE
NAMESERVERS='9.111.47.250'
export NAMESERVERS
NODE=rra000-m
export NODE
OSVER=fedora9
export OSVER
ARCH=x86_64
export ARCH
PROFILE=service
export PROFILE
PATH=`dirname $0`:$PATH
export PATH
NODESETSTATE=netboot
export NODESETSTATE
NTYPE=service
export NTYPE
MONSERVER=xcat20RRmn.cluster.net
export MONSERVER
MONMASTER=9.111.47.250
export MONMASTER
# postscripts-start-here
syslog
remoteshell
szeth1
servicenode
xcatserver
xcatclient
# postscripts-end-here
updateflag.awk $MASTER 3002 "installstatus booted"
Lissa K. Valletta
414/3-8
Poughkeepsie, NY 12601
(tie 293) 433-3102
"Bradford, Matthew" <matthew.bradford at EDS.COM>
Sent by: xcat-user-bounces at lists.xcat.org
03/26/2009 11:57 AM
Please respond to
xCAT Users Mailing list <xcat-user at lists.xcat.org>
To
<xcat-user at lists.xcat.org>
cc
Subject
[xcat-user] Querying database
Is it possible to query the xCAT database from within a post install
script?
We are using xCAT 2.1.
Cheers,
Mat Bradford_______________________________________________
xcat-user mailing list
xcat-user at lists.xcat.org
http://www.xcat.org/mailman/listinfo/xcat-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.xcat.org/pipermail/xcat-user/attachments/20090327/b0b42125/attachment.htm
More information about the xcat-user
mailing list