From 60e2f8ab26479b38ef86ac8c8006cc5496e24450 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Mon, 11 Dec 2017 09:49:13 -0500 Subject: [PATCH 1/2] Usage and man page update for rspconfig dump --- .../references/man1/rspconfig.1.rst | 51 +++++++++++++++++++ perl-xCAT/xCAT/Usage.pm | 1 + xCAT-client/pods/man1/rspconfig.1.pod | 31 +++++++++++ 3 files changed, 83 insertions(+) diff --git a/docs/source/guides/admin-guides/references/man1/rspconfig.1.rst b/docs/source/guides/admin-guides/references/man1/rspconfig.1.rst index dab879fa5..b641ea5f6 100644 --- a/docs/source/guides/admin-guides/references/man1/rspconfig.1.rst +++ b/docs/source/guides/admin-guides/references/man1/rspconfig.1.rst @@ -49,6 +49,8 @@ OpenBMC specific: \ **rspconfig**\ \ *noderange*\ {\ **ipsrc | ip | netmask | gateway | hostname | vlan | sshcfg**\ } +\ **rspconfig**\ \ *noderange*\ \ **dump**\ [\ **-l | -**\ **-list**\ ] [\ **-g | -**\ **-generate**\ ] [\ **-c | -**\ **-clear**\ {\ *id*\ |\ **all**\ }] [\ **-d | -**\ **-download**\ \ *id*\ ] + MPA specific: ============= @@ -430,6 +432,13 @@ OPTIONS +\ **dump**\ + + Manage OpenBMC system dumps. If no suboption is provided, will generate, wait and download the dump files to /var/log/xcat/dump. + \ **-c**\ will clear a single or all dumps on the BMC. \ **-l**\ will list all the generated dumps on the BMC. \ **-g**\ will generate a new dump on the BMC. Dump generation can take a few minutes. \ **-d**\ will download a single dump from the BMC to /var/log/xcat/dump on management or service node. + + + \ **network**\ ={[\ *ip*\ ],[\ *host*\ ],[\ *gateway*\ ],[\ *netmask*\ ]|\*} For MPA: get or set the MPA network parameters. If '\*' is specified, all parameters are read from the xCAT database. @@ -1230,6 +1239,48 @@ EXAMPLES +31. To list BMC dumps available for download: + + + .. code-block:: perl + + rspconfig p9euh02 dump -l + + + Output is similar to: + + + .. code-block:: perl + + p9euh02: [1] Generated: 09/06/2017 14:31:49, Size: 4528 + p9euh02: [2] Generated: 09/06/2017 14:31:55, Size: 4516 + p9euh02: [3] Generated: 09/06/2017 14:32:01, Size: 4236 + p9euh02: [4] Generated: 09/06/2017 14:32:07, Size: 4248 + p9euh02: [5] Generated: 09/06/2017 14:32:11, Size: 4268 + + + + +32. To generate and download BMC dump: + + + .. code-block:: perl + + rspconfig p9euh02 dump -l + + + Output is similar to: + + + .. code-block:: perl + + Capturing BMC Diagnostic information, this will take some time... + p9euh02: Dump requested. Target ID is 6, waiting for BMC to generate... + p9euh02: Dump 6 generated. Downloading to /var/log/xcat/dump/20171211-0951_p9euh02_dump_6.tar.xz + + + + ******** SEE ALSO diff --git a/perl-xCAT/xCAT/Usage.pm b/perl-xCAT/xCAT/Usage.pm index 67d1bee90..5b38089b0 100755 --- a/perl-xCAT/xCAT/Usage.pm +++ b/perl-xCAT/xCAT/Usage.pm @@ -146,6 +146,7 @@ my %usage = ( rspconfig [userid= username= password=] OpenBMC specific: rspconfig [ipsrc|ip|netmask|gateway|hostname|vlan] + rspconfig dump [-l|--list] [-g|--generate] [-c|--clear {|all}] [-d|--download ] iDataplex specific: rspconfig [thermprofile] rspconfig [thermprofile=] diff --git a/xCAT-client/pods/man1/rspconfig.1.pod b/xCAT-client/pods/man1/rspconfig.1.pod index a61149197..571609a2e 100644 --- a/xCAT-client/pods/man1/rspconfig.1.pod +++ b/xCAT-client/pods/man1/rspconfig.1.pod @@ -26,6 +26,8 @@ B I B=I