-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetPython.py
19 lines (9 loc) · 4.2 KB
/
setPython.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
AdminConfig.modify('(cells/DefaultCell02/nodes/DefaultNode02/servers/server1|server.xml#JavaVirtualMachine_1183122130078)', '[[debugMode "true"]]')
AdminConfig.create('DebugService', AdminConfig.getid('/Cell:DefaultCell02/Node:DefaultNode02/Server:server1/'), '[[BSFDebugPort "4444"] [enable "true"] [jvmDebugPort "7777"] [jvmDebugArgs "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777"] [debugClassFilters ""] [BSFLoggingLevel "0"]]')
AdminConfig.modify('(cells/DefaultCell02/nodes/DefaultNode02/servers/server1|server.xml#DebugService_1537819577510)', '[[BSFDebugPort "4444"] [enable "true"] [jvmDebugPort "7777"] [jvmDebugArgs "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777"] [debugClassFilters "de.*"] [BSFLoggingLevel "0"]]')
AdminApp.install('C:/fakepath/MeinService-1.0-SNAPSHOT.war', '[ -usedefaultbindings -defaultbinding.virtual.host default_host -defaultbinding.force -defaultbinding.ee.defaults -preCompileJSPs -distributeApp -nouseMetaDataFromBinary -nodeployejb -appname MeinService-1_0-SNAPSHOT_war -createMBeansForResources -reloadEnabled -deployws -validateinstall warn -processEmbeddedConfig -filepermission .*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType SERVER_SIDE -nouseAutoLink -enableClientModule -clientMode isolated -novalidateSchema -contextroot /poc -MapModulesToServers [[ MeinService-1.0-SNAPSHOT.war MeinService-1.0-SNAPSHOT.war,WEB-INF/web.xml WebSphere:cell=DefaultCell02,node=DefaultNode02,server=server1 ]] -CtxRootForWebMod [[ MeinService-1.0-SNAPSHOT.war MeinService-1.0-SNAPSHOT.war,WEB-INF/web.xml /poc ]]]' )
AdminControl.invoke('WebSphere:name=ApplicationManager,process=server1,platform=proxy,node=DefaultNode02,version=9.0.0.8,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=DefaultCell02,spec=1.0', 'startApplication', '[MeinService-1_0-SNAPSHOT_war]')
AdminControl.invoke('WebSphere:name=ApplicationManager,process=server1,platform=proxy,node=DefaultNode02,version=9.0.0.8,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=DefaultCell02,spec=1.0', 'stopApplication', '[MeinService-1_0-SNAPSHOT_war]')
AdminApp.uninstall('MeinService-1_0-SNAPSHOT_war')
AdminApp.install('C:/fakepath/MeinService-1.0-SNAPSHOT.war', '[ -usedefaultbindings -defaultbinding.virtual.host default_host -defaultbinding.force -defaultbinding.ee.defaults -preCompileJSPs -distributeApp -nouseMetaDataFromBinary -deployejb -appname MeinService-1_0-SNAPSHOT_war -createMBeansForResources -reloadEnabled -reloadInterval 10 -deployws -validateinstall warn -processEmbeddedConfig -filepermission .*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType SERVER_SIDE -useAutoLink -noenableClientModule -clientMode isolated -novalidateSchema -contextroot /poc -MapModulesToServers [[ MeinService-1.0-SNAPSHOT.war MeinService-1.0-SNAPSHOT.war,WEB-INF/web.xml WebSphere:cell=DefaultCell02,node=DefaultNode02,server=server1 ]] -MetadataCompleteForModules [[ MeinService-1.0-SNAPSHOT.war MeinService-1.0-SNAPSHOT.war,WEB-INF/web.xml true ]] -CtxRootForWebMod [[ MeinService-1.0-SNAPSHOT.war MeinService-1.0-SNAPSHOT.war,WEB-INF/web.xml /poc ]]]' )
AdminApp.update('MeinService-1_0-SNAPSHOT_war', 'app', '[ -operation update -contents C:/fakepath/MeinService-1.0-SNAPSHOT.war -usedefaultbindings -defaultbinding.virtual.host default_host -defaultbinding.force -defaultbinding.ee.defaults -preCompileJSPs -installed.ear.destination $(APP_INSTALL_ROOT)/DefaultCell02 -distributeApp -useMetaDataFromBinary -deployejb -createMBeansForResources -reloadEnabled -reloadInterval 10 -deployws -validateinstall warn -noprocessEmbeddedConfig -filepermission .*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType SERVER_SIDE -useAutoLink -enableClientModule -clientMode isolated -novalidateSchema -contextroot /poc -update.ignore.old -MapModulesToServers [[ MeinService-1.0-SNAPSHOT.war MeinService-1.0-SNAPSHOT.war,WEB-INF/web.xml WebSphere:cell=DefaultCell02,node=DefaultNode02,server=server1 ]] -CtxRootForWebMod [[ MeinService-1.0-SNAPSHOT.war MeinService-1.0-SNAPSHOT.war,WEB-INF/web.xml /poc ]]]' )