From a8a927c65bf79ed9ad534a373a25fcd23864142d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 17 Mar 2008 16:02:49 +0000 Subject: [PATCH] Auto-detect Intel BMCs in the SOL script git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/cons/ipmi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT-server-2.0/share/xcat/cons/ipmi b/xCAT-server-2.0/share/xcat/cons/ipmi index 2543693a9..0935ab27d 100755 --- a/xCAT-server-2.0/share/xcat/cons/ipmi +++ b/xCAT-server-2.0/share/xcat/cons/ipmi @@ -31,7 +31,12 @@ if ($dba) { if ($dba->{password}) { $password = $dba->{password}; } } xCAT::Utils::close_all_dbhs; -system "ipmitool -I lanplus -U $username -P $password -H $bmc sol deactivate"; #Stop any active session -exec "ipmitool -I lanplus -U $username -P $password -H $bmc sol activate"; +my $isintel = system "ipmitool -I lanplus -U $username -P $password -H $bmc chassis status > /dev/null 2>&1"; +my $inteloption=""; +if ($isintel) { + $inteloption=" -o intelplus"; +} +system "ipmitool -I lanplus$inteloption -U $username -P $password -H $bmc sol deactivate"; #Stop any active session +exec "ipmitool -I lanplus$inteloption -U $username -P $password -H $bmc sol activate";