diff --git a/docs/source/guides/admin-guides/references/man1/nodestat.1.rst b/docs/source/guides/admin-guides/references/man1/nodestat.1.rst index 8d3afd684..9264a0232 100644 --- a/docs/source/guides/admin-guides/references/man1/nodestat.1.rst +++ b/docs/source/guides/admin-guides/references/man1/nodestat.1.rst @@ -19,7 +19,7 @@ Name **************** -\ **nodestat**\ [\ *noderange*\ ] [\ **-m | -**\ **-usemon**\ ] [\ **-p | -**\ **-powerstat**\ ] [\ **-f**\ ] [\ **-u | -**\ **-updatedb**\ ] +\ **nodestat**\ [\ *noderange*\ ] [\ **-m | -**\ **-usemon**\ ] [\ **-p | -**\ **-powerstat**\ ] [\ **-f | -**\ **-usefping**\ ] [\ **-u | -**\ **-updatedb**\ ] \ **nodestat**\ [\ **-h | -**\ **-help | -v | -**\ **-version**\ ] @@ -86,7 +86,7 @@ For the command specified by 'dcmd', no input is needed, the output can be a str -\ **-f**\ +\ **-f | -**\ **-usefping**\ Uses fping instead of nmap even if nmap is available. If you seem to be having a problem with false negatives, fping can be more forgiving, but slower. diff --git a/xCAT-client/pods/man1/nodestat.1.pod b/xCAT-client/pods/man1/nodestat.1.pod index fd964a3c9..e7a82a232 100644 --- a/xCAT-client/pods/man1/nodestat.1.pod +++ b/xCAT-client/pods/man1/nodestat.1.pod @@ -4,7 +4,7 @@ B - display the running status of each node in a noderange =head1 B -B [I] [B<-m>|B<--usemon>] [B<-p>|B<--powerstat>] [B<-f>] [B<-u>|B<--updatedb>] +B [I] [B<-m>|B<--usemon>] [B<-p>|B<--powerstat>] [B<-f>|B<--usefping>] [B<-u>|B<--updatedb>] B [B<-h>|B<--help>|B<-v>|B<--version>] @@ -57,7 +57,7 @@ For the command specified by 'dcmd', no input is needed, the output can be a str =over 10 -=item B<-f> +=item B<-f>|B<--usefping> Uses fping instead of nmap even if nmap is available. If you seem to be having a problem with false negatives, fping can be more forgiving, but slower. diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index 3dfb73b67..428268a1a 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -912,7 +912,7 @@ sub process_request { if (ref $request->{arg}) { @ARGV = @{ $request->{arg} }; GetOptions( - 'f' => \$usefping + 'f|useping' => \$usefping ); } @@ -1217,7 +1217,7 @@ sub usage my $retcode=shift; my $rsp = {}; $rsp->{data}->[0] = "Usage:"; - $rsp->{data}->[1] = " nodestat [noderange] [-m|--usemon] [-p|powerstat] [-u|--updatedb]"; + $rsp->{data}->[1] = " nodestat [noderange] [-m|--usemon] [-p|powerstat] [-f|--usefping] [-u|--updatedb]"; $rsp->{data}->[2] = " nodestat [-h|--help|-v|--version]"; if($retcode){ $rsp->{errorcode}->[0]=$retcode;