From b6a3ada2d2bd5cf14ceb1a3b85ae6c8beb379252 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 7 Jun 2012 19:02:49 +0000 Subject: [PATCH] add -f fanout and XCATPSHFANOUT suupport to allow change of fanout on the command line and with env variable git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13024 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/psh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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=();