This file is used to pass a number of important parameters to eop_run
and to portfolio_mon
. The defaults listed in the description of the parameters are really for testing. The values actually given in the sample config file are probably more appropriate to production, and even then perhaps could go higher.
eop_run
knows to find portfolio_mon
, eop_launch
, and eop_restart
and how portfolio_mon
finds portfolio_stat
.
eop_run -s
will start. eop_run -r
and eop_run -m
do not care if their portfolio is or is not in this list.
PORTFOLIOS
when it comes to starting EOP. If there are reasons to have these switches vary by portfolio, then portfolios will have to be grouped together in different config files, each with its own combination of these switches.
PORTFOLIOS
, making it less useful than it might appear. If LeasePak is configured for manual check numbers and many portfolios, then this could present some issues.
PORTFOLIOS
, it is general practice to stagger their start times. There is a lot of very intense upfront activity involving the batch queues for each portfolio, and staggered start times reduce resource contention. The right length of time to wait between each submit is likely to be very site-specific. The site administrator will have to experiment with this and other parameters, both in mPower EOP Suite and in other LeasePak and queue management areas. SUBMIT_INTERVAL
, measured in seconds, puts eop_run
to sleep between each portfolio start.
portfolio_mon
calls portfolio_stat
periodically to determine the status of the EOP they are monitoring. This parameter determines how often portfolio_stat
is asked to run. While EOP is running, each invocation of portfolio_stat
results in a line being added to the portfolio log file, in sort of a heart beat fashion. The default of 10 seconds is okay for testing but in the real world, 60 seconds or more is more likely sufficient. Even 5, 10, 15 or even 30 minutes (300, 600, 900 or 1800 seconds) may be sufficiently often.
MONITOR_INTERVAL
s to wait for a stalled EOP to start running before sending email. STALL_TOLERANCE
is just the starting point in stall handling. The default, 120, times the default MONITOR_INTERVAL
of 10 seconds gives 1200 seconds or 20 minutes. If the MONITOR_INTERVAL
is 1800 seconds then STALL_TOLERANCE
might be 1 or 2, giving 30 or 60 minutes. It depends on how closely daily processing is scheduled.
STALL_TOLERANCE
eop_run
or portfolio_mon
at appointed times. They are to be complete command lines, as mPower EOP Suite will not add to them in any way except by the action of the shell itself. They may contain parameter references ($-values) to any parameter defined at the times they are processed. They are processed twice, once when the config file is read and the assignments are evaluated and performed, and once upon invocation, which is done in the form of an eval
: eval `echo $PRE_EOP_PROC` for instance. The variable value of PRE_EOP_PROC
is made available as the statement eval
is to evaluate by `echo ...`, and then any further shell substitutions or metacharacter processing, etc., are performed at that time. Then the resulting command line is executed.
eop_run -s
before any portfolios are processed. The example in the config file simply clears the screen log generated by eop_run
's main loop, but can be used for anything. Backing up the database and the data directory before starting EOP is extremely advisable; this is a perfect place to do it. PRE_EOP_PROC
is called only on eop_run -s
, never on eop_run -r
or eop_run -m
.
eop_run
immediately before submitting each portfolio. In this config file, it is used to call a small script that clears out a destination directory that is to receive files at the end of the portfolio's processing. START_PORT_PROC
is called only on eop_run -s
, never on eop_run -r
or eop_run -m
.
portfolio_mon
on successful completion of EOP in the portfolio being monitored. This config file uses this parameter to call a small script that copies that portfolio's udata
files into the directory cleared out by START_PORT_PROC
. END_PORT_PROC
is called only on successful completion of the portfolio, never on failure.
$ueop/log/*mpwr_api.log
file.
The START_PORT_PROC
and END_PORT_PROC
scripts are listed following eop_run.cfg
.
# Required: # PROGRAM_LOC= - path where portfolio_stat, portfolio_mon, eop_launch and # eop_restart are located, typically $ubin/eop_mpwr # PORTFOLIOS= - "-quoted list of portfolios to submit # ACCRUALS= - Y or N # INVOICES= - Y or N # MPC_URL= - mPower URL where it is deployed # Don't forget to add "/" at the end of URL # MPC_LP_AUTH= - authentication mode (ADFS/PLAIN/ENCRYPTED/HEADER/ENVIRONMENT) # Following are required when authmode = ADFS / HEADER / ENVIRONMENT : # MPC_LP_USER= - LeasePak username that has access to mpower # MPC_LP_PASS= - LeasePak password # Following are required when authmode = ENVIRONMENT: # MPC_LP_HOST= - hostname of where mpower daemon is deployed # MPC_LP_PORT= - port number of the mpower daemon # MPC_LP_ENVR= - environment name # MPC_LP_VERS= - LeasePak version e.g. 7.40 # # Optional: # EOP_RUN_TYPE - D or M or Y, user can set End of Month or Year # run before actual date which is allowed in U0401 # - If Blank, default U0401 setup will be used # SUBMIT_INTERVAL= - defaults to 5 seconds between submitting portfolios # MONITOR_INTERVAL= - defaults to 10 seconds between checks for EOP status # STALL_TOLERANCE= - defaults to 120 iterations of MONITOR_INTERVAL # CHECK_NUMBER= - if required by LeasePak setup # MAIL_TO= - "-quoted, ;-separated list of email addresses # MAIL_FROM= - email address # PRE_EOP_PROC= - complete "-quoted path and text of job to perform # before the first portfolio is submitted, such as backups # START_PORT_PROC= - complete "-quoted path and text of job to perform # before each portfolio is submitted # END_PORT_PROC= - complete "-quoted path and text of job to perform # when each portfolio completes # POST_EOP_PROC= - complete "-quoted path and text of job to perform # after the last portfolio has completed and has completed # post-portfolio processing. # MPC_LOG_FILE= 1 - enable mpower client debug log file for SOAP messages # 0 - disable log file # MPC_SSL_VERIFY= 1 - always verify SSL certificate when connecting to mpower # 0 - skip verification of SSL certificate # PROGRAM_LOC=$ubin/eop_mpwr PORTFOLIOS="2" ACCRUALS=Y INVOICES=Y EOP_RUN_TYPE= SUBMIT_INTERVAL=45 MONITOR_INTERVAL=60 STALL_TOLERANCE=30 CHECK_NUMBER= MAIL_TO="[email protected];[email protected]" [email protected] PRE_EOP_PROC="rm -f $ueop/log/eopsuite.log" START_PORT_PROC="$PROGRAM_LOC/clear_data $PORTFOLIO $ENVDIR/ready_data" END_PORT_PROC="$PROGRAM_LOC/copy_data $PORTFOLIO $ENVDIR/ready_data" POST_EOP_PROC="$PROGRAM_LOC/your_custom_program" #------------------------------------------------------------------------------------------------- # configuration variables for perl scripts #------------------------------------------------------------------------------------------------- MPC_URL=https://mpower.netsoltech.com/mpower-74a/ MPC_LP_AUTH=PLAIN MPC_LP_USER=mpower MPC_LP_PASS=mpower MPC_LP_HOST=leasepak.netsoltech.com MPC_LP_PORT=7406 MPC_LP_ENVR=mpower MPC_LP_VERS=7.40 MPC_LOG_FILE=0 MPC_SSL_VERIFY=0