SAPHanaSR-show-hadr-runtimes(8)

πŸ“¦ version 1.3.4, in opensuse-leap 16.0

🌸 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:

  1. date β€” the date, obviously πŸ’«
  2. time of day β€” what time it happened
  3. runtime in seconds β€” how long it took, in seconds. the main character of this whole manpage ngl
  4. HADR provider hook script β€” ha_dr_SAPHanaSR means the old-style one, and ha_dr_SAPHanaSrM means multi-target
  5. call ID used by HANA β€” the suffix is what unifies multiple IDs inside the tracefile
  6. hook script actions β€” a whole alphabet of little codes, here's the decoder ring:
    • 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 πŸ‘‘

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.


(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