使用manageprofiles來建立websphere的profile


1、建立DM的profile,使用的模版在install_root/profileTemplates/dmgr下 
句法為: 
manageprofile.sh -create -templatePath install_root/profileTemplates/dmgr 


調用參數為: 
-create 建立一個profile. (必選)  
-templatePath 指定使用模版的路徑. (必選) 建立DM的路徑為install_root/profileTemplates/dmgr 
-profileName 指定profile的名字. (可選)  
-profilePath 指定proflile需要建立的路徑. (可選)  
-hostName 指定profile對應的主機名稱. (可選)  
-nodeName 指定profile對應的node的名稱. 此名稱必須在同一cell中唯一. (可選)  
-cellName 指定profile對應的cell的名稱. 每一個profile的cell名稱必須唯一. (可選)  
-isDefault 講此profile指定為缺省的profile,在運行命令期間不需要使用profileName的參數. (可選)  
-omitAction 附加條件. (可選)  
-adminUserName 在指定administrative security選項后的管理員名稱. (可選)  
-adminPassword 在指定administrative security選項后的管理員密碼. (可選)  
-portsFile 指定profile的端口設定文件. 此參數和-startingPort或-defaultPorts參數沖突. (可選)  
-startingPort 制度建立profile是的所有的端口的起始的端口號. 同-portsFile或者-defaultPorts參數沖突. (可選)  
-defaultPorts 對新建立的profile使用缺省的端口號. 同-portsFile 或 -startingPort 參數沖突. (可選)  
-validatePorts 進行端口號驗證,保證使用的端口號沒有已經被用或者被保留. (可選)  
-enableAdminSecurity 新建立的profile使用用戶密碼方式認證,使用此參數后面跟 true. (可選)   
-enableService 作為linux的service使用,使用此參數后面跟 true. (可選)   
-serviceUserName 指定作為service使用時的用戶. (可選)  


例子: 
export WAS_HOME= 
export PRO_HOME= 
以上指定websphere的安裝路徑和profile的路徑 
manageprofiles.sh -create \ 
-templatePath $WAS_HOME/profileTemplates/dmgr \ 
-profilePath $PRO_HOME/Dmgr01 \ 
-nodeName ecdsMng01 \ 
-cellName ecds01 \ 
-enableAdminSecurity true \ 
-adminUserName wasadmin \ 
-adminPassword password \ 
-profileName Dmgr01 \ 
-hostName `hostname` \ 


2、建立custom的profile,使用的模版在install_root/profileTemplates/managed 
句法為: 
manageprofile.sh -create -templatePath install_root/profileTemplates/managed 
調用參數為: 
-create 建立一個profile. (必選)  
-templatePath 指定使用模版的路徑. (必選) 建立DM的路徑為install_root/profileTemplates/managed 
-profileName 指定profile的名字. 參數可選但是如沒有賦值,會使用缺省值.  
-profilePath 指定proflile需要建立的路徑. 參數可選但是如沒有賦值,會使用缺省值.  
-hostName 指定profile對應的主機名稱.(可選)  
-nodeName 指定profile對應的node的名稱. 此名稱必須在同一cell中唯一. (可選)  
-cellName 指定profile對應的cell的名稱. 每一個profile的cell名稱必須唯一. (可選)  
-federateLater 是否當時完成profile到dm的聯合操作.  (可選)  
-dmgrHost 指定DM運行的服務器的ip地址.  (可選)  
-dmgrPort 指定DM運行的SOAP服務的端口.  (可選)  
-isDefault 講此profile指定為缺省的profile,在運行命令期間不需要使用profileName的參數.  (可選)  
-omitAction 附加條件. (可選)  
-portsFile 指定profile的端口設定文件. 此參數和-startingPort或-defaultPorts參數沖突. (可選)   
-dmgrAdminUserName 說明要聯合到的DM的管理員名稱. (可選)  
-dmgrAdminPassword 說明要聯合到的DM的管理員密碼. (可選)  


要聯合到DM的例子 
manageprofiles.sh -create \ 
-templatePath $WAS_HOME/profileTemplates/managed \ 
-profilePath $PRO_HOME/AppSrv03 \ 
-nodeName ecdsPrd03 \ 
-cellName ecds0Y \ 
-dmgrHost 192.168.72.60 \ 
-dmgrPort 8879 \ 
-dmgrAdminPassword password \ 
-dmgrAdminUserName wasadmin \ 
-profileName AppSrv03 \ 
-hostName `hostname` \ 


不用聯合到DM,而后用addNode.sh聯合的例子 
manageprofiles.sh -create \ 
-templatePath $WAS_HOME/profileTemplates/managed \ 
-profilePath $PRO_HOME/AppSrv02 \ 
-nodeName ecdsPrd02 \ 
-cellName ecds0X \ 
-profileName AppSrv02 \ 
-hostName `hostname` 

addNode.sh 192.168.72.60 -username wasadmin -password password 


