To automate the startup of the Admin and managed server using WLST:
- Browse to
<P6_EPPM_Home>\scripts
and then create a text file called start_primavera.py.Note: <P6_EPPM_Home> is the P6 EPPM home directory that was set during installation.
- Edit start_primavera.py and then add the following lines:
nmConnect(userConfigFile='<P6_EPPM_Home>/scripts/primaveraConfig.secure',userKeyFile='<P6_EPPM_Home>/scripts/primaveraKeyfile.secure',host='<Node_Manager_Hostname>',port='5556',domainName='<P6_EPPM_Domain>',domainDir='<Domain_Path>',nmType='ssl')
arg = "Arguments=\" -server -Xms128m -Xmx512m -XX:MaxPermSize=256m \""
prps = makePropertiesObject (arg)
nmStart('AdminServer',props=prps)
connect(userConfigFile='<P6_EPPM_Home>/scripts/primaveraConfig.secure',userKeyFile='<P6_EPPM_Home>/scripts/primaveraKeyfile.secure',url='t3://<Admin_Server_Hostname>:<Admin_Server_Port>')
start('<Managed_Server_Name>')
#If multiple managed servers exist, repeat the previous line for each managed server.
Where:
- <P6_EPPM_Home> is the P6 EPPM home directory that was set during installation.
- <Node_Manager_Hostname> is the name of the host where the Node Manager is running.
- <Admin_Server_Hostname> is the name of the host where the administration server was installed.
- <Admin_Server_Port> is the port number of administration server. The default is 7001.
- <P6_EPPM_Domain> is the WebLogic domain for P6 EPPM that was set during configuration.
- <Domain_Path> is the full path to the P6 EPPM domain. For example,
<WebLogic_Home>\user_projects\domains\<P6_EPPM_Domain>
- <Managed_Server_Name> is the logical name of the managed server. The default managed server names for P6 EPPM are P6, P6IntegrationAPI, p6procloudconnect, P6WebServices, and TeamMember.
- Save and close the file.
- Browse to
<P6_EPPM_Home>\scripts
and then create a text file called start_primavera.sh. - Edit start_primavera.sh and then add the following lines:
export CLASSPATH=
<weblogic_home>/wlserver/server/bin/setWLSEnv.sh
<Java_Home>/bin/java weblogic.WLST <P6_EPPM_Home>/scripts/start_primavera.py
Where:
- <WebLogic_Home> is the WebLogic home directory. The default is Oracle/Middleware/Oracle_Home.
- <Java_Home> is the path to the JDK that is used by WebLogic.
- <P6_EPPM_Home> is the P6 EPPM home directory that was set during installation.
- Save and close the file.