added MACADDRESS env to the postscripts

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3293 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-05-05 14:16:13 +00:00
parent 2fe7e4a272
commit de0272c3c3

View File

@ -237,6 +237,15 @@ sub makescript {
}
push @scriptd, "export NTYPE\n";
my $mactab=xCAT::Table->new("mac", -create =>0);
my $tmp=$mactab->getNodeAttribs($node, ['mac']);
if (defined($tmp) && ($tmp)) {
my $mac=$tmp->{mac};
push @scriptd, "MACADDRESS='".$mac."'\n";
push @scriptd, "export MACADDRESS\n";
}
#get monitoring server and other configuration data for monitoring setup on nodes
my %mon_conf=xCAT_monitoring::monitorctrl->getNodeConfData($node);
foreach (keys(%mon_conf)) {