當使用「建立設定檔」精靈(互動或無聲自動方式)初次建立或擴增設定檔時, 會在日誌檔中寫入建立或擴增設定檔的指令行版本。您可以從日誌檔擷取這個指令行, 並加以修改,然後用它來建立或擴增其他的設定檔。
所擷取之用來建立設定檔的指令行,將含有 -create 參數(通常採 manageprofiles -create 格式)。所擷取之用來擴增設定檔的指令行,將含有 -augment 參數(通常採 manageprofiles -augment 格式)。請勿在指令行中切換這些參數。例如, 請勿用 -create 來替代 -augment。產生的 Script 將無法運作, 這是因為其他的參數和引數將不正確。
以下是所擷取(未修改)的指令行,用以建立新設定檔。在本例中, 如同 -create 參數所指示,此指令用來建立新設定檔:
(Nov 3, 2005 9:24:08 AM), Install, com.ibm.ws.install.wbiserver.ismp.actions. CalculateManagedProfileInvocationAction, msg1, CAPTURED_COMMAND_LINE: /opt/o0544.1 2/bin/manageprofiles.sh -create -profileName "ESB01" -profilePath "/opt/o054 4.12/profiles/ESB01" -templatePath "/opt/o0544.12/profileTemplates/default. wbiserver" -federateLater "true" -hostName "eexfvt99.rchland.ibm.com" -nodeName "eexfvt99Node28" -cellName "eexfvt99Node26Cell" -dmgrHost "localhost" -dmgrP ort "8879" -OS_NAME "Linux" -winserviceCheck "true" -winserviceAccountType " localsystem" -winserviceUserName "root" -winservicePassword "MASKED_PARAMETER_ VALUE" -winserviceStartupType "manual" -dbJDBCClasspath "null" -dbType "CLOUD SCAPE" -ceiSampleJmsUser "root" -ceiSampleJmsPwd "MASKED_PARAMETER_VALUE" -cei SampleServerName "server1" -ceiDbProduct "CLOUDSCAPE_V51_1" -ceiDbName "" -ce iDbUser "" -ceiDbPwd "MASKED_PARAMETER_VALUE" -ceiDbSysUser "" -ceiDbSysPwd "MASKED_PARAMETER_VALUE" -ceiDbJdbcDriverClasspath "" -ceiDbJdbcDriverType "" -ceiDbServerName "" -ceiDbServerPort "" -ceiDbNodeName "" -ceiDbExecuteScript s "" -configureScaSecurity "true" -scaSecurityUserId "root" -scaSecurityPassword "MASKED_PARAMETER_VALUE"
/opt/o0544.1 2/bin/manageprofiles.sh -create -profileName "myProfile" -profilePath "/opt/o054 4.12/profiles/myProfile" -templatePath "/opt/o0544.12/profileTemplates/default. wbiserver" -federateLater "true" -hostName "eexfvt99.rchland.ibm.com" -nodeName "myNodeName" -cellName "myCellName" -dmgrHost "localhost" -dmgrPort "8879" -OS_NAME "Linux" -winserviceCheck "true" -winserviceAccountType " localsystem" -winserviceUserName "root" -winservicePassword "rootPassword" -winserviceStartupType "manual" -dbJDBCClasspath "null" -dbType "CLOUD SCAPE" -ceiSampleJmsUser "root" -ceiSampleJmsPwd "myRootPwd" -cei SampleServerName "server1" -ceiDbProduct "CLOUDSCAPE_V51_1" -ceiDbName "" -ce iDbUser "" -ceiDbPwd "myPassword" -ceiDbSysUser "" -ceiDbSysPwd "myPassword" -ceiDbJdbcDriverClasspath "" -ceiDbJdbcDriverType "" -ceiDbServerName "" -ceiDbServerPort "" -ceiDbNodeName "" -ceiDbExecuteScript s "" -configureScaSecurity "true" -scaSecurityUserId "root" -scaSecurityPassword "myRootPwd"
/opt/IBM/WebSphere/ESB/bin>myCommandline.sh INSTCONFSUCCESS: 此時設定檔已存在。 INSTCONFSUCCESS: 設定檔擴增已順利完成。 INSTCONFSUCCESS: 設定檔擴增已順利完成。 /opt/IBM/WebSphere/ESB/bin>
C:\Program Files\IBM\WebSphere\ESB\bin>myCommandline.bat INSTCONFSUCCESS: 此時設定檔已存在。 INSTCONFSUCCESS: 設定檔擴增已順利完成。 INSTCONFSUCCESS: 設定檔擴增已順利完成。 C:\Program Files\IBM\WebSphere\ESB\bin>