Update the file for support rpower/rcons for HMC
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4677 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
27d7c1a733
commit
5de5e5e500
@ -255,6 +255,8 @@ if ($::INITIALINSTALL || $::FORCE || $::UPDATEINSTALL)
|
||||
if ($::osname eq 'AIX')
|
||||
{
|
||||
&setupAIXconserver;
|
||||
|
||||
&setupAIXIPMITool;
|
||||
|
||||
# for AIX systems add xcatd to the /etc/inittab file
|
||||
my $mkitab_cmd =
|
||||
@ -1286,6 +1288,39 @@ sub setupAIXconserver
|
||||
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
=head3 setupAIXIPMITool
|
||||
|
||||
Set AIX IPMI Tool
|
||||
|
||||
=cut
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
sub setupAIXIPMITool
|
||||
|
||||
{
|
||||
if (!-f "/usr/bin/ipmitool")
|
||||
{
|
||||
$cmd = "ln -sf /opt/freeware/bin/ipmitool /usr/bin/ipmitool";
|
||||
$outref = xCAT::Utils->runcmd("$cmd", 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message(
|
||||
'E',
|
||||
"Could not ln -sf /opt/freeware/bin/ipmitool /usr/bin/ipmitool."
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
verbose("ln -sf /opt/freeware/bin/ipmitool /usr/bin/ipmitool.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
=head3 setupAIXexports
|
||||
|
Loading…
Reference in New Issue
Block a user