diff --git a/perl-xCAT/xCAT/Usage.pm b/perl-xCAT/xCAT/Usage.pm index 25ef54d5d..aeb8cdfe2 100755 --- a/perl-xCAT/xCAT/Usage.pm +++ b/perl-xCAT/xCAT/Usage.pm @@ -185,6 +185,16 @@ my %usage = ( rspconfig [hostname|ntpservers] rspconfig [hostname=<*|hostname>|ntpservers=] rspconfig sshcfg + rspconfig powerrestorepolicy + rspconfig powerrestorepolicy={always_on|restore|always_off} + rspconfig powersupplyredundancy + rspconfig powersupplyredundancy={disabled|enabled} + rspconfig timesyncmethod + rspconfig timesyncmethod={ntp|manual} + rspconfig bootmode + rspconfig bootmode={safe|regular|setup} + rspconfig autoreboot + rspconfig autoreboot={0|1} ", "rspconfig.begin" => "BMC/MPA Common: diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 09f4de63b..6ddc6f2f0 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -789,11 +789,11 @@ sub preprocess_request { # Could not find usage for openbmc section, try getting usage for all sections $usage_string = xCAT::Usage->parseCommand($command, @exargs); } - else { + #else { # Usage for openbmc section was extracted, append autogenerated usage for # configured commands - $usage_string .= &build_config_api_usage($callback, $command); - } + # $usage_string .= &build_config_api_usage($callback, $command); + #} $callback->({ data => [$usage_string] }); $request = {};