2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

For IPMI and OpenBMC managed nodes, rbeacon can only perform

the on or off action, nothing else is supported.
This commit is contained in:
Victor Hu 2017-10-05 21:47:15 -04:00
parent 1b9956e1fa
commit d605a39c45
2 changed files with 2 additions and 2 deletions

View File

@ -3048,7 +3048,7 @@ sub beacon {
$ipmiv2 = 1;
}
if ($subcommand ne "on" and $subcommand ne "off") {
xCAT::SvrUtils::sendmsg([ 1, "please specify on or off for ipmi nodes (stat impossible)" ], $callback, $sessdata->{node}, %allerrornodes);
xCAT::SvrUtils::sendmsg([ 1, "Only 'on' or 'off' is supported for IPMI managed nodes."], $callback, $sessdata->{node}, %allerrornodes);
}
#if stuck with 1.5, say light for 255 seconds. In 2.0, specify to turn it on forever

View File

@ -559,7 +559,7 @@ sub parse_args {
if ($command eq "rbeacon") {
unless ($subcommand =~ /^on$|^off$/) {
return ([ 1, "Unsupported command: $command $subcommand" ]);
return ([ 1, "Only 'on' or 'off' is supported for OpenBMC managed nodes."]);
}
} elsif ($command eq "rpower") {
unless ($subcommand =~ /^on$|^off$|^softoff$|^reset$|^boot$|^bmcreboot$|^bmcstate$|^status$|^stat$|^state$/) {