プロファイル作成ウィザードを (対話式に、またはサイレントに) 使用して、最初にプロファイルを作成または拡張した場合は、プロファイル作成または拡張のコマンド行バージョンがログ・ファイルに書き込まれます。このコマンド行をログ・ファイルから抽出し、変更して使用すれば、他のプロファイルを作成または拡張できます。
プロファイルの作成に使用されたコマンド行が取り込まれると、そのコマンド行にはパラメーター -create が含まれます (通常は manageprofiles -create という形式です)。プロファイルの拡張に使用されたコマンド行が取り込まれると、そのコマンド行にはパラメーター -augment が含まれます (通常は manageprofiles -augment という形式です)。このコマンド行の、これらのパラメーターは切り替えないでください。例えば、-create を -augment で置き換えないでください。 他のパラメーターおよび引数が正しくないので、生成されるスクリプトは動作しません。
以下に、新規プロファイルを作成するために取り込まれた (未変更の) コマンド行の例を示します。この場合、 このコマンドは、-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: The profile now exists. INSTCONFSUCCESS: Profile augmentation succeeded. INSTCONFSUCCESS: Profile augmentation succeeded. /opt/IBM/WebSphere/ESB/bin>
C:¥Program Files¥IBM¥WebSphere¥ESB¥bin>myCommandline.bat INSTCONFSUCCESS: The profile now exists. INSTCONFSUCCESS: Profile augmentation succeeded. INSTCONFSUCCESS: Profile augmentation succeeded. C:¥Program Files¥IBM¥WebSphere¥ESB¥bin>