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:
parent
2fe7e4a272
commit
de0272c3c3
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user