Skip to content

Commit

Permalink
automate
Browse files Browse the repository at this point in the history
  • Loading branch information
frumania committed Nov 20, 2023
1 parent 83c69e4 commit 561452b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssm_sap/lw_discovery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ aws ssm-sap get-application --application-id $StackNameClean$SAP_HANA_SID
MYCOMP=$(aws ssm-sap get-application --application-id $StackNameClean$SAP_HANA_SID --output text --query "*.Components[0]")
aws ssm-sap get-component --application-id $StackNameClean$SAP_HANA_SID --component-id $MYCOMP

HOSTCTRL=$(sudo /usr/sap/hostctrl/exe/saphostctrl -function GetCIMObject -enuminstances SAPInstance -format json)
echo $HOSTCTRL

#RUN ONLY IN CASE OF SAP APPSRV
if [ -d /usr/sap/$SAP_SID ]; then
Expand Down

0 comments on commit 561452b

Please sign in to comment.