Using the PSADMIN Command-Line Interface
This section provides an overview of the PSADMIN command-line interface and discusses how to work with commands.
In some cases, you might want to use the PSADMIN command-line interface rather than starting the PSADMIN interface and navigating to a particular menu. The command line offers a direct method of carrying out certain server administration tasks. It also enables you to include PSADMIN actions in scripts, and simplifies the task of creating numerous domains that use default server settings.
PSADMIN has several variations of its basic command-line syntax for miscellaneous activities and server administration, which are described in the following sections.
Note: Before you begin using the PSADMIN commands, you should become familiar with PSADMIN and the components that it controls.
Note: When using the PSADMIN command line and specifying paths containing spaces (such as directory paths on Windows), the paths must be enclosed within quotes.
Note: On Microsoft Windows, whenever you run a script to create or configure a domain (application server or Process Scheduler), a related rmiregistry MS-DOS window is started. You do not have to kill these command windows; these windows will be minimized.
Following are the available miscellaneous PSADMIN commands:
Command |
Description |
---|---|
|
Displays command help and syntax. |
|
Displays the PSADMIN version number, as in Version 8.59. |
|
Displays your current environment variables. |
|
Displays the current PS_CFG_HOME environment variable. |
|
Displays a summary of PS_HOMEs and domains. |
|
Replicates a PS_CFG_HOME and its configured domains, including a PIA domain, to a new location, where they can be started without manual reconfiguration. The replicate originates from the source PS_CFG_HOME in the command line parameter and copies to the current PS_CFG_HOME that the user is working with as defined either by the value of the PS_CFG_HOME environment variable or the default location PSADMIN is using for the operating system. That is, you copy an existing PS_CFG_HOME into the current PS_CFG_HOME used by PSADMIN. If the current PS_CFG_HOME contains any existing domains, the replication process will abort and will display a message. You can overwrite the existing domains in the current PS_CFG_HOME using the –r option. Note: If the current PS_CFG_HOME contains any existing domains, ensure that the domains are shut down before you execute the replicate command. If the domains are not shut down, an error is displayed. |
|
Refreshes the domains in PS_CFG_HOME and applies the latest configuration settings to the domains. If any of the domains is started, the refresh process will first shut down the domain, refresh it, and then start the domain. A stopped domain will just be refreshed. Use the –keepbackup option to keep a back-up copy of a domain. The back-up copies of a domain are stored in PS_CFG_HOME with the following naming convention: <domain>_<date>_<time>.bak. For example, peoplesoft_081315_2158.bak. |
PeopleSoft allows you to store a parameter key and its value in a text file so that you need not enter passwords and configuration settings on the command line. System administrators must ensure that the file containing a parameter and its value is accessible to PSADMIN. When you enter a parameter and its value in a text file, you must follow the syntax that is applicable for the parameter value.
You can use the command line to read a file reference using the following syntax:
psadmin -c command -d domain -t template -@@ file path and file name
For example:
psadmin -c create -d NEWQ1
-t small -@@ D:\temp\key1.txt
The contents of the key1.txt file are as follows:
-s Q8588053/ORACLE/QEDMO/QEDMO/TESTSERV/D:\oracle\product\12.1.0\dbhome_1\BIN/people/password/_____/password
Note: Use –@@ if you do not want the text file to be deleted after PSADMIN extracts the file’s contents. Use –@ if you want the text file to be deleted.
When you use –@ file references, consider the following:
A PSADMIN command can contain multiple –@[@] file references that contain a parameter key-value pair, and you can use a mix of –@@ and –@ within a single command.
For example:
psadmin -c create -d psftdomain -t psfttemplate -@@ D:\temp\set_file.txt[-@ D:\temp\pset_file.txt] [-@@ D:\temp\env_set.txt]
A PSADMIN command can contain nested –@[@] file references.
For example:
psadmin -@@ D:\edw\temp\file1.txt
where the contents of file1.txt are as follows:
-c create -d NEWQ1 -t small -@@ D:\edw\temp\file2.txt
and the contents of file2.txt are as follows:
-s Q8588053/ORACLE/QEDMO/QEDMO/TESTSERV/D:\oracle\product\12.1.0\dbhome_1\BIN/people/password/_____/password
When you have multiple –@ file references in a command, and if any of the –@ file reference fails, PSADMIN stops processing the command after an error is encountered.
For example:
psadmin -c -@@ D:\edw\temp\file3.txt
Where the contents of file3.txt are as follows:
create -@ D:\edw\temp\file4.txt -@ D:\edw\temp\file4.txt -@ D:\edw\temp\file5.txt
PSADMIN displays the following error:
Can't open file D:\edw\temp\file4.txt. Please Check the correct file name.
In this example, PSADMIN reads the contents of file3.txt, When it encounters an error, it deletes file4.txt and subsequently stops processing the command. PSADMIN does not delete file5.txt if the file exists in the location.
The PeopleSoft Pure Internet Architecture (PIA) commands follow this basic syntax:
psadmin —w command —d PIA_domain
For example:
psadmin —w start —d peoplesoft
Note: The examples in this table include line feeds for readability.
Command |
Example |
Result of the Example |
---|---|---|
start |
|
Starts the peoplesoft domain. |
shutdown |
|
Stops the peoplesoft domain. |
shutdown! |
|
Performs a forced shutdown of the peoplesoft domain. |
status |
|
Displays the status of the domain (started, stopped, and so on). |
remove |
|
Deletes the domain. |
import |
|
Imports the peoplesoft domain from a specified PS_CFG_HOME location, <source PS_CFG_HOME>. You may use the following options as required:
|
Using the PeopleSoft Pure Internet Architecture Create Command
Use the following syntax to create a new PIA domain:
psadmin -w create -d PIA_domain -c c_set
The create command creates a PIA domain, using the specified configuration settings.
PIA_domain — Enter the name of a PIA domain that you want to create, for example, peoplesoft.
c_set (configuration settings) — Use the following order and format:
In Microsoft Windows, the values must be separated by slashes:
WebServer/WebServerRootDir/WebServerLoginId/WebServerLoginPwd/WebsiteName/AppserverHost/JSL Port/HTTP Port/HTTPS Port/AuthenticationTokenDomain/Web profile/WebProfUserId/WebProfUserPwd/IntegrGatewayId/IntegrGatewayPwd/AppsrvDomConnPwd/SSLKeystorePwd/RepDir
In UNIX, the values must be separated by percent signs:
WebServer%WebServerRootDir%WebServerLoginId%WebServerLoginPwd%WebsiteName%AppserverHost%JSL Port%HTTP Port%HTTPS Port%AuthenticationTokenDomain%Web profile%WebProfUserId%WebProfUserPwd%IntegrGatewayId%IntegrGatewayPwd%AppsrvDomConnPwd%SSLKeystorePwd%RepDir
Note: To indicate an empty parameter, enter five underscore characters ( _____ ).
See Creating a PIA Domain for descriptions of the configuration settings.
Specifying PIA Domain Configuration Settings
You can use the command line to set selected domain settings using the following syntax:
psadmin —w configure —d PIA_domain —c c_set —p p_set
For example:
psadmin —w configure —d
peoplesoft —c 512/512/50/example.com —p 80/443
PIA_domain — Enter the name of a PIA domain that you want to create, for example, peoplesoft.
c_set (configuration settings) — Use the following order and format:
minHeapSize/maxHeapSize/maxThreads/authTokenDomain
p_set (port settings) — Use the following order and format:
httpPort/httpsPort
See Configuring a PIA Domain for descriptions of the configuration settings.
Specifying PIA Site Configuration Settings
You can use the command line to set selected site settings using the following syntax:
psadmin —w configure —d PIA_domain —s site —c c_set
For example:
psadmin —w configure —d
peoplesoft —s ps —c SERVER01:9000/PROD/Enabled/D:\psreports/PS/password/password
PIA_domain — Enter the name of a PIA domain that you want to create, for example, peoplesoft.
site — Enter the web site name; for example, ps.
c_set (configuration settings) — Use the following order and format:
appSrvConnString/webProfile/pooling/reportPath/webProfUser/webProfPword/appSrvConnPword
The following table describes the configuration settings:
PIA configuration (c_set) settings |
Description |
---|---|
appSrvConnString |
Application server connect string, such as host:jolt port. |
webProfile |
The web profile the site will use (PROD, DEV, and so on). |
pooling |
Indicate whether Jolt pooling should be enabled. (Enabled/Disabled) |
reportPath |
The reports path, such as D:\psreports. |
webProfUser |
The user required for accessing the web profile. |
webProfPword |
The password for the web profile user. |
appSrvConnPword |
If using a domain connection password, enter that value. |
For application server administration, PSADMIN has two syntax formats — one for creating new application server domains, and the other for administering existing domains.
Using the Application Server Create Command
Use the following syntax to create a new application server domain:
psadmin -c create -d appsrv_domain -t template -s s_set [-p p_set] [-cfg cfg_set | —cfg_from_file cfg_file_path] [-env env_set]
The create command creates an application server configuration file with the specified domain name, using the specified configuration template.
Following is an example of the application server create command, including startup settings, ports settings, and a configuration file:
D:\PT\appserv>psadmin -c create -d HRDOM01 -t small -s PT858/ORACLE/QEDMO/QEDMO
/TESTSRV2/"c:\oracle\product\12.1.0\client_1\bin"/people/password/_____/ENCRYPT
-p 7200/9020/9200 -cfg_from_file d:\temp\app_cfg_file.txt
The other options are described below.
The appsrv_domain parameter must be the name of an application server domain that you want to create, for example, HCMDMO.
The template parameter must have one of the following values:
small
medium
large
developer
The s_set parameter is an optional string of startup values which provide initial configuration settings that you would otherwise specify on the PSADMIN application server Quick-Configure menu. You must enter the startup string as follows.
In Microsoft Windows, the values must be separated by slashes (/):
DBNAME/DBTYPE/OPR_ID/OPR_PSWD/DOMAIN_ID/ADD_TO_PATH/DB_CNCT_ID/DB_CNCT_PSWD/SERVER_NAME/DOM_CONN_PWD/SEC_PRINCIPAL_PASSWORD/ENABLE_REMOTE_ADMIN/REMOTE_ADMIN_PORT/REMOTE_ADMIN_USRID/REMOTE_ADMIN_PSWD/{ENCRYPT|NOENCRYPT}/REMOTE_ADMIN_SSL_ENABLED/REMOTE_ADMIN_SSL_KEYSTORE/REMOTE_ADMIN_SSL_KEYSTORE_PWD/REMOTE_ADMIN_SSL_KEYSTORE_TYPE/REMOTE_ADMIN_SSL_TRUSTSTORE/REMOTE_ADMIN_SSL_TRUSTSTORE_PWD/REMOTE_ADMIN_SSL_TRUSTSTORE_TYPE
In UNIX, the values must be separated by percent signs (%):
DBNAME%DBTYPE%OPR_ID%OPR_PSWD%DOMAIN_ID%ADD_TO_PATH%DB_CNCT_ID%DB_CNCT_PSWD%SERVER_NAME%DOM_CONN_PWD%SEC_PRINCIPAL_PASSWORD%ENABLE_REMOTE_ADMIN%REMOTE_ADMIN_PORT%REMOTE_ADMIN_USRID%REMOTE_ADMIN_PSWD%{ENCRYPT|NOENCRYPT}%REMOTE_ADMIN_SSL_ENABLED%REMOTE_ADMIN_SSL_KEYSTORE%REMOTE_ADMIN_SSL_KEYSTORE_PWD%REMOTE_ADMIN_SSL_KEYSTORE_TYPE%REMOTE_ADMIN_SSL_TRUSTSTORE%REMOTE_ADMIN_SSL_TRUSTSTORE_PWD%REMOTE_ADMIN_SSL_TRUSTSTORE_TYPE
Important! You must enter these
values in the order shown. You can omit required values only by truncating
the string from right to left. For example, you can specify DBNAME/DBTYPE
, but you can't specify DBNAME/DOMAIN_ID
.
These startup settings all have default values if you omit any of them. The default values are generally the values you provided when setting up your PeopleSoft environment, and are the same as they would initially appear on the PSADMIN application server Quick-Configure menu.
The following table describes the startup settings:
Startup (s_set) Settings |
Description |
---|---|
DBNAME |
Enter the name of the database to which the application server will connect. This is the same as the DBName parameter in the Startup section of the psappsrv.cfg file. Note: If you don't include the s_set parameter, the value of this setting is the same as the domain name that you specify in the command. |
DBTYPE |
Enter the database type. Valid values are ORACLE, MICROSFT, and DB2ODBC. This is the same as the DBType parameter in the Startup section of the psappsrv.cfg file. Note: Notice the spelling of MICROSFT. DB2ODBC is the database type for DB2 z/OS. |
OPR_ID |
Enter the user ID, such as QEDMO, PS, or VP1, for the domain to use to connect to the database. This is the same as the UserId parameter in the Startup section of the psappsrv.cfg file. |
OPR_PSWD |
Enter the user password that is associated with the specified user ID. This is the same as the UserPswd parameter in the Startup section of the psappsrv.cfg file. |
DOMAIN_ID |
Enter a domain ID, such as TESTSRV1, TESTSRV2, and so on. This does not need to match the domain name. This name is important only because the Tuxedo Web Monitor uses it to identify application server domains on each machine. This is the same as the Domain ID parameter in the Domain Settings section of the psappsrv.cfg file. |
ADD_TO_PATH |
(Optional) Enter the directory path that contains your connectivity software or database drivers. This is the same as the Add to PATH parameter in the Domain Settings section of the psappsrv.cfg file. Note: If this value contains
spaces, it must be in double quotes ( Important! If you want this setting
to be blank, but you can't truncate the string to this point (you
still need to specify a value for CNCT_ID), you
can specify a value of “ |
CNCT_ID |
Enter the connect ID, which is required for all platforms. This is the same as the ConnectId parameter in the Startup section of the psappsrv.cfg file. See Connect ID. |
CNCT_PSWD |
Enter the password that is associated with the connect ID. This is the same as the ConnectPswd parameter in the Startup section of the psappsrv.cfg file. |
SERVER_NAME |
(Optional) If your RDBMS requires that you specify the server name on which the database resides, enter the appropriate server name. This is the same as the ServerName parameter in the Startup section of the psappsrv.cfg file. Important! If you want this setting
to be blank, but you can't truncate the string to this point (you
still need to specify the ENCRYPT setting), you can specify a value
of “ |
ENCRYPT | NOENCRYPT |
Specify ENCRYPT to encrypt the values of the UserPswd and ConnectPswd parameters in the psappsrv.cfg file. If you specify NOENCRYPT, these values appear in clear text in the file. ENCRYPT is the default value. |
SEC_PRINCIPAL_PASSWORD |
Enter a password for use with Oracle wallet. |
ENABLE_REMOTE_ADMIN |
Specify whether to enable embedded JMX agents for PeopleSoft Health Center. Enter 1 to enable remote administration, and 0 to disable remote administration. The default is enabled. When remote administration is enabled, you must also specify values for REMOTE_ADMIN_PORT, REMOTE_ADMIN_USRID, and REMOTE_ADMIN_PSWD. If you do not explicitly disable remote administration, and you do not provide values for REMOTE_ADMIN_PORT, REMOTE_ADMIN_USRID, and REMOTE_ADMIN_PSWD, the system will generate values for the user ID and password and place the encrypted values in the PSTOOLS section of the psappsrv.cfg file. |
REMOTE_ADMIN_PORT |
Enter a port number to use for remote administration of domain processes. All embedded JMX agents will use the port in the JMX service URL. |
REMOTE_ADMIN_USRID |
Enter a user name for remote administration connections. |
REMOTE_ADMIN_PSWD |
Enter a password for remote administration connections. |
REMOTE_ADMIN_SSL_ENABLED |
Specify whether to enable SSL for JMX agents. Enter 1 to enable SSL, and 0 to disable SSL. The default is disabled. When you enable SSL for JMX agents, you must also specify the location, password, and type for the keystore and truststore. |
REMOTE_ADMIN_SSL_KEYSTORE |
Specify the location of the keystore for SSL. |
REMOTE_ADMIN_SSL_KEYSTORE_PWD |
Specify the password for the SSL keystore. The password must be encrypted with PSCipher. |
REMOTE_ADMIN_SSL_KEYSTORE_TYPE |
Specify the keystore type, PKCS12 or JKS. |
REMOTE_ADMIN_SSL_TRUSTSTORE |
Specify the location of the truststore for SSL. |
REMOTE_ADMIN_SSL_TRUSTSTORE_PWD |
Specify the password for the SSL truststore. The password must be encrypted with PSCipher. |
REMOTE_ADMIN_SSL_TRUSTSTORE_TYPE |
Specify the truststore type, PKCS12 or JKS. |
The p_set parameter is an optional string of port numbers that you would otherwise specify on the PSADMIN application server Quick-Configure menu. Typically, you include this parameter only if you have more than one domain on the same application server machine or if you need to provide a specific value due to your environment or testing needs. Otherwise, you should accept the defaults for easy configuration.
You must specify the port numbers as follows:
In Microsoft Windows, the values must be separated by slashes.
WSL_PORT/WSL_SSL_PORT/JSL_PORT/JSL_SSL_PORT/JRAD_PORT
In UNIX, the values must be separated by percent signs.
WSL_PORT%WSL_SSL_PORT%JSL_PORT%JSL_SSL_PORT%JRAD_PORT
Important! You must enter these
values in the order shown. You can omit values only by truncating
the string from right to left. For example, you can specify WSL_PORT/WSL_SSL_PORT
, but you can't specify WSL_PORT/JRAD_PORT
. These port numbers all have default values if you omit any of them.
The default values are the values you provided when setting up your
PeopleSoft environment, and are the same as they would initially appear
on the PSADMIN application server Quick-Configure menu.
The following table describes the port settings:
Port (p_set) Setting |
Description |
---|---|
WSL_PORT |
Workstation listener port number. This is the same as the Port parameter in the Workstation Listener section of the psappsrv.cfg file. Note: Specify this value only if you intend for the domain to support Windows workstations connecting in the development environment. |
WSL_SSL_PORT |
SSL port for Workstation listener. This is the same as the SSL PORT parameter in the Workstation Listener section of the psappsrv.cfg file. |
JSL_PORT |
Jolt port number. This is the same as the Port parameter in the JOLT Listener section of the psappsrv.cfg file. |
JSL_SSL_PORT |
SSL port for Jolt. This is the same as the SSL PORT parameter in the JOLT Listener section of the psappsrv.cfg file. |
JRAD_PORT |
Jolt internet relay port number. This is the same as the Listener Port parameter in the JOLT Relay Adapter section of the psappsrv.cfg file. Note: Specify this value only if you intend for the domain to support browser deployment, and your web server resides on a separate machine from the application server. |
Supply configuration settings in a string with the cfg_set parameter or reference a file with the cfg_file_path parameter.
The cfg_set parameter is an optional string of configuration settings from the psappsrv.cfg file. Use the number sign (#) to separate each setting, and surround the string with double quotes if any of the values include spaces. For example:
"[PSAPPSRV]/Min Instances=2#[PSAPPSRV]/Max Instances=8"
If you include a password that has a number sign (#), you must precede it with a slash (\). For example:
"[Security]/DomainConnectionPwd=password\##[Workstation Listener]/Port=7000"
Alternatively, you can supply configuration settings in a file. Specify the path and file name with the parameter cfg_file_path. Use this option rather than cfg_set if you are supplying passwords that contain special characters. Each line specifies a psappsrv.cfg file section, a parameter and value, with this format:
[<Section>]/<Param Name>=<Param Value>
[<Section>]/<Param Name>=<Param Value>
For example:
[Domain Settings]/Domain ID=APPDOM
[PSAPPSRV]/Min Instances=2
[PSAPPSRV]/Max Instances=8
[PSAPPSRV]/Max Fetch Size=15000
[Security]/DomainConnectionPwd=password
[JOLT Listener]/Port=9033
[JOLT Listener]/Address=0.0.0.0
[Workstation Listener]/Port=7000
The configuration parameters are described elsewhere in this document, organized by section name. See Understanding Application Server Domain Parameters..
The env_set specifies domain environment settings, having the following format:
ENVAR_NAME1=ENVVAR_VALUE1#ENVAR_NAME2=ENVVAR_VALUE2
For example:
TM_BOOTTIMEOUT=120#TM_RESTARTSRVTIMEOUT=120#TM_BOOTPRESUMEDFAIL=Y
When you launch the command, you see progress messages similar to the following:
Copying application server configuration files...
Copying [D:\PT\appserv\small.cfx] to [D:\PT_SERVER\8.59\appserv\HRDOM01\
psappsrv.cfg]
Stripping Annotations...
Copying [D:\PT\appserv\small.cfx] to [D:\PT_SERVER\8.59\appserv\HRDOM01\
psappsrv.cfx]
Copying Jolt repository file...
Domain created.
Performing load prechecks ...
Loading validation table...
setting DBName=PT858DMO
setting DBType=ORACLE
setting UserId=QEDMO
setting UserPswd=encrypted_password
setting ConnectId=people
setting ConnectPswd=encrypted_password
setting ServerName=
setting Port=7200
setting Port=9020
setting Listener Port=9200
setting Domain ID=TESTSRV2
setting Add to PATH=c:\oracle\product\12.1.0\client_1\bin
New CFG file written with modified Startup parameters
Log Directory entry not found in configuration file.
Setting Log Directory to the default... [PS_SERVDIR\LOGS]
Spawning disabled for server PSAPPSRV.
WARNING: PSSAMSRV is configured with Min instance set to 1. To avoid loss of
service, configure Min instance to atleast 2.
Configuration file successfully created.
CFG setting changes completed, loading configuration...
Domain configuration complete.
Using the Application Server Administration Commands
Use the following syntax to administer an existing application server domain:
psadmin -c command -d appsrv_domain
The appsrv_domain parameter must be the name of an application server domain that you want to administer, for example, HCMDMO.
The valid values of the command parameter are as follows:
Note: The examples in this table include line feeds for readability.
Command |
Example |
Result of the Example |
---|---|---|
start |
|
Starts an application server domain named PSDMO. |
parallelboot |
|
Starts an application server domain named PSDMO, using the parallel boot option. |
configure |
|
Reloads the domain configuration for the PSDMO domain. |
pslist |
|
Displays the processes that have been booted for the PSDMO domain. This includes the system process ID for each process. |
stop |
|
Shuts down the PSDMO application server domain, by using a normal shutdown method. In a normal shutdown, the domain waits for users to complete their tasks and turns away new requests before terminating all of the processes in the domain. |
kill |
|
Shuts down the PSDMO application server domain by using a forced shutdown method. In a forced shutdown, the domain immediately terminates all of the processes in the domain. |
sstatus |
|
Displays the Tuxedo processes and PeopleSoft server processes that are currently running in the PSDMO application server domain. |
cstatus |
|
Displays the currently connected users in the PSDMO application server domain. |
qstatus |
|
Displays status information about the individual queues for each server process in the PSDMO application server domain. |
preload |
|
Preloads the server cache for the PSDMO domain. |
cleanipc |
|
Cleans the IPC resources for the PSDMO domain. |
purge |
|
Purges the cache for the PSDMO domain. |
import |
|
Imports the domain configuration from a specified PS_CFG_HOME location or a specified configuration file. See the following section Using the Application Server Import Commands for examples. |
tmadmin |
Starting a domain:
Monitoring status of a server process:
|
Enables you to access the tmadmin command line by way of the PSADMIN command line. This allows you to incorporate tmadmin commands into scripts, as well as providing more access to them from the command line. This can bring more flexibility and granularity into command line control, such as starting, stopping, or monitoring individual server processes. You can pass any tmadmin command for any domain within the current PS_CFG_HOME. Commands can be issued against running and non-running domains. The exit code will be non-zero if the domain doesn't exist or if the Tuxedo configuration is corrupt or incomplete. The tmadmin interface access applies to application server (-c) and Process Scheduler (-p) domains. |
addmsgsrv |
|
Add a message server named MSGSRV (-s) to the domain PSDMO. Specify PUB, SUB, or BRK as the type (-t). The channels for the server are ch1, ch2, and ch3. |
rmmsgsrv |
|
Remove a message server named MSGSRV (-s) from the domain PSDMO. |
Using the Administration Server Import Commands
Use these commands to import an application server domain configuration:
To import a domain from the location PS_CFG_HOME, use the following command.
Use this command if there is a single domain in PS_CFG_HOME.
psadmin -c import ps_cfg_home_path
To import a domain when PS_CFG_HOME has more than one domain, use the following command.
The imported domain has the same name as the original domain.
psadmin -c import ps_cfg_home_path —d appsrv_domain
To import a domain to a new name, from a multi-domain PS_CFG_HOME, use the following command:
psadmin -c import ps_cfg_home_path —d appsrv_domain —n new_domain_name
To import a domain to a new name, from a multi-domain PS_CFG_HOME.
Specify the path to a template file and use the following command.
psadmin -c import ps_cfg_home_path —d appsrv_domain —n new_domain_name —t template_path
Use a configuration file to import a domain to a new name.
Supply the path and name for psappsrv.cfg for config_file_path.
psadmin -c import config_file_path —n new_domain_name
Use a configuration file to import a domain to a new name.
Specify the path and name for psappsrv.cfg for config_file_path, and specify the path to a template file.
psadmin -c import config_file_path —n new_domain_name —t template_path
For Process Scheduler administration, PSADMIN has two syntax formats — one for creating new Process Scheduler configurations, and the other for administering existing configurations.
Using the Process Scheduler Create Command
Use the following syntax to create a new Process Scheduler configuration:
psadmin -p create -d prcs_domain -t template -ps ps_set [-cfg cfg_set | -cfg_from_file cfg_file_path] [-env env_set] [-s silent]
The PSADMIN create command creates a Process Scheduler configuration file for the specified database, using the specified configuration template.
The template parameter must be the name of a .cfx file located in PS_HOME\appserv\prcs, without the extension. This represents the operating system platform on which you're running PeopleSoft Process Scheduler. For example, to use the template file called windows.cfx on a Windows machine, specify the value windows.
The ps_set parameter is an optional string of startup values which provide initial configuration settings that you would otherwise specify on the PSADMIN Process Scheduler Quick-Configure menu. You must enter the startup string as follows:
In Microsoft Windows, the values must be separated by slashes.
DBNAME/DBTYPE/PRCSSERVER/OPR_ID/OPR_PSWD/DB_CNCT_ID/DB_CNCT_PSWD/SERVER_NAME/LOGOUT_DIR/SQRBIN/ADD_TO_PATH/DBBIN/DOM_CONN_PWD/ENABLE_REMOTE_ADMIN/REMOTE_ADMIN_PORT/REMOTE_ADMIN_USRID/REMOTE_ADMIN_PSWD/{ENCRYPT|NOENCRYPT}/REMOTE_ADMIN_SSL_ENABLED/REMOTE_ADMIN_SSL_KEYSTORE/REMOTE_ADMIN_SSL_KEYSTORE_PWD/REMOTE_ADMIN_SSL_KEYSTORE_TYPE/REMOTE_ADMIN_SSL_TRUSTSTORE/REMOTE_ADMIN_SSL_TRUSTSTORE_PWD/REMOTE_ADMIN_SSL_TRUSTSTORE_TYPE
In UNIX, the values must be separated by commas.
DBNAME,DBTYPE,PRCSSERVER,OPR_ID,OPR_PSWD,DB_CNCT_ID,DB_CNCT_PSWD,SERVER_NAME,LOGOUT_DIR,SQRBIN,ADD_TO_PATH,DOM_CONN_PWD,ENABLE_REMOTE_ADMIN,REMOTE_ADMIN_PORT,REMOTE_ADMIN_USRID,REMOTE_ADMIN_PSWD,{ENCRYPT|NOENCRYPT},REMOTE_ADMIN_SSL_ENABLED,REMOTE_ADMIN_SSL_KEYSTORE,REMOTE_ADMIN_SSL_KEYSTORE_PWD,REMOTE_ADMIN_SSL_KEYSTORE_TYPE,REMOTE_ADMIN_SSL_TRUSTSTORE,REMOTE_ADMIN_SSL_TRUSTSTORE_PWD,REMOTE_ADMIN_SSL_TRUSTSTORE_TYPE
Note: The UNIX syntax does not include the DBBIN setting.
Important! You must enter these
values in the order shown. You can omit required values only by truncating
the string from right to left. For example, you can specify DBNAME/DBTYPE
, but you can't specify DBNAME/LOGOUT_DIR
.
These startup settings all have default values if you omit any of them. The default values are generally the values you provided when setting up your PeopleSoft environment, and are the same as they would initially appear on the PSADMIN Process Scheduler Quick-Configure menu.
Note: Because these PeopleSoft Process Scheduler settings are already documented in the PeopleSoft Process Scheduler product documentation, this section provides only a basic overview of the relationship between the settings on the command line and the equivalent settings on the PSADMIN Process Scheduler Quick-Configure menu.
The following table describes the startup settings:
Startup (ps_set) Setting |
Description |
---|---|
DBNAME |
This is the equivalent of the DBName parameter on the PSADMIN Process Scheduler Quick-Configure menu. Note: If you don't include the ps_set parameter, the value of this setting is the same as the database name that you specify in the command. |
DBTYPE |
This is the equivalent of the DBType parameter on the PSADMIN Process Scheduler Quick-Configure menu. |
PRCSSERVER |
This is the equivalent of the PrcsServer parameter on the PSADMIN Process Scheduler Quick-Configure menu. |
OPR_ID |
This is the equivalent of the UserId parameter on the PSADMIN Process Scheduler Quick-Configure menu. |
OPR_PSWD |
Enter the user password that is associated with the specified user ID. This is the equivalent of the UserPswd parameter on the PSADMIN Process Scheduler Quick-Configure menu. |
CNCT_ID |
This is the equivalent of the ConnectId parameter on the PSADMIN Process Scheduler Quick-Configure menu. |
CNCT_PSWD |
This is the equivalent of the ConnectPswd parameter on the PSADMIN Process Scheduler Quick-Configure menu. |
SERVER_NAME |
(Optional) This is the equivalent of the ServerName parameter on the PSADMIN Process Scheduler Quick-Configure menu. Important! If you want this setting
to be blank, but you can't truncate the string to this point (you
still need to specify a value for LOGOUT_DIR),
you can specify a value of “ |
LOGOUT_DIR |
This is the equivalent of the Log/Output Dir parameter on the PSADMIN Process Scheduler Quick-Configure menu. Note: If this value contains
spaces, it must be in double quotes ( |
SQRBIN |
This is the equivalent of the SQRBIN parameter on the PSADMIN Process Scheduler Quick-Configure menu. Note: If this value contains
spaces, it must be in double quotes ( |
ADD_TO_PATH |
(Optional) This is the equivalent of the AddToPATH parameter on the PSADMIN Process Scheduler Quick-Configure menu. Note: If this value contains
spaces, it must be in double quotes ( |
DBBIN |
(Windows only) This is the equivalent of the DBBIN parameter on the PSADMIN Process Scheduler Quick-Configure menu. Note: If this value contains
spaces, it must be in double quotes ( |
ENCRYPT | NOENCRYPT |
Specify ENCRYPT to encrypt the values of the UserPswd and ConnectPswd parameters in the psprcs.cfg file. If you specify NOENCRYPT , these values appear in clear text in the file. ENCRYPT is the default value. |
ENABLE_REMOTE_ADMIN |
Specify whether to enable embedded JMX agents for PeopleSoft Health Center. Enter 1 to enable remote administration, and 0 to disable remote administration. The default is enabled. When remote administration is enabled, you must also specify values for REMOTE_ADMIN_PORT, REMOTE_ADMIN_USRID, and REMOTE_ADMIN_PSWD. If you do not explicitly disable remote administration, and you do not provide values for REMOTE_ADMIN_PORT, REMOTE_ADMIN_USRID, and REMOTE_ADMIN_PSWD the system will generate values for the user ID and password and place the encrypted values in the PSTOOLS section of the psprcs.cfg file. |
REMOTE_ADMIN_PORT |
Enter a port number to use for remote administration of domain processes. All embedded JMX agents will use the port in the JMX service URL. |
REMOTE_ADMIN_USRID |
Enter a user name for remote administration connections. |
REMOTE_ADMIN_PSWD |
Enter a password for remote administration connections. |
REMOTE_ADMIN_SSL_ENABLED |
Specify whether to enable SSL for JMX agents. Enter 1 to enable SSL, and 0 to disable SSL. The default is disabled. When you enable SSL for JMX agents, you must also specify the location, password, and type for the keystore and truststore. |
REMOTE_ADMIN_SSL_KEYSTORE |
Specify the location of the keystore for SSL. |
REMOTE_ADMIN_SSL_KEYSTORE_PWD |
Specify the password for the SSL keystore. The password must be encrypted with PSCipher. |
REMOTE_ADMIN_SSL_KEYSTORE_TYPE |
Specify the keystore type, PKCS12 or JKS. |
REMOTE_ADMIN_SSL_TRUSTSTORE |
Specify the location of the truststore for SSL. |
REMOTE_ADMIN_SSL_TRUSTSTORE_PWD |
Specify the password for the SSL truststore. The password must be encrypted with PSCipher. |
REMOTE_ADMIN_SSL_TRUSTSTORE_TYPE |
Specify the truststore type, PKCS12 or JKS |
Supply configuration settings in a string with the cfg_set or reference a file with the cfg_file_path.
The cfg_set parameter is an optional string of configuration settings from the psprcs.cfg file. Use the number sign (#) to separate each setting, and surround the string with double quotes if any of the values include spaces. For example:
"[Trace]/TracePPM=1#[Trace]/TracePC=8#[Process Scheduler]/Max Reconnect Attempt=20"
If you include a password that has a number sign (#), you must precede it with a slash (\). For example:
"[Security]/DomainConnectionPwd=password\##[Trace]/TracePPM=1#[Trace]/TracePC=8#[Process Scheduler]/Max Reconnect Attempt=20"
Alternatively, you can supply configuration settings in a file. Specify the path and file name with the parameter cfg_file_path. Use this option rather than cfg_set if you are supplying passwords that contain special characters. Each line specifies a psprcs.cfg file section, a parameter and value, with this format:
[<Section>]/<Param Name>=<Param Value>
[<Section>]/<Param Name>=<Param Value>
For example:
[Trace]/TracePPM=1
[Trace]/TracePC=8
[Process Scheduler]/Max Reconnect Attempt=20
The env_set specifies domain environment settings, having the following format:
ENVAR_NAME1=ENVVAR_VALUE1#ENVAR_NAME2=ENVVAR_VALUE2
For example:
COBPATH=C:\psft\cblpath
Following is an example of the Process Scheduler create command with start settings:
psadmin -p create -d PSHRDB1 -t nt -ps PSHRDB1/MICROSFT/PSNT/
PS/password/people/password/_____/"c:\psft app\log_output"/c:\psfthr\bin\sqr\MSS\binw/
c:\WINNT\SYSTEM32//c:\apps\db\mssql\binn/ENCRYPT
Using the Process Scheduler Administration Commands
Use the following syntax to administer an existing Process Scheduler configuration:
psadmin -p command -d database
The database parameter must be the name of a database that's associated with a PeopleSoft Process Scheduler Server Agent, for example, PSHRDMO.
The valid values of the command parameter are as follows:
Command |
Example |
Result of the Example |
---|---|---|
start |
|
Starts a Process Scheduler. |
stop |
|
Stops a Process Scheduler. |
configure |
|
Configures a Process Scheduler. |
status |
|
Displays the status of a Process Scheduler. |
cleanipc |
|
Cleans the IPC resources for specified domain. |
kill |
|
Kills the domain (similar to forced shutdown). |
The following table lists most PSADMIN command line options for the application server and Process Scheduler server and their return codes. This can provide insight into the return codes displayed when using PSADMIN from the command line or in scripts. In general, PSADMIN returns 0 for success and non-zero when an error occurs.
Note: N/A indicates the command is not applicable to that server.
PSADMIN command line return codes (Table 1 of 4)
Command |
Application Server |
Process Scheduler |
---|---|---|
|
0 |
N/A |
|
0 |
N/A |
|
0 |
N/A |
|
0 |
N/A |
|
-10 |
N/A |
|
0 |
0 |
|
275 |
275 |
|
265 |
1 |
|
0 |
N/A |
|
1 |
N/A |
|
0 |
N/A |
|
N/A |
0 |
|
N/A |
0 |
|
0 |
0 |
|
235 |
235 |
|
0 |
0 |
|
235 |
235 |
|
0 |
N/A |
|
235 |
N/A |
Continuation of the table listing the PSADMIN command line return codes (Table 2 of 4)
Command |
Application Server |
Process Scheduler |
---|---|---|
|
-1 |
N/A |
|
235 |
N/A |
|
0 |
N/A |
|
235 |
N/A |
|
0 |
N/A |
|
235 |
N/A |
|
0 |
0 |
|
235 |
235 |
|
0 |
0 |
|
0 |
0 |
|
0 |
0 |
|
235 |
235 |
|
235 |
235 |
|
235 |
235 |
|
N/A |
0 |
|
N/A |
235 |
|
0 |
0 |
|
235 |
235 |
Continuation of the table listing the PSADMIN command line return codes (Table 3 of 4)
Command |
Application Server |
Process Scheduler |
---|---|---|
|
0 |
0 |
|
235 |
235 |
|
0 |
N/A |
|
235 |
235 |
|
0 |
0 |
|
0 |
0 |
|
0 |
0 |
|
0 |
0 |
|
0 |
0 |
|
0 |
0 |
|
0 |
N/A |
|
0 |
N/A |
|
0 |
N/A |
|
0 |
N/A |
|
-1 |
N/A |
Continuation of the table listing the PSADMIN command line return codes (Table 4 of 4)
Command |
Application Server |
Process Scheduler |
---|---|---|
|
235 |
N/A |
|
0 |
N/A |
|
235 |
N/A |
|
25 |
N/A |
PreloadFileCache not set in PSAPPSRV.CFG. |
-1 |
N/A |
PreloadFileCache set in PSAPPSRV.CFG but not in database. |
1 |
N/A |
PreloadFileCache set in PSAPPSRV.CFG and in database. |
0 |
N/A |
|
235 |
N/A |
Domain is not started. |
1 |
0 |
|
0 |
0 |
Domain is not started. |
0 |
0 |
|
235 |
235 |
|
0 |
235 |
|
0 |
235 |