psadmin_plus is a RubyGem helper tool for psadmin. By passing parameters via command line, you can run psadmin actions like start, stop, status, etc. All domains should be contained in a single PS_CFG_HOME. If you use multiple PS_CFG_HOME homes, see the Environment Variables section on how to enable support.
| Task | Command |
|---|---|
| help | psa help |
| list domains | psa list |
| start all domains | psa start |
| start all web domains | psa start web |
| start hdev web domain | psa start web hdev |
gem install psadmin_plus
Hey, I don't have ruby installed!
- Use ruby included with Puppet on Windows
- Use ruby included with Puppet on Linux
PS_RUNTIME_USER- User that owns
PS_CFG_HOMEand should runpsadmin - If not set, default is
psadm2
- User that owns
PS_POOL_MGMT- Enables load balanced pool management
- Options are:
on,off - If not set, default is
off
PS_HEALTH_FILE- Name of file used by Load Balancer health check
- Options are: any valid filename
- If not set, default is
heath.html
PS_HEALTH_TEXT- The content of the health check file
- Options are: any valid string. Use single quotes if the string has spaces or special characters.
- If not set, default is
true
PS_HEALTH_TIME- Health check timeout duration in seconds
- Options are: any integer
- If not set, default is 60 seconds
PS_PSA_SUDO- Runs commands as
PS_RUNTIME_USERviasudo, if set toon - Options are:
on,off - If not set, default is
off
- Runs commands as
PS_MULTI_HOMES- Set this value to the base folder where your
PS_CFG_HOMEare stored. - Use Unix path separators on all platforms. E.g,
PS_MULTI_HOME=/opt/oracle/psft/cfgorPS_MULTI_HOME=c:/psft/cfg - Option is any valid path or
false - If not set, default is
false
- Set this value to the base folder where your
PS_WIN_SERVICES- Use Windows Services to start/stop web, app and prcs domains.
- Options are:
all,tux,web,app,prcs - If not set, default is
false.psadminis used to start/stop domains. - The default service name is the DPK standard:
Psft<Type><Domain>Service - To override the default name, set the environment variables:
WEB_SERVICE_NAMEAPP_SERVICE_NAMEPRCS_SERVICE_NAME
- The override names must include
#{domain}somewhere in the name. That is used bypsadmin-plusto call the correct domain. E.g,WEB_SERVICE_NAME="#{domain}-pia"
PS_TRAIL_SERVICES- On Windows, you can use this option to set the Windows service after starting/stopping a domain via psadmin. This lets you start/stop and view the domain output but keep the Windows service status in sync.
- Options are:
true,false - If note set, default is
false
PS_PSA_CONF- The location of a configuration file for
psadmin-plus - Options are: a valid path to the config file
- If not set, default is
~/.psa.conf
- The location of a configuration file for
You can store the psadmin-plus configuration in a file instead of environment variables.
- Create the file
~/.psa.conf - Add your configuration as
envVar=valuepairs on each line
PS_POOL_MGMT=on
PS_MULTI_HOMES=/opt/oracle/psft/cfg
PS_HEALTH_FILE=host.html
Here are some suggested additions to your bash profile.
export PS_RUNTIME_USER="<ps-cfg-home-owner>"export PS_POOL_MGMT="off"export PS_PSA_SUDO="on"
Or set PS_PSA_CONF if you want to use a configuration file in a custom location
export PS_PSA_CONF=/u01/app/psa.conf
This has been tested using:
- 8.55
- 8.56
- Supports Service Accounts or User Accounts.
psacan run commands as a service account so domains are started under the correct account. - Supports Windows Services as well as
psadminfor domains on Windows - Support for multiple PS_CFG_HOME folders.
- Multiple
PS_CFG_HOMEs: The multi-config home support is limited to a single domain underPS_CFG_HOME, and the domain name must match the folder forPS_CFG_HOME. If your domain is namedHRDEV, then thePS_CFG_HOMEmust end with that domain name. (E.g,c:\psft\cfg\HRDEV)