To automate the startup of the Admin and managed server using WLST:
<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.
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:
<WebLogic_Home>\user_projects\domains\<P6_EPPM_Domain>
<P6_EPPM_Home>\scripts
and then create a text file called start_primavera.sh.export CLASSPATH=
<weblogic_home>/wlserver/server/bin/setWLSEnv.sh
<Java_Home>/bin/java weblogic.WLST <P6_EPPM_Home>/scripts/start_primavera.py
Where:
Using the WebLogic Scripting Tool on Linux or UNIX
Creating a Configuration and Key File
Associating the Administration Server with Machines on a P6 EPPM Domain
Configure a boot.properties File for the Administration and Managed Servers
Using WebLogic Scripting to Stop the WebLogic Domain for P6 EPPM
Daemonizing the Node Manager for Primavera Applications
Starting the Node Manager with WebLogic
Legal Notices
Copyright © 2016,
Oracle and/or its affiliates. All rights reserved.
Last Published Monday, October 24, 2016