3、建立appsrv的profile,使用的模版在install_root/profileTemplates/default 
句法為: 
manageprofile.sh -create -templatePath install_root/profileTemplates/default 
調用參數為: 
-create 建立一個profile. (必選)  
-templatePath 指定使用模版的路徑. (必選) 建立APP的路徑為install_root/profileTemplates/default 
-profileName 指定profile的名字. 參數可選但是如沒有賦值,會使用缺省值. 
-profilePath 指定proflile需要建立的路徑. 參數可選但是如沒有賦值,會使用缺省值. 
-hostName 指定profile對應的主機名稱.(可選)  
-nodeName 指定profile對應的node的名稱. 此名稱必須在同一cell中唯一. (可選)  
-cellName 指定profile對應的cell的名稱. 每一個profile的cell名稱必須唯一. (可選)  
-enableAdminSecurity 新建立的profile使用用戶密碼方式認證,使用此參數后面跟 true. (可選) 
-enableService 作為linux的service使用,使用此參數后面跟 true. (可選)   
-webServerCheck 建立一個Web server的定義.指定值為true. (可選)   
-webServerName 指定建立的Web Server的名稱. (可選) 
-webServerHostname 指定Web Server的主機名稱. (可選) 
-webServerPort 指定Web server運行的端口.  (可選) 
-webServerInstallPath 指定Web server的安裝路徑. (可選) 
-webServerPluginPath 指定Web server插件的安裝路徑.(可選) 
-isDefault 講此profile指定為缺省的profile,在運行命令期間不需要使用profileName的參數. (可選)  
-omitAction 附加條件. (可選)  
-adminUserName 在指定administrative security選項后的管理員名稱. (可選)  
-adminPassword 在指定administrative security選項后的管理員密碼. (可選)  
-serviceUserName 指定作為service使用時的用戶. (可選)  
-isDeveloperServer 指定此server作為開發使用. (可選)  
-webServerType 指定Web server的類型. (可選)  
-webServerOS 指定Web server的操作系統的類型. (可選)  
-portsFile 指定profile的端口設定文件. 此參數和-startingPort或-defaultPorts參數沖突. (可選)  
-startingPort 指定建立profile是的所有的端口的起始的端口號. 同-portsFile或者-defaultPorts參數沖突. (可選)  
-defaultPorts 對新建立的profile使用缺省的端口號. 同-portsFile 或 -startingPort 參數沖突. (可選)  
-validatePorts 進行端口號驗證,保證使用的端口號沒有已經被用或者被保留. (可選)  


例子: 
manageprofiles.sh -create \ 
-templatePath $WAS_HOME/profileTemplates/default \ 
-profilePath $PRO_HOME/AppSrv01 \ 
-nodeName ecdsPrd01 \ 
-cellName ecds0Z \ 
-enableAdminSecurity true \ 
-adminUserName wasadmin \ 
-adminPassword password \ 
-profileName AppSrv01 \ 
-hostName `hostname` 

addNode.sh 192.168.72.60 -username wasadmin -password password 


3、建立cell的profile,其中包含了DM和APP SERVER,使用的模版在install_root/profileTemplates/cell/dmgr(default)
句法為: 
manageprofile.sh -create -templatePath install_root/profileTemplates/cell/dmgr -nodeProfilePath install_root/profiles/AppSrv01 -cellName cell01dmgr -nodeName node01dmgr -appServerNodeName node01   

manageprofile.sh|bat -create -templatePath install_root/profileTemplates/cell/default -dmgrProfilePath install_root/profiles/Dmgr01 -portsFile install_root/profiles/Dmgr01/properties/portdef.props -nodePortsFile install_root/profiles/Dmgr01/properties/nodeportdef.props -cellName cell01dmgr -nodeName node01dmgr -appServerNodeName node01調用參數為: 

-create 建立一個profile. (必選)  

-templatePath 指定使用模版的路徑. (必選) 建立DN和APP的路徑為install_root/profileTemplates/cell/dmgr(default) 

