From 89743f5fbc4fe941d7c846cc00be769d4d4bcf3f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 29 Jun 2011 12:03:28 +0000 Subject: [PATCH] Provide user way to specify manual use of fping to allow workaround for RHEL 6.0 bug git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9981 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodestat.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index d1c722e77..5de4b1078 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -839,6 +839,12 @@ sub process_request { %nodesetstats=(); my $command = $request->{command}->[0]; my $separator="XXXXXYYYYYZZZZZ"; + my $usefping; + @ARGV=@{$request->{arg}}; + GetOptions( + 'f' => \$usefping + ); + if ($command eq "nodestat_internal") { @@ -865,7 +871,7 @@ sub process_request { } my $ret={}; - if ( -x '/usr/bin/nmap' ) { + if ( not $usefping and -x '/usr/bin/nmap' ) { $ret=process_request_nmap($request, $callback, $doreq, $nodes, \%portservices); } else { $ret=process_request_port($request, $callback, $doreq, $nodes, \%portservices);