productInfo 指令

使用 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 修正程式,以及已套用它們的臨時修正程式。

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

[8.5.5.6 或更新版本]viewLicenseAgreement
[8.5.5.6 或更新版本]顯示所安裝之 Liberty 設定檔版本的授權合約。
[8.5.5.6 或更新版本]viewLicenseInfo
[8.5.5.6 或更新版本]顯示所安裝之 Liberty 設定檔版本的授權資訊。
help
顯示特定動作的說明資訊。

用法

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

[8.5.5.6 或更新版本]
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

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

資訊中心條款 | 意見


「時間戳記」圖示 前次更新: 2015 年 6 月 22 日
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=rwlp_command_productinfo
檔名:rwlp_command_productinfo.html