Scroll to navigation

SAPHanaSR-show-hadr-runtimes(8) SAPHanaSR SAPHanaSR-show-hadr-runtimes(8)

NAME

SAPHanaSR-show-hadr-runtimes - Shows SAPHanaSR.py and SAPHanaSrMultiTarget.py hook script runtimes

SYNOPSYS

SAPHanaSR-show-hadr-runtimes [ --help | --version ]

DESCRIPTION

SAPHanaSR-show-hadr-runtimes shows susHanaSR.py and susHanaSrMultiTarget.py HADR provider hook script runtimes from HANA nameserver tracefiles.

The output shows six columns.

1. date

2. time of day

3. runtime in seconds

4. HADR provider hook script
ha_dr_SAPHanaSR indicates old-style, ha_dr_SAPHanaSrM indicates multi-target

5. call ID used by HANA
suffix unifies multiple IDs in tracefile

6. hook script actions
Ds - SAPHanaSR.srConnectionChanged.*method called with Dict
Ib - ignoring bad status
Ie - ignoring empty site
Cg - CALLING CRM: write CIB attribute hana_<sid>_glob_srHook
Cv - CALLING CRM: write CIB attribute hana_<sid>_gsh
Lv - CALLING CRM: read CIB attribute hana_<sid>_gsh
Cs - CALLING CRM: write CIB attribute hana_<sid>_site_srHook_<site>

OPTIONS

--help
show help.

--version
show version.

RETURN CODES

0 Successful program execution.
>0 Usage, syntax or execution errors.

EXAMPLES

* Show HADR hook script calls in chronological order.

# sort -k2,3 nameserver_*.3?????.???.trc | SAPHanaSR-show-hadr-runtimes | sort -k1,2
* Show HADR hook script call runtimes, call-outs only.
# sort -k2,3 nameserver_*.3?????.???.trc | SAPHanaSR-show-hadr-runtimes | grep -v "DsI"
* Show HADR hook script calls sorted by runtime.
# sort -k2,3 nameserver_*.3?????.???.trc | SAPHanaSR-show-hadr-runtimes | sort -n -k3

FILES

/usr/bin/SAPHanaSR-show-hadr-runtimes

the program itself.
/usr/sap/${SID}/HDB${InstNr}/${HOST}/trace/
the HANA tracefile directory.

BUGS

Formatting and content of this script's output will change, since this script is under development. This script is not intended to be called from monitoring tools.
The HADR provider hook script and runtime environment are not exactly optiomally prepared for calculating runtimes. Thus results from SAPHanaSR-show-hadr-runtimes might be incomplete or unprecise sometimes.
In case of any problem, please use your favourite SAP support process to open a request for the component BC-OP-LNX-SUSE. Please report any other feedback and suggestions to feedback@suse.com.

SEE ALSO

susHanaSR.py(7) , susHanaSrMultiTarget.py(7) , SAPHanaSR-showAttr(8) , sort(8)

AUTHORS

F.Herschel, L.Pinne.

COPYRIGHT

(c) 2021-2023 SUSE LLC
SAPHanaSR-show-hadr-runtimes comes with ABSOLUTELY NO WARRANTY.
For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html

18 Apr 2023