Quando si utilizza la procedura guidata Profilo (interattiva o in modalità non presidiata) per creare un profilo, viene scritta una versione della riga comandi della creazione del profilo ad un file di log. È possibile estrarre questa riga comandi dal file di log, modificarla ed utilizzarla per creare altri profili.
Di seguito è riportato un esempio di una riga comandi catturata (non modificata) per la creazione di un nuovo profilo, come indicato dal parametro -create:
(Oct 12, 2006 9:42:58 AM), Install, com.ibm.ws.install.wbiserver.ismp.actions. CalculateManagedProfileInvocationAction, msg1, CAPTURED_COMMAND_LINE_DESC: La seguente riga è la riga comandi equivalente alla propria esecuzione della procedura guidata Profilo. È diversa perché le porte (-portsFile) selezionate non sono incluse. Inoltre, questa riga comandi non associerà il profilo. I valori del parametro che è possibile modificare sono profileName, profilePath, nodeName, cellName, hostName, dmgrHost, dmgrPort e tutti i valori delle password che non sono visibili. (Oct 12, 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: Il profilo ora esiste. INSTCONFSUCCESS: Creazione del profilo riuscita. INSTCONFSUCCESS: Creazione del profilo riuscita. /opt/IBM/WebSphere/ProcServer/bin>
C:\Program Files\IBM\WebSphere\ProcServer\bin>myCommandline.bat INSTCONFSUCCESS: Il profilo ora esiste. INSTCONFSUCCESS: Creazione del profilo riuscita. INSTCONFSUCCESS: Creazione del profilo riuscita. C:\Program Files\IBM\WebSphere\ProcServer\bin>
(c) Copyright IBM Corporation 2005, 2006.
Questo Information Center è alimentato dalla tecnologia Eclipse (http://www.eclipse.org)