Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
solve issue redhat-sap#22
Browse files Browse the repository at this point in the history
  • Loading branch information
berndfinger committed Sep 10, 2021
1 parent d153982 commit 9663419
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions files/tmp/tail-f-hdblcm-trc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#/bin/bash

_HDBLCM_PID=$(ps -ef | awk '/hdblcm/&&/instlog_dir/&&!/awk/{print $2}')

if [[ ${_HDBLCM_PID}. != "." ]]; then
_HDBLCM_TRC_FILE=/var/tmp/hdblcm_$(ps -ef | grep hdblcm | awk 'BEGIN{RS=" "}/instlog_dir/{split ($0, a, "install_"); print a[2]}')*.trc
echo "hdblcm trace file: ${_HDBLCM_TRC_FILE}"
tail -100f ${_HDBLCM_TRC_FILE}
else
echo "No hdblcm process found."
fi
15 changes: 15 additions & 0 deletions tasks/hana_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@
dest: "{{ tmpdir.path }}/configfile.cfg"
register: cftemplate

- name: Copy file /tmp/tail-f-hdblcm-trc.sh
copy:
src: tmp/tail-f-hdblcm-trc.sh
dest: /tmp/tail-f-hdblcm-trc.sh
owner: root
group: root
mode: '0755'

- name: Show how to watch the installation process in real time
debug:
msg:
- 'Once the task "Install SAP HANA" has started, you can use the following command in
in another terminal to watch the installation progress in real time:'
- ssh {{ inventory_hostname }} /tmp/tail-f-hdblcm-trc.sh

- name: Install SAP HANA
command: "./hdblcm {{ sap_hana_deployment_hdblcm_extraargs }} --configfile={{ tmpdir.path }}/configfile.cfg -b"
register: installhana
Expand Down

0 comments on commit 9663419

Please sign in to comment.