Skip to content

Commit

Permalink
Updated the plugins/get_sap.sh script and added a new one plugins/get…
Browse files Browse the repository at this point in the history
…_sap_info.sh and

made it active within cfg2html-hpux.sh
See issues #40 and #38
  • Loading branch information
Gratien D'haese committed Apr 10, 2015
1 parent c5c9f66 commit b630541
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions hpux/cfg2html-hpux.sh
Expand Up @@ -1535,6 +1535,7 @@ then # else skip to next paragraph
if [ -d /usr/sap ] ; then
paragraph "SAP R3"
inc_heading_level
exec_command $PLUGINS/get_sap_info.sh "Generic SAP Information"
exec_command $PLUGINS/get_sap.sh "SAP R3 Configuration"
[ -f /etc/sapconf ] && exec_command "cat /etc/sapconf" "Local configured SAP R3 Instances"
dec_heading_level
Expand Down
6 changes: 4 additions & 2 deletions hpux/plugins/get_sap.sh
Expand Up @@ -33,7 +33,9 @@ get_database()
then
echo "@@@@@@ START OF ${sid}_sapdba-check_($dbname)"
echo ""
cat /$database/$sid/sapcheck/$filename | grep -v "^\*\*\*"
###cat /$database/$sid/sapcheck/$filename | grep -v "^\*\*\*"
# too big files
tail -20 /$database/$sid/sapcheck/$filename | grep -v "^\*\*\*"
echo ""
echo "###### END OF ${sid}_sapdba-check_($dbname)"
echo ""
Expand Down Expand Up @@ -69,7 +71,7 @@ get_oracle_config()
fi
done

for o in /oracle/$sid /oracle/$sid/81?_??
for o in /oracle/$sid /oracle/$sid/81?_?? /oracle/$sid/11?_?? /oracle/$sid/12?_??
do
if [ -d $o ]
then
Expand Down
15 changes: 15 additions & 0 deletions hpux/plugins/get_sap_info.sh
@@ -0,0 +1,15 @@
# get_sap_info.sh
# @(#) $Id: Exp $
# Script written by Gratien D'haese

if [[ -x /usr/sap/hostctrl/exe/saphostexec ]]; then
echo "*** /usr/sap/hostctrl/exe/saphostexec -version ***"
/usr/sap/hostctrl/exe/saphostexec -version
echo "*** /usr/sap/hostctrl/exe/saphostexec -status ***"
/usr/sap/hostctrl/exe/saphostexec -status
fi

if [[ -x /usr/sap/hostctrl/exe/lssap ]]; then
echo "*** /usr/sap/hostctrl/exe/lssap ***"
/usr/sap/hostctrl/exe/lssap
fi

0 comments on commit b630541

Please sign in to comment.