建立dm部分的參數: 
-profileName 指定profile的名字. 參數可選但是如沒有賦值,會使用缺省值.  
-nodeProfilePath 指定proflile需要建立的node的路徑. 參數可選但是如沒有賦值,會使用缺省值.  
-hostName 指定profile對應的主機名稱.(可選)  
-nodeName 指定profile對應的node的名稱. 此名稱必須在同一cell中唯一. (可選)  
-cellName 指定profile對應的cell的名稱. 每一個profile的cell名稱必須唯一. (可選)  
-appServerNodeName 指定app所在cell中node的名稱. 參數可選但是如沒有賦值,會使用缺省值.  
-enableAdminSecurity 新建立的profile使用用戶密碼方式認證,使用此參數后面跟 true. (可選)   
-enableService 作為linux的service使用,使用此參數后面跟 true. (可選) 
-webServerCheck 建立一個Web server的定義.指定值為true. (可選)   
-webServerName 指定建立的Web Server的名稱. (可選) 
-webServerHostname 指定Web Server的主機名稱. (可選) 
-webServerPort 指定Web server運行的端口.  (可選) 
-webServerInstallPath 指定Web server的安裝路徑. (可選) 
-webServerPluginPath 指定Web server插件的安裝路徑.(可選) 
-isDefault 講此profile指定為缺省的profile,在運行命令期間不需要使用profileName的參數. (可選)  
-omitAction 附加條件. (可選)  
-adminUserName 在指定administrative security選項后的管理員名稱. (可選)  
-adminPassword 在指定administrative security選項后的管理員密碼. (可選)  
-portsFile 指定profile的端口設定文件. 此參數和-startingPort或-defaultPorts參數沖突. (可選)  
-startingPort 制度建立profile是的所有的端口的起始的端口號. 同-portsFile或者-defaultPorts參數沖突. (可選)  
-defaultPorts 對新建立的profile使用缺省的端口號. 同-portsFile 或 -startingPort 參數沖突. (可選)  
-validatePorts 進行端口號驗證,保證使用的端口號沒有已經被用或者被保留. (可選)  
-nodePortsFile 指定node使用端口設定的文件,同-nodeStartingPort或者-nodeDefaultPorts參數沖突. (可選) 
-nodeStartingPort 指定所有的結點端口的起始的端口號. 同-nodePortsFile或者-nodeDefaultPorts參數沖突. (可選)  
-nodeDefaultPorts 對結點使用缺省的端口號.同-nodePortsFile或者-nodeStartingPort參數沖突. (可選)  
-serviceUserName 指定作為service使用時的用戶. (可選)  
-webServerType 指定Web server的類型. (可選)  
-webServerOS 指定Web server的操作系統的類型. (可選)  



建立app部分的參數: 
-profileName 指定profile的名字. 參數可選但是如沒有賦值,會使用缺省值.  
-profilePath 指定proflile需要建立的路徑. 參數可選但是如沒有賦值,會使用缺省值. 
-hostName 指定profile對應的主機名稱.(可選)  
-nodeName 指定profile對應的node的名稱. 此名稱必須在同一cell中唯一. (可選)  
-cellName 指定profile對應的cell的名稱. 每一個profile的cell名稱必須唯一. (可選)  
-appServerNodeName 指定app server的結點名稱. (可選)  
-enableAdminSecurity 新建立的profile使用用戶密碼方式認證,使用此參數后面跟 true. (可選) 
-isDefault 講此profile指定為缺省的profile,在運行命令期間不需要使用profileName的參數. (可選)  
-omitAction 附加條件. (可選)  
-adminUserName 在指定administrative security選項后的管理員名稱. (可選)  
-adminPassword 在指定administrative security選項后的管理員密碼. (可選)  
-portsFile 指定profile的端口設定文件. 此參數和-startingPort或-defaultPorts參數沖突. (可選)  
-startingPort 指定建立profile是的所有的端口的起始的端口號. 同-portsFile或者-defaultPorts參數沖突. (可選)  
-defaultPorts 對新建立的profile使用缺省的端口號. 同-portsFile 或 -startingPort 參數沖突. (可選)  
-validatePorts 進行端口號驗證,保證使用的端口號沒有已經被用或者被保留. (可選)  
-nodePortsFile 指定node使用端口設定的文件,同-nodeStartingPort或者-nodeDefaultPorts參數沖突. (可選) 
-nodeStartingPort 指定所有的結點端口的起始的端口號. 同-nodePortsFile或者-nodeDefaultPorts參數沖突. (可選)  
-nodeDefaultPorts 對結點使用缺省的端口號.同-nodePortsFile或者-nodeStartingPort參數沖突. (可選)  


例子: 

manageprofiles.sh -create \ 
-templatePath  $WAS_HOME/profileTemplates/cell/dmgr \ 
-profilePath   $PRO_HOME/Dmgr01 \ 
-nodeProfilePath  $PRO_HOME/AppSrv01 \ 
-cellName  ecds01 \ 
-profileName  Dmgr01 \ 
-appServerNodeName  ecdsPrd01 \ 
-nodeName  ecdsMng01 \ 
-enableAdminSecurity  true \ 
-adminUserName  wasadmin \ 
-adminPassword  password 



manageprofiles.sh  -create \ 
-templatePath  $WAS_HOME/profileTemplates/cell/default  \ 
-profilePath  $PRO_HOME/AppSrv01 \ 
-dmgrProfilePath  $PRO_HOME/Dmgr01 \ 
-cellName  ecds01  \ 
-profileName  AppSrv01 \ 
-enableAdminSecurity  true \ 
-adminUserName  wasadmin  \ 
-adminPassword  password \ 
-appServerNodeName  ecdsPrd01 \ 
-nodeName  ecdsMng01


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM