From 5de5e5e5005023fc9c727424c3fbc31aa2ff8677 Mon Sep 17 00:00:00 2001 From: wuzhy Date: Fri, 27 Nov 2009 08:36:35 +0000 Subject: [PATCH] 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 --- xCAT-server/sbin/xcatconfig | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 00ed5c9b8..e78e7b8db 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -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