Scripts to setup WAS Profile for MDM v10.1. This is done by the DEST tool, but is useful to have the scripts for autromation purposes.
a)
Commands to delete/create the Profile if not there/want to test from fresh:
manageprofiles.bat -delete -profileName AppSrv01
rmdir C:\IBM\WebSphere\AppServer\profiles\AppSrv01
manageprofiles.bat -create -profileName AppSrv01 -profilePath C:\IBM\WebSphere\AppServer\profiles\AppSrv01 -templatePath C:\IBM\WebSphere\AppServer\profileTemplates\default
b)
command to setup the WAS Profile with MDM artifacts ie SIB, JDBC, Qs etc
C:\IBM\WEBSPH~1\APPSER~1\java\jre\bin\java.exe -classpath C:\IBM\SDP\plugins\MDMDevEnvTooling\autotooling.jar com.ibm.mdm.setup.tooling.utils.ConfigWASStarter C:\IBM\SDP\plugins db2admin db2admin MDM101 C:\IBM\SQLLIB\java C:\WORKSP~1 DB2 AppSrv01 IBM-b65cd2b4faaNode01Cell IBM-b65cd2b4faaNode01 C:\IBM\WEBSPH~1\APPSER~1 ibm-b65cd2b4faa true null C:\workspaceMDM101\.metadata\.plugins\com.ibm.mdm.config.external.automation null null C:\WORKSP~1\.metadata\.plugins\com.ibm.mdm.config.external.automation\config_WAS_2014-04-30-15-08-59.log custSetupAppServer.py custSetupClasspath.py MDMServer 1010 1 50000 server1
Not tested, but this is Oracle equivalent
C:\<WAS home>\java\jre\bin\java.exe -classpath C:\IBM\SDP\plugins\MDMDevEnvTooling\autotooling.jar com.ibm.mdm.setup.tooling.utils.ConfigWASStarter C:\IBM\SDP\plugins <ora user> <ora password> MDM101 <ORA PATH TO JDBC> C:\WORKSP~1 ORACLE AppSrv01 <localhost name>Node01Cell <localhost name>Node01 C:\IBM\WEBSPH~1\APPSER~1 <localhost name> true null C:\<workspace home>\.metadata\.plugins\com.ibm.mdm.config.external.automation null null C:\WORKSP~1\.metadata\.plugins\com.ibm.mdm.config.external.automation\config_WAS_2014-04-30-15-08-59.log custSetupAppServer.py custSetupClasspath.py MDMServer 1010 1 <ORA port #> server1
c)
command to deploy MDM.ear file to WAS Profile
C:\IBM\SDP\plugins\MDMDevEnvTooling\controller\deploy.bat AppSrv01 IBM-b65cd2b4faaNode01Cell IBM-b65cd2b4faaNode01 C:\IBM\WEBSPH~1\APPSER~1 true C:\IBM\SDP\plugins C:\Users\IBM_AD~1\AppData\Local\Temp\DEST\ear\MDM.ear MDMServer C:\workspaceMDM101\.metadata\.plugins\com.ibm.mdm.config.external.automation\scripts\custDeployApp.py C:\workspaceMDM101\.metadata\.plugins\com.ibm.mdm.config.external.automation\scripts\uninstallApplication.py DB2UDBNT_V82_1 server1
Commands to delete/create the Profile if not there/want to test from fresh:
manageprofiles.bat -delete -profileName AppSrv01
rmdir C:\IBM\WebSphere\AppServer\profiles\AppSrv01
manageprofiles.bat -create -profileName AppSrv01 -profilePath C:\IBM\WebSphere\AppServer\profiles\AppSrv01 -templatePath C:\IBM\WebSphere\AppServer\profileTemplates\default
b)
command to setup the WAS Profile with MDM artifacts ie SIB, JDBC, Qs etc
C:\IBM\WEBSPH~1\APPSER~1\java\jre\bin\java.exe -classpath C:\IBM\SDP\plugins\MDMDevEnvTooling\autotooling.jar com.ibm.mdm.setup.tooling.utils.ConfigWASStarter C:\IBM\SDP\plugins db2admin db2admin MDM101 C:\IBM\SQLLIB\java C:\WORKSP~1 DB2 AppSrv01 IBM-b65cd2b4faaNode01Cell IBM-b65cd2b4faaNode01 C:\IBM\WEBSPH~1\APPSER~1 ibm-b65cd2b4faa true null C:\workspaceMDM101\.metadata\.plugins\com.ibm.mdm.config.external.automation null null C:\WORKSP~1\.metadata\.plugins\com.ibm.mdm.config.external.automation\config_WAS_2014-04-30-15-08-59.log custSetupAppServer.py custSetupClasspath.py MDMServer 1010 1 50000 server1
Not tested, but this is Oracle equivalent
C:\<WAS home>\java\jre\bin\java.exe -classpath C:\IBM\SDP\plugins\MDMDevEnvTooling\autotooling.jar com.ibm.mdm.setup.tooling.utils.ConfigWASStarter C:\IBM\SDP\plugins <ora user> <ora password> MDM101 <ORA PATH TO JDBC> C:\WORKSP~1 ORACLE AppSrv01 <localhost name>Node01Cell <localhost name>Node01 C:\IBM\WEBSPH~1\APPSER~1 <localhost name> true null C:\<workspace home>\.metadata\.plugins\com.ibm.mdm.config.external.automation null null C:\WORKSP~1\.metadata\.plugins\com.ibm.mdm.config.external.automation\config_WAS_2014-04-30-15-08-59.log custSetupAppServer.py custSetupClasspath.py MDMServer 1010 1 <ORA port #> server1
c)
command to deploy MDM.ear file to WAS Profile
C:\IBM\SDP\plugins\MDMDevEnvTooling\controller\deploy.bat AppSrv01 IBM-b65cd2b4faaNode01Cell IBM-b65cd2b4faaNode01 C:\IBM\WEBSPH~1\APPSER~1 true C:\IBM\SDP\plugins C:\Users\IBM_AD~1\AppData\Local\Temp\DEST\ear\MDM.ear MDMServer C:\workspaceMDM101\.metadata\.plugins\com.ibm.mdm.config.external.automation\scripts\custDeployApp.py C:\workspaceMDM101\.metadata\.plugins\com.ibm.mdm.config.external.automation\scripts\uninstallApplication.py DB2UDBNT_V82_1 server1
d)
To set WAS Variable for Oracle path:
cd C:\IBM\WebSphere\AppServer\bin
wsadmin -f setWASVariable.py
File setWASVariable.py:
import sys
global AdminConfig
global AdminTask
#AdminTask.setVariable('[ -scope Server=server1 -variableName DB2_JDBC_DRIVER_PATH -variableValue c:\\ibm\\sqllib1]')
AdminTask.setVariable('[ -scope Server=server1 -variableName ORACLE_JDBC_DRIVER_PATH -variableValue c:\\oracle\\appl1]')
AdminConfig.save()
print ""
print " Done setting up environment."
print ""
To set WAS Variable for Oracle path:
cd C:\IBM\WebSphere\AppServer\bin
wsadmin -f setWASVariable.py
File setWASVariable.py:
import sys
global AdminConfig
global AdminTask
#AdminTask.setVariable('[ -scope Server=server1 -variableName DB2_JDBC_DRIVER_PATH -variableValue c:\\ibm\\sqllib1]')
AdminTask.setVariable('[ -scope Server=server1 -variableName ORACLE_JDBC_DRIVER_PATH -variableValue c:\\oracle\\appl1]')
AdminConfig.save()
print ""
print " Done setting up environment."
print ""
No comments:
Post a Comment