From cb0d2b76db599fb65fd79b067032b9c383be824a Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 19 Mar 2008 20:58:29 +0000 Subject: [PATCH] Use a more accurate check for Intel BMC design git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@845 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/cons/ipmi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/share/xcat/cons/ipmi b/xCAT-server-2.0/share/xcat/cons/ipmi index 0935ab27d..bc2e6cdbc 100755 --- a/xCAT-server-2.0/share/xcat/cons/ipmi +++ b/xCAT-server-2.0/share/xcat/cons/ipmi @@ -8,6 +8,7 @@ $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat'; use lib "$::XCATROOT/lib/perl"; use xCAT::Table; use xCAT::Utils; +use Time::HiRes qw(sleep); my $dba; my $ipmitab = xCAT::Table->new('ipmi'); unless ($ipmitab) { sleep 5; die "Unable to open IPMI table"; } @@ -31,7 +32,9 @@ if ($dba) { if ($dba->{password}) { $password = $dba->{password}; } } xCAT::Utils::close_all_dbhs; -my $isintel = system "ipmitool -I lanplus -U $username -P $password -H $bmc chassis status > /dev/null 2>&1"; +#my $isintel = system "ipmitool -I lanplus -U $username -P $password -H $bmc chassis status > /dev/null 2>&1"; +my $isintel = system "ipmitool -I lan -U $username -P $password -H $bmc mc info| grep 'Manufacturer ID : 343' > /dev/null 2>&1"; +$isintel = not $isintel; my $inteloption=""; if ($isintel) { $inteloption=" -o intelplus";