LibertyproductInfo 指令

使用 productInfo 指令驗證產品完整性、比較 Liberty 伺服器的不同版本,以及驗證現行產品版本。

語法

指令語法如下:

productInfo action --[options]

其中 options 的可能值會隨著 action 參數值而不同。

參數

以下是 productInfo 指令所能使用的 action 參數及 options 值:
compare
可讓您比較現行安裝架構中所安裝的 APAR 修正程式與 Liberty 的不同版本。
--target=path to directory or archive file
指定現行安裝架構所要比較的目標檔。--target 值可以是目錄或保存檔,它必須是有效的 Liberty 安裝位置。如果未指定 --apars,這個選項就是必要的。
--apars=a comma-separated list of APAR IDs
對照這份以逗點區隔的 APAR ID 清單來檢查現行安裝架構,看它是否包含這些 ID,然後列出任何未包含的 APAR。如果未指定 --target,這個選項就是必要的。
--output=path to an output file
將這個指令的結果輸出到提供的檔名。 依預設,輸出會導向至標準輸出。
--verbose
當發生錯誤時,顯示詳細的錯誤訊息。
註: 至少必須提供 --target--apars 其中之一。
featureInfo
列出安裝在現行 Liberty 伺服器上的所有特性,包括任何已安裝的產品延伸。
--output=path to an output file
將這個指令的結果輸出到提供的檔名。 依預設,輸出會導向至標準輸出。
validate
驗證 Liberty 伺服器。
--output=path to an output file
將這個指令的結果輸出到提供的檔名。 依預設,輸出會導向至標準輸出。
version
顯示產品名稱和版本。
如果產品延伸安裝架構的 versions 目錄中提供了包含下列內容的 product_extension.properties 檔,則輸出會包括產品延伸的名稱和版本:
com.ibm.websphere.productVersion=your_product_version
com.ibm.websphere.productName=your_product_name
--output=filename
將這個指令的結果輸出到提供的檔名。 依預設,輸出會導向至標準輸出。
--verbose
顯示每個內容檔的完整內容。
--ifixes
顯示套用至系統的 APAR 修正程式,以及已套用它們的臨時修正程式。

如需相關資訊,請參閱提供特性延伸的產品資訊

viewLicenseAgreement
顯示所安裝之 Liberty 版本的授權合約。
viewLicenseInfo
顯示所安裝之 Liberty 版本的授權資訊。
help
顯示特定動作的說明資訊。

用法

下列範例示範正確的語法:

productInfo compare --target=C:\wlp\newInstall\wlp
productInfo compare --target=C:\wlp\newInstall.jar --output=C:\wlp\compareOutput.txt
productInfo compare --apars=com.ibm.ws.apar.PM39074,com.ibm.ws.apar.PM39075,com.ibm.ws.apar.PM39080
productInfo featureInfo --output=c:\wlp\featureListOutput.txt
productInfo validate
productInfo help compare
productInfo version
productInfo viewLicenseAgreement
productInfo viewLicenseInfo

指示主題類型的圖示 參照主題

檔名:rwlp_command_productinfo.html