SAPHanaSR-show-hadr-runtimes(8)
πΈ SAPHanaSR-show-hadr-runtimes(8) πΈ
okay bestie, this is a page from the SAPHanaSR manual, section 8 β and it's literally the little tool that tells you how long your HADR provider hook scripts took to run. let's go π
β¨ NAME β¨
SAPHanaSR-show-hadr-runtimes β shows you the runtimes of the SAPHanaSR.py and SAPHanaSrMultiTarget.py hook scripts. that's it, that's the whole job π
π¦ SYNOPSYS π¦
SAPHanaSR-show-hadr-runtimes [ --help | --version ]
π DESCRIPTION π
so like, SAPHanaSR-show-hadr-runtimes digs through your HANA nameserver tracefiles and pulls out the runtimes of the HADR provider hook scripts β specifically susHanaSR.py and susHanaSrMultiTarget.py. it's giving forensic detective energy π
the output has six columns, and yes we're going through all of them:
- date β the date, obviously π«
- time of day β what time it happened
- runtime in seconds β how long it took, in seconds. the main character of this whole manpage ngl
- HADR provider hook script β
ha_dr_SAPHanaSRmeans the old-style one, andha_dr_SAPHanaSrMmeans multi-target - call ID used by HANA β the suffix is what unifies multiple IDs inside the tracefile
- hook script actions β a whole alphabet of little codes, here's the decoder ring:
DsβSAPHanaSR.srConnectionChanged.*methodcalled with DictIbβ ignoring bad statusIeβ ignoring empty siteCgβ CALLING CRM: write CIB attributehana_<sid>_glob_srHookCvβ CALLING CRM: write CIB attributehana_<sid>_gshLvβ CALLING CRM: read CIB attributehana_<sid>_gshCsβ CALLING CRM: write CIB attributehana_<sid>_site_srHook_<site>
π OPTIONS π
only two, and they're both the "just tell me about yourself" kind of options π«Ά
--helpβ show help.--versionβ show version.
π RETURN CODES π
0β successful program execution. slay β¨>0β usage, syntax or execution errors. not slay π
π 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. the icon it is π/usr/sap/${SID}/HDB${InstNr}/${HOST}/trace/β the HANA tracefile directory. that's where the data lives π
π BUGS π
okay real talk, bestie, listen up π
The formatting and content of this script's output will change, because this script is still under development. and also β this script is not intended to be called from monitoring tools. periodt.
the HADR provider hook script and its runtime environment are not exactly optiomally prepared for calculating runtimes (that's a direct quote vibe, lowkey). so the results from SAPHanaSR-show-hadr-runtimes might be incomplete or unprecise sometimes. not a bug, just a ~situation~ π
in case of any problem, please use your favourite SAP support process to open a request for the component BC-OP-LNX-SUSE. and please report any other feedback and suggestions to feedback@suse.com. they actually want your feedback fr fr π«Ά
β SEE ALSO β
susHanaSR.py(7) , susHanaSrMultiTarget.py(7) , SAPHanaSR-showAttr(8) , sort(8)
π AUTHORS π
F.Herschel, L.Pinne.
π COPYRIGHT π
(c) 2021-2026 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
and that's the whole page, bestie!! πβ¨ written down for you on 18 Apr 2023 by the SAPHanaSR girlies β go check your runtimes, ily π
π¦ where this page comes from
- opensuse-leap 16.0: SAPHanaSR-angi 1.3.4-160000.1.1 Β· GPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms