14 WAS迁移工具使用说明V1.17


 

 

AdminTask.setJVMProperties(Server, [“-genericJvmArguments”, “”” , “-initialHeapSize”, “0” , “-classpath”, “{}” , “-maximumHeapSize”, “0” ])

 


 

Cell=AdminConfig.getid(‘/Cell:’ + AdminControl.getCell() + ‘/’)

Node=AdminConfig.getid(‘/Cell:’ + AdminControl.getCell() + ‘/Node:’ + AdminControl.getNode() + ‘/’)

Server=AdminConfig.getid(‘/Cell:’ + AdminControl.getCell() + ‘/Node:’ + AdminControl.getNode() + ‘/Server:server1’)

Server=AdminConfig.getid(‘/Cell:’ + AdminControl.getCell() + ‘/Node:’ + AdminControl.getNode() + ‘/Server:server1’)

Node=AdminConfig.getid(‘/Cell:’ + AdminControl.getCell() + ‘/Node:’ + AdminControl.getNode() + ‘/’)

Cell=AdminConfig.getid(‘/Cell:’ + AdminControl.getCell() + ‘/’)

NodeName=AdminControl.getNode()

 

print ‘Starting Creating JVM Properties’

AdminTask.setJVMProperties(Server, [“-genericJvmArguments”, “”” , “-initialHeapSize”, “0” , “-classpath”, “{}” , “-maximumHeapSize”, “0” ])

AdminConfigVar_8=AdminConfig.list(‘JavaVirtualMachine’, Server)

systemPropertiesAttr=[]

systemPropertiesAttr.append([[‘value’, ‘true’], [‘name’, ‘java.awt.headless’]])

systemPropertiesAttr.append([[‘value’, ‘off’], [‘name’, ‘com.ibm.security.jgss.debug’]])

systemPropertiesAttr.append([[‘value’, ‘off’], [‘name’, ‘com.ibm.security.krb5.Krb5Debug’]])

AdminConfig.modify(AdminConfigVar_8, [[‘systemProperties’, systemPropertiesAttr]])

AdminTask.setJVMProperties(Server, [“-genericJvmArguments”, “‘-Djava.awt.headless=true'” , “-initialHeapSize”, “0” , “-classpath”, “{}” , “-maximumHeapSize”, “0” ])

AdminConfigVar_11=AdminConfig.list(‘JavaVirtualMachine’, Server)

systemPropertiesAttr=[]

systemPropertiesAttr.append([[‘value’, ‘off’], [‘name’, ‘com.ibm.security.jgss.debug’]])

systemPropertiesAttr.append([[‘value’, ‘off’], [‘name’, ‘com.ibm.security.krb5.Krb5Debug’]])

AdminConfig.modify(AdminConfigVar_11, [[‘systemProperties’, systemPropertiesAttr]])

AdminTask.setJVMProperties(Server, [“-genericJvmArguments”, “‘-Djava.awt.headless=true'” , “-initialHeapSize”, “0” , “-classpath”, “{}” , “-maximumHeapSize”, “0” ])

AdminConfigVar_14=AdminConfig.list(‘JavaVirtualMachine’, Server)

systemPropertiesAttr=[]

systemPropertiesAttr.append([[‘value’, ‘off’], [‘name’, ‘com.ibm.security.jgss.debug’]])

systemPropertiesAttr.append([[‘value’, ‘off’], [‘name’, ‘com.ibm.security.krb5.Krb5Debug’]])

AdminConfig.modify(AdminConfigVar_14, [[‘systemProperties’, systemPropertiesAttr]])

AdminTask.setJVMProperties(Server, [“-genericJvmArguments”, “”” , “-initialHeapSize”, “0” , “-classpath”, “{}” , “-maximumHeapSize”, “0” ])

AdminConfigVar_17=AdminConfig.list(‘JavaVirtualMachine’, Server)

systemPropertiesAttr=[]

systemPropertiesAttr.append([[‘value’, ‘off’], [‘name’, ‘com.ibm.security.jgss.debug’]])

systemPropertiesAttr.append([[‘value’, ‘off’], [‘name’, ‘com.ibm.security.krb5.Krb5Debug’]])

AdminConfig.modify(AdminConfigVar_17, [[‘systemProperties’, systemPropertiesAttr]])

 

print ‘Starting Creating JDBC Providers’

AdminConfigVar_19=AdminConfig.create(‘JDBCProvider’, Server, [[‘name’, ‘OTiSDataSource’], [‘providerType’, ‘User-defined JDBC Provider’], [‘implementationClassName’, ‘org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource’], [‘description’, ”], [‘xa’, ‘false’], [‘classpath’, ‘${WAS_INSTALL_ROOT}/derby/lib/derby.jar’]])

AdminConfigVar_20=AdminTask.createDatasource(AdminConfigVar_19, [“-name”, “OTiSDataSource” , “-jndiName”, “OTiSDataSource” , “-dataStoreHelperClassName”, “com.ibm.websphere.rsadapter.DerbyDataStoreHelper” ])

AdminConfigVar_21=AdminConfig.showAttribute(AdminConfigVar_20, ‘propertySet’)

AdminConfig.create(‘J2EEResourceProperty’, AdminConfigVar_21, [[‘type’, ‘java.lang.String’], [‘value’, ‘Data source template’], [‘name’, ‘description’]])

AdminConfig.create(‘J2EEResourceProperty’, AdminConfigVar_21, [[‘type’, ‘java.lang.String’], [‘value’, ‘${USER_INSTALL_ROOT}/OTiS’], [‘name’, ‘databaseName’]])

AdminConfig.create(‘J2EEResourceProperty’, AdminConfigVar_21, [[‘type’, ‘java.lang.String’], [‘value’, ‘OTiSDataSource’], [‘name’, ‘name’]])

AdminConfigVar_22=AdminConfig.showAttribute(AdminConfigVar_20, ‘connectionPool’)

AdminConfig.modify(AdminConfigVar_22, [[‘stuckTimerTime’, ‘0’], [‘purgePolicy’, ‘EntirePool’], [‘testConnectionInterval’, ‘0’], [‘maxConnections’, ’10’], [‘unusedTimeout’, ‘1800’], [‘freePoolDistributionTableSize’, ‘0’], [‘numberOfFreePoolPartitions’, ‘0’], [‘numberOfSharedPoolPartitions’, ‘0’], [‘stuckTime’, ‘0’], [‘surgeCreationInterval’, ‘0’], [‘numberOfUnsharedPoolPartitions’, ‘0’], [‘stuckThreshold’, ‘0’], [‘connectionTimeout’, ‘180’], [‘testConnection’, ‘false’], [‘reapTime’, ‘180’], [‘surgeThreshold’, ‘-1’], [‘agedTimeout’, ‘0’], [‘minConnections’, ‘1’]])

 

print ‘Starting Creating websphereVariables’

varSubstitutions =AdminConfig.list(“VariableSubstitutionEntry”,Cell).split(java.lang.System.getProperty(“line.separator”))

for varSubst in varSubstitutions:

    getVarName = AdminConfig.showAttribute(varSubst, “symbolicName”)

    if getVarName == “DERBY_JDBC_DRIVER_PATH”:

        AdminConfig.modify(varSubst, [[‘value’, ‘${WAS_INSTALL_ROOT}/derby/lib’]])

    if getVarName == “WAS_INSTALL_ROOT”:

        AdminConfig.modify(varSubst, [[‘value’, ‘!{WAS_INSTALL_ROOT}’]])

 

print ‘Starting Creating Mail Providers’

AdminConfig.save()

 

 

 

 

8.    附录

 

 

 


 

以下文章点击率最高

Loading…


发表评论

电子邮件地址不会被公开。 必填项已用*标注