Skip to content

Commit

Permalink
April Changes (#36)
Browse files Browse the repository at this point in the history
* Merging latest changes from internal repository

* Adjust documentation for PAS monitoring per user comments

* Update install guide

* Update scripts for 12.8 and 13.0

* Update instructions, properties

* Update command line parameter options for metrics

* Merge new config changes for monitoring scripts

* Update from dev work

---------

Co-authored-by: DustinGrau-PSC <[email protected]>
  • Loading branch information
DustinGrau-PSC and DustinGrau-PSC authored Apr 24, 2024
1 parent db8f53c commit 6b1117b
Show file tree
Hide file tree
Showing 93 changed files with 4,326 additions and 213 deletions.
2 changes: 1 addition & 1 deletion PAS/Management/OEManager/ABL/bin/oemanager.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if exist "%DLC%\bin\java_env.bat" (
)

REM Use the PowerShell utility to execute the Ant utility with all given parameters
PowerShell.exe -executionpolicy bypass -File "oemanager.ps1" %*
PowerShell.exe -executionpolicy bypass -File "%~dp0\oemanager.ps1" %*

goto END

Expand Down
3 changes: 1 addition & 2 deletions PAS/Management/OEManager/ABL/bin/oemanager.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ to a PAS instance to manage and monitor that instance.
#>

#---- Local Variables ----#
[string]$script:_dlcPath=(Get-ChildItem -Path Env:DLC).Value
[string]$script:_antPath="$script:_dlcPath\ant\bin\ant.bat"
[string]$script:_antPath="$env:DLC\ant\bin\ant.bat"
[string]$script:_taskFilePath="$PSScriptRoot\oemanager.xml"
[string]$script:_taskArgs=""

Expand Down
3 changes: 2 additions & 1 deletion PAS/Management/OEManager/ABL/bin/oemanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ done

# Uses the oemanager.xml as task instructions to Ant, passing all task arguments
ANT_HOME=$DLC/ant ; export ANT_HOME
exec $ANTSCRIPT -f oemanager.xml $TASKARGS
SCRIPT_HOME=$(dirname "$0")
exec $ANTSCRIPT -f $SCRIPT_HOME/oemanager.xml $TASKARGS
6 changes: 6 additions & 0 deletions PAS/Management/OEManager/ABL/conf/oemanager.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# oemanager.properties file - Modify as Needed for PAS Instance
#
# Set the output directory for all generated files, including logs
# Using "BIN" will use the script executable's folder, the default.
# Using "TMP" will use the PAS instance's temp folder.
#
#outdir=BIN
#
# Changing the scheme will affect the port
# used when run from within a PAS instance
#
Expand Down
56 changes: 28 additions & 28 deletions PAS/Management/OEManager/ABL/conf/oemanager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@
<if>
<isset property="outdir.unset"/>
<then>
<property name="outdir" value="PWD"/>
<property name="outdir" value="BIN"/>
</then>
</if>

<!-- Set output based on a default or given value. -->
<if>
<equals arg1="${outdir}" arg2="PWD"/>
<equals arg1="${outdir}" arg2="BIN"/>
<then>
<!-- Default to the current directory. -->
<property name="output.dir" value="${basedir}"/>
Expand Down Expand Up @@ -668,7 +668,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -685,7 +685,7 @@
<Parameter name="PassWD" value="${passwd}"/>
<Parameter name="ABLApp" value="${ablapp}"/>
<Parameter name="BaseMem" value="${basemem}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="stacks">
Expand All @@ -702,7 +702,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -720,7 +720,7 @@
<Parameter name="ABLApp" value="${ablapp}"/>
<Parameter name="ProcID" value="${pid}"/>
<Parameter name="SessionID" value="${sessid}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="flush">
Expand All @@ -737,7 +737,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -753,7 +753,7 @@
<Parameter name="UserID" value="${userid}"/>
<Parameter name="PassWD" value="${passwd}"/>
<Parameter name="ABLApp" value="${ablapp}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="trimhttp">
Expand All @@ -770,7 +770,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -789,7 +789,7 @@
<Parameter name="WebApp" value="${webapp}"/>
<Parameter name="TerminateOpt" value="${terminateopt}"/>
<Parameter name="SessionID" value="${sessid}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="trimidle">
Expand All @@ -806,7 +806,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -824,7 +824,7 @@
<Parameter name="ABLApp" value="${ablapp}"/>
<Parameter name="Idle" value="true"/>
<Parameter name="TerminateOpt" value="${terminateopt}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="trimsingle">
Expand All @@ -841,7 +841,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -860,7 +860,7 @@
<Parameter name="TerminateOpt" value="${terminateopt}"/>
<Parameter name="ProcID" value="${pid}"/>
<Parameter name="SessionID" value="${sessid}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="trimall">
Expand All @@ -877,7 +877,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -895,7 +895,7 @@
<Parameter name="ABLApp" value="${ablapp}"/>
<Parameter name="Idle" value="false"/>
<Parameter name="TerminateOpt" value="${terminateopt}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="trimrand">
Expand All @@ -914,7 +914,7 @@

<!-- THIS IS AN UNLISTED TARGET! -->
<!-- This will psuedo-randomly terminate ABL Sessions and should NOT be used in any production environment. -->
<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -932,7 +932,7 @@
<Parameter name="ABLApp" value="${ablapp}"/>
<Parameter name="TerminateOpt" value="${terminateopt}"/>
<Parameter name="Pattern" value="${pattern}"/> <!-- Call with -Dpattern=# or -Dpattern=rand[om] -->
</PCTRun>
</PCTDynRun>
</target>

<target name="reset">
Expand All @@ -949,7 +949,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -966,7 +966,7 @@
<Parameter name="PassWD" value="${passwd}"/>
<Parameter name="ABLApp" value="${ablapp}"/>
<Parameter name="Type" value="${resettype}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="refresh">
Expand All @@ -983,7 +983,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -999,7 +999,7 @@
<Parameter name="UserID" value="${userid}"/>
<Parameter name="PassWD" value="${passwd}"/>
<Parameter name="ABLApp" value="${ablapp}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="add">
Expand All @@ -1016,7 +1016,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -1032,7 +1032,7 @@
<Parameter name="UserID" value="${userid}"/>
<Parameter name="PassWD" value="${passwd}"/>
<Parameter name="ABLApp" value="${ablapp}"/>
</PCTRun>
</PCTDynRun>
</target>

<target name="stop">
Expand All @@ -1049,7 +1049,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -1068,7 +1068,7 @@
<Parameter name="WaitFinish" value="${waitfinish}"/>
<Parameter name="WaitAfter" value="${waitafter}"/>
<Parameter name="ProcID" value="${pid}"/> <!-- Considered optional, default "" -->
</PCTRun>
</PCTDynRun>
</target>

<target name="users">
Expand Down Expand Up @@ -1101,7 +1101,7 @@
</condition>
</fail>

<PCTRun
<PCTDynRun
dlcHome="${dlcHome}"
graphicalMode="false"
tempDir="${output.dir}"
Expand All @@ -1119,7 +1119,7 @@
<Parameter name="Port" value="${port}"/>
<Parameter name="UserID" value="${userid}"/>
<Parameter name="PassWD" value="${passwd}"/>
</PCTRun>
</PCTDynRun>
</target>

</project>
4 changes: 2 additions & 2 deletions PAS/Management/OEManager/ABL/oemanager.README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OEManager CLI Tools - Usage Guide #

Execute the `oemanager.[bat|sh]` command from within the utils folder to run the desired tasks from the command line. Where possible, default values will be determined automatically for HTTP/S ports, server paths, the instance's name, and the default ABL Application name. Any required or optional parameters may be overridden via the command line or by editing the `oemanager.properties` file in advance.
Execute the `oemanager.[bat|sh]` command to run the desired tasks from the command line. Default values will be inherited automatically for HTTP/S ports, server paths, the instance's name, and the default ABL Application name. Any required or optional parameters may be overridden via the command line or by editing the `oemanager.properties` file in advance, with modified values being honored in that order.

Note that each request to an OEM-API endpoint will be automatically logged to an `oemanager.log` file. No sensitive data will be included in these logged messages, only PID's and operationally-relevant information will be included in the URL or as query parameters to the API endpoint.

Expand Down Expand Up @@ -112,7 +112,7 @@ The following represents the default usage for all tasks which can be executed u

Some tasks denote optional or required parameters, while all will use a set of common parameters either derived from the local PAS instance or specified via the command line or `oemanager.properties` file. When necessary to override any property values, simply pass as `name=value` on the command line or uncomment the property name and set a default value within the `oemanager.properties`.

The output for any generated files from available tasks will be placed in the location referred to by the `-Doutdir` value. This may be one of 2 built-in options, `PWD` or `TMP` for the current directory (`CATALINA_BASE/bin`) or temp folder (`CATALINA_BASE/temp`), respectively. Alternately, you may specify a full path to use for all output.
The output for any generated files from available tasks will be placed in the location referred to by the `-Doutdir` value. This may be one of 2 built-in options, `BIN` or `TMP` for the deployed utils directory (`CATALINA_BASE/utils`) or temp folder (`CATALINA_BASE/temp`), respectively. Alternately, you may specify a full path to use for all output.

**Examples:**

Expand Down
2 changes: 1 addition & 1 deletion PAS/Management/OEManager/ABL/release.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-03-26T16:26:08.982
2024-04-08T07:57:01.513
Binary file modified PAS/Management/OEManager/ABL/utils.zip
Binary file not shown.
Loading

0 comments on commit 6b1117b

Please sign in to comment.