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
This commit is contained in:
jbjohnso 2008-03-17 16:02:49 +00:00
parent 0cc9b4d7f8
commit a8a927c65b

View File

@ -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";