modify output information for rspconfig cec|frame sysname

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2011-07-25 03:40:30 +00:00
parent 652509f261
commit 71bb236584
4 changed files with 9 additions and 5 deletions

View File

@ -318,9 +318,10 @@ sub do_set_sysname {
my $sysname = ($value eq '*') ? $name : $value;
my $action = $sysname_action{set}{@$d[4]};
my $values = xCAT::FSPUtils::fsp_api_action($name, $d, $action, 0, $sysname);
if (@$values[2] != 0) {
push @result, $values;
last;
if (@$values[1] && ((@$values[1] =~ /Error/i) && (@$values[2] != 0))) {
return ([[$name, @$values[1], '1']]);
} else {
push $result, [$name, "Success", 0];
}
}
}

View File

@ -58,6 +58,8 @@ sub parse_args {
"*_passwd",
"hostname",
"resetnet",
"dev",
"celogin1"
);
my @ppc = (
"sshcfg"

View File

@ -183,7 +183,7 @@ my %usage = (
PPC (with HMC) specific:
lsvm <noderange> [-a|--all]
PPC (using Direct FSP Management) specific:
lsvm <noderange> ",
lsvm <noderange> [-l|--long]",
"chvm" =>
"Usage:
Common:
@ -193,6 +193,7 @@ my %usage = (
chvm <noderange> <attr>=<val> [<attr>=<val>...]
PPC (using Direct FSP Management) specific:
chvm <noderange> [-p <profile>]
chvm <noderange> [lparname=<*|name>]
chvm <noderange> -i <id> [-m <memory_interleaving>] -r <partition_rule>
VMware specific:
chvm <noderange> [-a size][-d disk][-p disk][--resize disk=size][--cpus count][--mem memory]",

View File

@ -550,7 +550,7 @@ B<rspconfig> I<mm01 sysname>
B<rspconfig> I<mm01 sysname=frame1>
mm01: success
mm01: Success
B<rspconfig> I<mm01 sysname>