-Make rpower reset work on mm (mp.mpa is itself, mp.id is 0, reventlog works to get non-node events if you do this too)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@617 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-02-28 17:02:46 +00:00
parent 1d8f69b446
commit 598b712fba

View File

@ -737,6 +737,15 @@ sub power {
my $subcommand = shift;
my $data;
my $stat;
unless ($slot > 0) {
if ($subcommand eq "reset" or $subcommand eq "boot") {
$data = $session->set(new SNMP::Varbind([".1.3.6.1.4.1.2.3.51.2.7.4",0,1,'INTEGER']));
unless ($data) { return (1,$session->{ErrorStr}); }
return (0,"reset");
} else {
return (1,"$subcommand unsupported on the management module");
}
}
if ($subcommand eq "stat" or $subcommand eq "boot") {
$data = $session->get([$powerstatoid.".".$slot]);
if ($data == 1) {