Using WebLogic Scripting to Start the P6 EPPM WebLogic Domain

To automate the startup of the Admin and managed server using WLST:

  1. 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.

  2. 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.
  3. Save and close the file.
  4. Browse to <P6_EPPM_Home>\scripts and then create a text file called start_primavera.sh.
  5. 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.
  6. Save and close the file.

Related Topics

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

Setting the Node Manager as a Windows Service



Legal Notices | Your Privacy Rights
Copyright © 2022

Last Published Wednesday, November 30, 2022