Commit 69d507fa authored by Mike Hibler's avatar Mike Hibler

Use what I hope is a better OID for determining the number of phases on

the controller.  This works where the old one doesn't on an APC 7960.

Waiting to hear back from DETER about their power controllers however,
so this may change again...
parent bf900180
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2003, 2006 University of Utah and the Flux Group. # Copyright (c) 2000-2003, 2006-2007 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
...@@ -121,15 +121,16 @@ sub status { ...@@ -121,15 +121,16 @@ sub status {
# come first, we use them. We grab the number of phases supported, # come first, we use them. We grab the number of phases supported,
# then use that as a limit on how many status load values we retrieve. # then use that as a limit on how many status load values we retrieve.
# #
# The OID to retrieve the phases is: ".1.3.6.1.4.1.318.1.1.12.2.1.2"; # The OID to retrieve the phases is: ".1.3.6.1.4.1.318.1.1.12.1.9";
# the load status table OID is: ".1.3.6.1.4.1.318.1.1.12.2.3.1.1.2". # the load status table OID is: ".1.3.6.1.4.1.318.1.1.12.2.3.1.1.2".
# #
my $phases; my $phases;
$phases = $self->{SESS}->get([["rPDULoadDevNumPhases",0]]); $phases = $self->{SESS}->get([["rPDUIdentDeviceNumPhases",0]]);
if (!$phases) { if (!$phases) {
# not all models support this MIB # not all models support this MIB
print STDERR "Query phase: No answer from device\n" if $self->{DEBUG}; print STDERR "Query phase: IdentDeviceNumPhases failed\n"
if $self->{DEBUG};
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment