-rpower softoff for vmware (requires vmware tools)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7481 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
13978e61d0
commit
5f903af01f
@ -1383,6 +1383,13 @@ sub power {
|
||||
} else {
|
||||
xCAT::SvrUtils::sendmsg($currstat, $output_handler,$node);
|
||||
}
|
||||
} elsif ($subcmd =~ /softoff/) {
|
||||
if ($currstat eq 'on') {
|
||||
$args{vmview}->ShutdownGuest();
|
||||
xCAT::SvrUtils::sendmsg("softoff", $output_handler,$node);
|
||||
} else {
|
||||
xCAT::SvrUtils::sendmsg($currstat, $output_handler,$node);
|
||||
}
|
||||
} elsif ($subcmd =~ /off/) {
|
||||
if ($currstat eq 'on') {
|
||||
$task = $args{vmview}->PowerOffVM_Task();
|
||||
|
Loading…
Reference in New Issue
Block a user