SAPHanaSR-replay-archive(8)

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

πŸ’– SAPHanaSR-replay-archive(8) β€” the SAPHanaSR girlies' guide πŸ’–

okay bestie, so this is a page from the SAPHanaSR manual set, and it's literally the time-travel episode: we're gonna replay SAPHanaSR status changes out of a crm_report archive or a pengine directory. Buckle up πŸŽ€


✨ SYNOPSIS ✨

like, pick your fighter πŸ‘‘

SAPHanaSR-replay-archive [--help | --version]
SAPHanaSR-replay-archive --cib CIB [...]  [--sid SID] [--format FORMAT]
[--select COLUMN] [--sort SORT] [--properties PROPERTIES] [--from FROM]
[--to TO]
SAPHanaSR-replay-archive --dir DIR [--sid SID] [--format FORMAT]
[--select COLUMN] [--sort SORT] [--properties PROPERTIES] [--pattern PAT
[...]]  [--from FROM] [--to TO]

🌸 DESCRIPTION 🌸

so SAPHanaSR-replay-archive is the tool you use to re-play SAPHanaSR status changes info from a crm_report archive or a pengine directory. it's giving history major energy πŸ•°οΈ

the way it works: it searches a given crm_report archive or pengine directory for pe-input files, and then shows status information in historical order. iconic.

and basically? SAPHanaSR-showAttr is called for each pe-input file. that's the whole vibe β€” no cap. ✨


πŸ’… OPTIONS πŸ’…

  • --help β€” shows help. that's it, that's the tweet 🫢
  • --version β€” shows the version. slay.
  • --cib CIB [CIB [...]] β€” read data from the given offline cib or pe-file(s). this is the alteranative to --dir, bestie, pick one πŸ’€
  • --dir DIR β€” specify the directory where to search for pe-files. also the alternative to --cib πŸ”₯
  • --format [ table | path | script | json ] β€” output format, default is table. choose your aesthetic πŸ’–
  • --from "YYYY-MM-DD HH:MM:SS" β€” from which point in time to show. time machine, but make it a timestamp ⏰
  • --pattern PAT [PAT [...]] β€” pe-file name pattern to search for in DIR, default pe-input-[0-9].*xz2 🧚
  • --properties PROPERTIES β€” specify the properties file.
  • --sid SID β€” specify the SID to check for. very main character selector of you πŸ‘‘
  • --sort [ host | roles | site ] β€” specify the Host section column name to sort by, default is host.
  • --select [ default | test | minimal | sr | all ] β€” show selected information only, default is default. lowkey minimalism πŸŽ€
  • --to "YYYY-MM-DD HH:MM:SS" β€” to which point in time to show. the end of the era πŸŒ…

🌈 RETURN CODES 🌈

  • 0 β€” Successful program execution. we love a happy ending πŸ’–
  • >0 β€” Usage, syntax or execution errors. it's giving chaos, but at least you know 😭

πŸ¦‹ EXAMPLES πŸ¦‹

Replay SAPHanaSR-showAttr data from crm_report.

so the report archive is crm_report-08-05-2024.tar.gz, the extracted directory is crm_report-08-05-2024, and the SID is EVA. periodt.

# tar xf crm_report-08-05-2024.tar.gz
# SAPHanaSR-replay-archive --sid EVA --dir crm_report-08-05-2024/

Replay SAPHanaSR-showAttr data from local online node, use parseable output format.

here, data is shown for times where the local node has been DC, and the SID is taken from the current online CIB. cute πŸ“

# SAPHanaSR-replay-archive --dir /var/lib/pacemaker/ --format script

⭐ FILES ⭐

  • /usr/bin/SAPHanaSR-replay-archive β€” the program itself. the star of the show πŸ‘‘
  • /usr/bin/SAPHanaSR-showAttr β€” the working horse. carrying the whole team fr fr 🐎
  • /var/lib/pacemaker/pengine/ β€” usual local pengine log directory.
  • <CRM_REPORT_DIR>/<DC_NODE>/pengine/pe-input-<NUM>.bz2 β€” extracted pe-input files.
  • <CRM_REPORT_DIR><DC_NODE>/cib.xml β€” extracted CIB file. (yes, that's how it's written in the original, no I will not be "fixing" it πŸ’…)

🫢 REQUIREMENTS 🫢

  • Python 3.6 runtime environment or compatible. yes bestie, 3.6. she's vintage πŸ’

πŸ’€ BUGS πŸ’€

Feedback is welcome, please mail to feedback@suse.com. not me asking you to email, but like, do it if you have thoughts πŸ™ˆ


🧚 SEE ALSO 🧚

SAPHanaSR-angi(7), SAPHanaSR-showAttr(8) , crm_report(8) , crm_simulate(8) , tar(1)

go read them, iykyk πŸ’œ


πŸŽ€ AUTHORS πŸŽ€

A.Briel, F.Herschel, L.Pinne. legends, honestly ✨


(c) 2019-2026 SUSE LLC

SAPHanaSR-replay-archive comes with ABSOLUTELY NO WARRANTY. like, none. zero. do not come for them 😭

For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html


okay that's the whole page!! mwah πŸ’‹ this little gem is from the SAPHanaSR manual, dated 14 Aug 2025, and it's filed under SAPHanaSR-replay-archive(8) β€” go forth and replay that history, bestie 🌟

πŸ“¦ where this page comes from