diff --git a/xCAT-client/bin/psh b/xCAT-client/bin/psh index 550a1d9ed..f69144360 100755 --- a/xCAT-client/bin/psh +++ b/xCAT-client/bin/psh @@ -26,19 +26,25 @@ Getopt::Long::Configure("no_pass_through"); if (!GetOptions( "i|interface=s" => \$interface, 'l|loginname=s' => \$username, + 'f|fanout=s' => \$fanout, "nonodecheck" => \$::NONODECHECK, #does not check the noderange, in this case, noderange need to be a list of nodes. 'h|help' => \$help, ) || $help || scalar(@ARGV)<2 ) { - print "Usage: psh [-i ] [-l ] \n"; + print "Usage: psh [-i ] [-l ] [-f ] \n"; exit; } my %nodehdl; my $xcathost='localhost:3001'; +my $pshmaxp = 64; #TODO: should this be server dictated or local conf? if ($ENV{XCATHOST}) { $xcathost=$ENV{XCATHOST}; } - -my $pshmaxp = 64; #TODO: should this be server dictated or local conf? +if ($fanout) { # see if they overroad the fanout from the command line + $pshmaxp=$fanout; +} +if ($ENV{XCATPSHFANOUT}) { # env variable rules + $pshmaxp=$ENV{XCATPSHFANOUT}; +} my $noderange = $ARGV[0]; my @nodes=();