From 42814db0bcaf965d525b1b5aa75a190f15796e63 Mon Sep 17 00:00:00 2001 From: XuWei Date: Thu, 3 Nov 2016 03:33:02 -0400 Subject: [PATCH] modified xcatprobe discovery usage --- xCAT-probe/subcmds/discovery | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/xCAT-probe/subcmds/discovery b/xCAT-probe/subcmds/discovery index a798bd8d0..5a4a1cd82 100755 --- a/xCAT-probe/subcmds/discovery +++ b/xCAT-probe/subcmds/discovery @@ -39,12 +39,15 @@ my $program_name = basename("$0"); $::USAGE = "Usage: $program_name -h $program_name -n -m [-t ] [-V] [--noprecheck] + $program_name -n -m -r [-V] [--noprecheck] Description: - Probe the discovery process, including pre-check for required configuration and realtime monitor of discovery process. - If all pre-check items pass, $program_name will go to monitor directly, otherwise $program_name will exit. - In order to do realtime monitor, $program_name probe must be run along with the node discovery procedure. Trigger this command before triggering node discovery procedure. - Currently, this command does not support hierarchy. + Probe the discovery process, including pre-check for required configuration, 'Realtime monitor' and 'Replay history' of discovery process. + If all pre-check items failed, $program_name will exit. + Realtime monitor: This is a default. This tool with monitor discovery state of the node. Trigger 'Realtime monitor' before rebooting target node to do discovery. + Replay history: Used after discovery is finished to probe the previously completed discovery. + + [NOTE] Currently, hierarchial structure is not supported. Options: -h : Get usage information of $program_name. @@ -53,6 +56,9 @@ Options: -n : The range of predefined nodes, must be used with option -m. --noprecheck : skip pre-checking discovery to validate correct configuration. -t : The maximum time to wait when doing monitor, unit is minutes. default is 60. + -r : Trigger 'Replay history' mode. Follow the duration of rolling back. Units are 'h' (hour) or 'm' (minute) + Supported format examples: 3h30m (3 hours and 30 minutes ago), 2h (2 hours ago), 40m (40 minutes ago) and 3 (3 hours ago). + If unit is not specified, hour will be used by default. "; #----------------------------------------------