From 0d870b9225bb7bf3888a567878e463fd86c3cb9b Mon Sep 17 00:00:00 2001 From: bybai Date: Wed, 13 Dec 2017 01:59:23 -0500 Subject: [PATCH] add -d usage and manpage --- perl-xCAT/xCAT/Usage.pm | 3 ++- xCAT-client/pods/man1/rflash.1.pod | 12 ++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/Usage.pm b/perl-xCAT/xCAT/Usage.pm index 67d1bee90..48db09d73 100755 --- a/perl-xCAT/xCAT/Usage.pm +++ b/perl-xCAT/xCAT/Usage.pm @@ -353,7 +353,8 @@ my %usage = ( OpenPOWER OpenBMC specific: rflash {[-c|--check] | [-l|--list]} rflash {[-c|--check] | [-a|--activate] | [-u|--upload]} - rflash {[-a|--activate] | [-d|--delete]}", + rflash [-d] [--no-host-reboot] + rflash {[-a|--activate] | [--delete]}", "mkhwconn" => "Usage: mkhwconn [-h|--help] diff --git a/xCAT-client/pods/man1/rflash.1.pod b/xCAT-client/pods/man1/rflash.1.pod index 62db1eecd..694f25ee9 100644 --- a/xCAT-client/pods/man1/rflash.1.pod +++ b/xCAT-client/pods/man1/rflash.1.pod @@ -34,7 +34,9 @@ B I {[B<-c>|B<--check>] | [B<-l>|B<--list>]} B I I {[B<-c>|B<--check>] | [B<-a>|B<--activate>] | [B<-u>|B<--upload>]} -B I I {[B<-a>|B<--activate>] | [B<-d>|B<--delete>]} +B I I [B<-d>] [B<--no-host-reboot>] + +B I I {[B<-a>|B<--activate>] | [B<--delete>]} =head1 B @@ -119,6 +121,12 @@ To apply the firmware level, a reboot is required to BMC and HOST. B When using B in hierarchical environment, the .tar file must be accessible from Service Nodes. +B<-d>: + + This option steamline the update, activate, reboot BMC and reboot HOST procedure. It expects a directory contains both BMC and PNOR .tar files. When BMC and PNOR tar files are provided, it will upload, activate firmware. When BMC is activate, it will reboot BMC. If BMC state is Ready, it will reboot the HOST. If BMC state is NotReady, the command exit. + +B When using B<--no-host-reboot>, it will not reboot the host after BMC is reboot. + =head1 B =over 7 @@ -179,7 +187,7 @@ List currently uploaded update images. "(*)" indicates currently active image. Upload update image. Specified file must be in .tar format. -=item B<-d|--delete> +=item B<--delete> Delete update image from BMC