Pages

Tuesday, December 13, 2022

Golden Gate, Report process status from bash to a file

Report GG processes status to a file

mkdir /software/ogg/191/gg_report
mkdir /software/ogg/191/gg_report/scripts
mkdir /software/ogg/191/gg_report/log

/software/ogg/191/gg_report/scripts/get_gg_status.oby
SEND DPM_I_01 STATUS
SEND DPM_P_01 STATUS
SEND DPM_S_01 STATUS
SEND EXT_I_01 STATUS
SEND EXT_P_01 STATUS
SEND EXT_S_01 STATUS
SEND REP_I_01 STATUS
SEND REP_P_01 STATUS
SEND REP_S_01 STATUS

/software/ogg/191/gg_report/scripts/report_gg_status.sh
#!/bin/bash
echo OBEY /software/ogg/191/
gg_report/scripts/get_gg_status.oby | /software/ogg/191/ggsci > /software/ogg/191/gg_report/log/gg_status_all.log

No comments:

Post a Comment