2012-10-12 08:08:56 +00:00
|
|
|
|
|
|
|
## beginning of all attributes from the site table
|
|
|
|
|
|
|
|
#SITE_TABLE_ALL_ATTRIBS_EXPORT#
|
|
|
|
|
|
|
|
## end of all attributes from the site table
|
|
|
|
|
|
|
|
|
2013-06-25 09:05:00 +00:00
|
|
|
ENABLESSHBETWEENNODES=$ENABLESSHBETWEENNODES
|
2012-10-12 08:08:56 +00:00
|
|
|
export ENABLESSHBETWEENNODES
|
|
|
|
|
2013-01-22 20:13:03 +00:00
|
|
|
## tabdump(<TABLENAME>) is used to get all the information
|
|
|
|
## in the <TABLENAME> table
|
|
|
|
## The <TABLENAME> should only be non-"node key" table
|
|
|
|
## and two keys table, such as networks, passwd.
|
|
|
|
## <TABLENAME> should not be site, auditlog or eventlog.
|
|
|
|
## if the key in the table is a node,
|
|
|
|
## you should use #TABLE...# instead of tabdump(). See #TABLE below.
|
|
|
|
## tabdump (networks)
|
2012-12-12 06:54:14 +00:00
|
|
|
tabdump(networks)
|
2012-10-12 08:08:56 +00:00
|
|
|
|
2012-12-05 08:29:48 +00:00
|
|
|
NODE=$NODE
|
2012-10-12 08:08:56 +00:00
|
|
|
export NODE
|
|
|
|
|
2013-01-24 12:09:37 +00:00
|
|
|
# get GROUP list
|
|
|
|
GROUP=#TABLE:nodelist:$NODE:groups#
|
|
|
|
export GROUP
|
|
|
|
|
2013-01-23 11:59:30 +00:00
|
|
|
## This is the syntax to get the value of one attribute from the
|
|
|
|
## <tablename> and its key is $NODE.
|
|
|
|
## It doesn't support the cases where the table has 2 keys.
|
2012-12-12 06:54:14 +00:00
|
|
|
|
2012-10-26 13:51:55 +00:00
|
|
|
## nfsserver,installnic,primarynic,routenames from the noderes tab
|
|
|
|
NFSSERVER=#TABLE:noderes:$NODE:nfsserver#
|
2012-10-12 08:08:56 +00:00
|
|
|
export NFSSERVER
|
2012-10-26 13:51:55 +00:00
|
|
|
INSTALLNIC=#TABLE:noderes:$NODE:installnic#
|
2012-10-12 08:08:56 +00:00
|
|
|
export INSTALLNIC
|
2012-10-26 13:51:55 +00:00
|
|
|
PRIMARYNIC=#TABLE:noderes:$NODE:primarynic#
|
2012-10-12 08:08:56 +00:00
|
|
|
export PRIMARYNIC
|
2012-10-26 13:51:55 +00:00
|
|
|
|
|
|
|
MASTER=#TABLE:noderes:$NODE:xcatmaster#
|
|
|
|
export MASTER
|
|
|
|
|
|
|
|
NODEROUTENAMES=#TABLE:noderes:$NODE:routenames#
|
|
|
|
export NODEROUTENAMES
|
2012-10-12 08:08:56 +00:00
|
|
|
#ROUTES_VARS_EXPORT#
|
|
|
|
|
|
|
|
|
|
|
|
## osver, arch, profile export
|
2012-10-26 13:51:55 +00:00
|
|
|
OSVER=#TABLE:nodetype:$NODE:os#
|
2012-10-12 08:08:56 +00:00
|
|
|
export OSVER
|
2012-10-26 13:51:55 +00:00
|
|
|
ARCH=#TABLE:nodetype:$NODE:arch#
|
2012-10-12 08:08:56 +00:00
|
|
|
export ARCH
|
2012-10-26 13:51:55 +00:00
|
|
|
PROFILE=#TABLE:nodetype:$NODE:profile#
|
2012-10-12 08:08:56 +00:00
|
|
|
export PROFILE
|
2012-10-26 13:51:55 +00:00
|
|
|
PROVMETHOD=#TABLE:nodetype:$NODE:provmethod#
|
|
|
|
export PROVMETHOD
|
2012-10-12 08:08:56 +00:00
|
|
|
|
2013-01-22 20:13:03 +00:00
|
|
|
## add current directory to the path
|
2012-10-12 08:08:56 +00:00
|
|
|
|
|
|
|
PATH=`dirname $0`:$PATH
|
|
|
|
export PATH
|
|
|
|
|
2013-01-25 07:40:18 +00:00
|
|
|
## AIXX root password related items. AIX root password may not be configured.
|
|
|
|
## There may be no information.
|
|
|
|
#AIX_ROOT_PW_VARS_EXPORT#
|
|
|
|
|
2013-06-25 09:05:00 +00:00
|
|
|
NODESETSTATE=$NSETSTATE
|
2012-10-12 08:08:56 +00:00
|
|
|
export NODESETSTATE
|
|
|
|
|
|
|
|
UPDATENODE=0
|
|
|
|
export UPDATENODE
|
|
|
|
|
2012-12-05 08:29:48 +00:00
|
|
|
NTYPE=$NTYPE
|
2012-10-12 08:08:56 +00:00
|
|
|
export NTYPE
|
|
|
|
|
|
|
|
MACADDRESS=#TABLE:mac:$NODE:mac#
|
|
|
|
export MACADDRESS
|
|
|
|
|
2013-07-05 03:20:19 +00:00
|
|
|
|
2013-01-22 20:13:03 +00:00
|
|
|
## vlan related items. vlan may not be configured.
|
2012-10-12 08:08:56 +00:00
|
|
|
#VLAN_VARS_EXPORT#
|
|
|
|
|
|
|
|
|
2013-01-22 20:13:03 +00:00
|
|
|
## get monitoring server and other configuration data for monitoring setup on nodes. This may not be configured.
|
2012-10-12 08:08:56 +00:00
|
|
|
#MONITORING_VARS_EXPORT#
|
|
|
|
|
|
|
|
|
|
|
|
## get the osimage related variables, such as ospkgdir, ospkgs ...
|
|
|
|
#OSIMAGE_VARS_EXPORT#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## get the diskless networks information. There may be no information.
|
|
|
|
#NETWORK_FOR_DISKLESS_EXPORT#
|
|
|
|
|
|
|
|
|
2013-01-22 20:13:03 +00:00
|
|
|
## NIC related attributes for the node for confignics postscript
|
|
|
|
## There may be no information
|
2013-01-02 19:45:36 +00:00
|
|
|
NICNODE=#TABLE:nics:$NODE:node#
|
|
|
|
export NICNODE
|
|
|
|
|
2013-01-22 08:31:51 +00:00
|
|
|
NICIPS=#TABLE:nics:$NODE:nicips#
|
2013-01-02 19:45:36 +00:00
|
|
|
export NICIPS
|
|
|
|
|
2013-01-22 08:31:51 +00:00
|
|
|
NICHOSTNAMESUFFIXES=#TABLE:nics:$NODE:nichostnamesuffixes#
|
2013-01-02 19:45:36 +00:00
|
|
|
export NICHOSTNAMESUFFIXES
|
|
|
|
|
2013-01-22 08:31:51 +00:00
|
|
|
NICTYPES=#TABLE:nics:$NODE:nictypes#
|
2013-01-02 19:45:36 +00:00
|
|
|
export NICTYPES
|
|
|
|
|
2013-01-22 08:31:51 +00:00
|
|
|
NICCUSTOMSCRIPTS=#TABLE:nics:$NODE:niccustomscripts#
|
2013-01-02 19:45:36 +00:00
|
|
|
export NICCUSTOMSCRIPTS
|
|
|
|
|
2013-01-22 08:31:51 +00:00
|
|
|
NICNETWORKS=#TABLE:nics:$NODE:nicnetworks#
|
2013-01-02 19:45:36 +00:00
|
|
|
export NICNETWORKS
|
|
|
|
|
2013-07-05 03:20:19 +00:00
|
|
|
CFGMGR=#TABLE:cfgmgt:$NODE:cfgmgr#
|
|
|
|
export CFGMGR
|
|
|
|
|
2013-07-05 02:12:42 +00:00
|
|
|
CFGSERVER=#TABLE:cfgmgt:$NODE:cfgserver#
|
|
|
|
export CFGSERVER
|
2012-10-12 08:08:56 +00:00
|
|
|
|
2013-10-24 02:56:17 +00:00
|
|
|
#CFGMGTINFO_EXPORT#
|
|
|
|
|
|
|
|
#INCLUDE:/opt/xcat/share/xcat/mypostscript/mypostscript_cloud.tmpl#
|
|
|
|
|
2013-01-23 11:59:30 +00:00
|
|
|
|
2012-10-12 08:08:56 +00:00
|
|
|
##
|
2013-01-22 20:13:03 +00:00
|
|
|
##The line postscripts-start-here must not be deleted.
|
2012-10-12 08:08:56 +00:00
|
|
|
# postscripts-start-here
|
|
|
|
|
2012-10-26 13:51:55 +00:00
|
|
|
#INCLUDE_POSTSCRIPTS_LIST#
|
2012-10-12 08:08:56 +00:00
|
|
|
|
2013-01-22 20:13:03 +00:00
|
|
|
##The line postscripts-end-here must not be deleted.
|
2012-10-12 08:08:56 +00:00
|
|
|
# postscripts-end-here
|
|
|
|
|
2013-01-22 20:13:03 +00:00
|
|
|
## The line postbootscripts-start-here must not be deleted.
|
2012-10-12 08:08:56 +00:00
|
|
|
# postbootscripts-start-here
|
|
|
|
|
|
|
|
#INCLUDE_POSTBOOTSCRIPTS_LIST#
|
|
|
|
|
2013-01-22 20:13:03 +00:00
|
|
|
## The line postbootscripts-end-here must not be deleted.
|
2012-10-12 08:08:56 +00:00
|
|
|
# postbootscripts-end-here
|