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
This commit is contained in:
jbjohnso 2011-06-29 12:03:28 +00:00
parent 00f535776c
commit 89743f5fbc

View File

@ -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);