mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #5270 from robin2008/nodestat-usage
modify nodestat usage and manpage for `-f|--useping`
This commit is contained in:
commit
fe54db1dff
@ -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.
|
||||
|
||||
|
@ -4,7 +4,7 @@ B<nodestat> - display the running status of each node in a noderange
|
||||
|
||||
=head1 B<Synopsis>
|
||||
|
||||
B<nodestat> [I<noderange>] [B<-m>|B<--usemon>] [B<-p>|B<--powerstat>] [B<-f>] [B<-u>|B<--updatedb>]
|
||||
B<nodestat> [I<noderange>] [B<-m>|B<--usemon>] [B<-p>|B<--powerstat>] [B<-f>|B<--usefping>] [B<-u>|B<--updatedb>]
|
||||
|
||||
B<nodestat> [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.
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user