To stop the WebLogic domain with WebLogic Scripting:
<P6_EPPM_Home>\scripts
and then create a text file called stop_primavera.py.Note: <P6_EPPM_Home> is the P6 home directory that was set during installation.
print('Stopping Primavera servers. This will not stop the Node Manager because it may be needed for other servers.')
scripts_dir='<P6_EPPM_Home>/scripts'
adminserver_host='<Admin_Server_Hostname>'
adminserver_port='<Admin_Server_Port>'
<Managed_Server_Variable>='<Managed_Server_Name>'
# Create a variable, similar to the one above, for each managed server in the P6 EPPM domain.
connect(userConfigFile=scripts_dir+'/primaveraConfig.secure',userKeyFile=scripts_dir+'/primaveraKeyfile.secure',url='t3://'+adminserver_host+':'+adminserver_port)
# The following section of the script tries to shutdown a managed server. Copy and modify this section of the script for each managed server in the P6 EPPM domain.
try:
print('PRM-Shutting down the managed server for <Managed_Server_Variable>')
shutdown(<Managed_Server_Variable>,'Server','true',100,'true')
except:
print('PRM-Failed to stop managed server: ' + <Managed_Server_Variable>)
# The following section of the script tries to shutdown the administration server.
try:
print('PRM-Shutting down <Admin_Server_Name>.')
shutdown('<Admin_Server_Name>','Server','true',100,'true')
except:
print('PRM-Failed to stop <Admin_Server_Name>.')
print('PRM-Shutdown Complete')
exit()
Notes:
<P6_EPPM_Home>\scripts
and then create a text file called stop_primavera.sh.export CLASSPATH=
<WebLogic_Home>/wlserver/server/bin/setWLSEnv.sh <Java_Home>/bin/java weblogic.WLST <P6_EPPM_Home>/scripts/stop_primavera.py
Notes:
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 Start the P6 EPPM WebLogic Domain
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