Added chvm --resetsmapi option to reset zVM SMAPI.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7996 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-11-01 19:33:41 +00:00
parent 519bb5b728
commit b48e67d77d

View File

@ -1109,6 +1109,20 @@ sub changeVM {
}
}
# resetsmapi
elsif ( $args->[0] eq "--resetsmapi" ) {
# Force each worker machine off
my @workers = ('VSMWORK1', 'VSMWORK2', 'VSMWORK3', 'VSMREQIN', 'VSMREQIU');
foreach ( @workers ) {
$out = `ssh $hcp "vmcp force $_ logoff immediate"`;
}
# Log on VSMWORK1
$out = `ssh $hcp "vmcp xautolog VSMWORK1"`;
$out = "$node: Resetting SMAPI... Done";
}
# setipl [ipl target] [load parms] [parms]
elsif ( $args->[0] eq "--setipl" ) {
my $trgt = $args->[1];