Ao utilizar o Assistente de Perfil (de forma interativa ou silenciosa) para criar um perfil inicialmente, uma versão da linha de comandos da criação do perfil é gravada em um arquivo de log. É possível extrair essa linha de comandos do arquivo de log, modificá-la e utilizá-la para criar outros perfis.
Aqui está um exemplo de uma linha de comandos capturada (não modificada) para criar um novo perfil, conforme indicado pelo parâmetro -create:
(12 de outubro de 2006 9:42:58 AM), Install, com.ibm.ws.install.wbiserver.ismp.actions. CalculateManagedProfileInvocationAction, msg1, CAPTURED_COMMAND_LINE_DESC: A linha a seguir é a linha de comandos equivalente à sua execução do Assistente de Perfil. A diferença dela é que as portas (-portsFile) que você selecionou não estão incluídas. Além disso, esta linha de comandos não será federada ao perfil. Os valores de parâmetros que talvez você queria alterar são profileName, profilePath, nodeName, cellName, hostName, dmgrHost, dmgrPort e qualquer valor de senha que tenha sido mascarado. (12 de outubro de 2006 9:42:58 AM), Install, com.ibm.ws.install.wbiserver.ismp.actions. CalculateManagedProfileInvocationAction, msg1, CAPTURED_COMMAND_LINE: "/BUILD1/ProcServer01/bin/manageprofiles.sh" -create -profileName "ProcSrv02" -profilePath "/BUILD1/ProcServer01/profiles/ProcSrv02" -templatePath "/BUILD1/ProcServer01/profileTemplates/default.wbiserver" -hostName "mohawkvalley.site" -nodeName "mohawkvalleyNode09" -cellName "mohawkvalleyNode16Cell" -dmgrHost "localhost" -dmgrPort "8879" -OS_NAME "Linux" -winserviceCheck "true" -winserviceAccountType "localsystem" -winserviceUserName "root" -winservicePassword "MASKED_PARAMETER_VALUE" -winserviceStartupType "manual" -dbJDBCClasspath "null" -dbType "CLOUDSCAPE" -ceiSampleJmsUser "root" -ceiSampleJmsPwd "MASKED_PARAMETER_VALUE" -ceiSampleServerName "server1" -ceiDbProduct "CLOUDSCAPE_V51_1" -ceiDbName "" -ceiDbUser "" -ceiDbPwd "MASKED_PARAMETER_VALUE" -ceiDbSysUser "" -ceiDbSysPwd "MASKED_PARAMETER_VALUE" -ceiDbJdbcDriverClasspath "" -ceiDbJdbcDriverType "" -ceiDbServerName "" -ceiDbServerPort "" -ceiDbStorageGroup "" -ceiDbNodeName "" -ceiDbConnectionLocation "" -ceiDbExecuteScripts "" -configureScaSecurity "true" -scaSecurityUserId "root" -scaSecurityPassword "MASKED_PARAMETER_VALUE" -bpcadminUsers "root" -bpcmqUser "root" -bpcmqPwd "MASKED_PARAMETER_VALUE" -dbName "WPRCSDB01" -dbLocation "" -dbUserId "" -dbPassword "MASKED_PARAMETER_VALUE" -dbServerPort "null" -dbHostName "localhost" -dbInstance "ol_" -dbCreateNew "true" -dbDelayConfig "false" -dbStorageGroup "" -dbConnectionLocation "" -configureAppScheduler "true" -appSchedulerServer "server1" (Oct 12, 2006 9:42:58 AM), Install, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFSUCCESS
/BUILD1/ProcServer01/bin/manageprofiles.sh -create -profileName "ProcSrv02" -profilePath "/BUILD1/ProcServer01/profiles/ProcSrv02" -templatePath "/BUILD1/ProcServer01/profileTemplates/default.wbiserver" -hostName "mohawkvalley.site" -nodeName "mohawkvalleyNode09" -cellName "mohawkvalleyNode16Cell" -dmgrHost "localhost" -dmgrPort "8879" -OS_NAME "Linux" -winserviceCheck "true" -winserviceAccountType "localsystem" -winserviceUserName "root" -winservicePassword "MASKED_PARAMETER_VALUE" -winserviceStartupType "manual" -dbJDBCClasspath "null" -dbType "CLOUDSCAPE" -ceiSampleJmsUser "root" -ceiSampleJmsPwd "MASKED_PARAMETER_VALUE" -ceiSampleServerName "server1" -ceiDbProduct "CLOUDSCAPE_V51_1" -ceiDbName "" -ceiDbUser "" -ceiDbPwd "MASKED_PARAMETER_VALUE" -ceiDbSysUser "" -ceiDbSysPwd "MASKED_PARAMETER_VALUE" -ceiDbJdbcDriverClasspath "" -ceiDbJdbcDriverType "" -ceiDbServerName "" -ceiDbServerPort "" -ceiDbStorageGroup "" -ceiDbNodeName "" -ceiDbConnectionLocation "" -ceiDbExecuteScripts "" -configureScaSecurity "true" -scaSecurityUserId "root" -scaSecurityPassword "MASKED_PARAMETER_VALUE" -bpcadminUsers "root" -bpcmqUser "root" -bpcmqPwd "MASKED_PARAMETER_VALUE" -dbName "WPRCSDB01" -dbLocation "" -dbUserId "" -dbPassword "MASKED_PARAMETER_VALUE" -dbServerPort "null" -dbHostName "localhost" -dbInstance "ol_" -dbCreateNew "true" -dbDelayConfig "false" -dbStorageGroup "" -dbConnectionLocation "" -configureAppScheduler "true" -appSchedulerServer "server1"
/opt/IBM/WebSphere/ProcServer/bin>myCommandline.sh INSTCONFSUCCESS: O perfil agora existe. INSTCONFSUCCESS: Criação de perfil bem-sucedida. INSTCONFSUCCESS: Criação de perfil bem-sucedida. /opt/IBM/WebSphere/ProcServer/bin>
C:\Arquivos de Programas\IBM\WebSphere\ProcServer\bin>myCommandline.bat INSTCONFSUCCESS: O perfil agora existe. INSTCONFSUCCESS: Criação de perfil bem-sucedida. INSTCONFSUCCESS: Criação de perfil bem-sucedida. C:\Arquivos de Programas\IBM\WebSphere\ProcServer\bin>
(c) Copyright IBM Corporation 2005, 2006.
Este centro de informações é desenvolvido em tecnologia Eclipse (http://www.eclipse.org)