fix bug 3194: power usage NOSUCHINSTANCE in firebird plus

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14566 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-12-06 05:58:13 +00:00
parent 46d9b6345c
commit 3217183ffb

View File

@ -874,12 +874,15 @@ sub vitals {
my $tmp;
if ( defined $slot and $slot > 0) { #-- querying some blade
if (grep /watt/,@vitems) {
if ($slot < 8) {
$tmp = $session->get(["1.3.6.1.4.1.2.3.51.2.2.10.2.1.1.7.".($slot+16)]);
if ($mpatype eq 'cmm') {
$tmp = $session->get(["1.3.6.1.4.1.2.3.51.2.2.10.2.1.1.7.".($slot+24)]);
} else {
$tmp = $session->get(["1.3.6.1.4.1.2.3.51.2.2.10.3.1.1.7.".($slot+9)]);
if ($slot < 8) {
$tmp = $session->get(["1.3.6.1.4.1.2.3.51.2.2.10.2.1.1.7.".($slot+16)]);
} else {
$tmp = $session->get(["1.3.6.1.4.1.2.3.51.2.2.10.3.1.1.7.".($slot+9)]);
}
}
unless ($tmp =~ /Not Readable/) {
if ($tmp =~ /(\d+)W/) {