基本管理 > 管理授權 > 管理 Windchill 授權 > 使用 Windchill Shell 線上擷取授權
  
使用 Windchill Shell 線上擷取授權
在本節中,我們將說明如何透過 Windchill Shell 擷取授權及配置其設定。本節適用於 Windchill 管理員,並假設您瞭解或精通如何操作 Windchill Shell。欲執行這些動作,您必須確保您保持在線上。
欲存取內建授權管理公用程式,請使用下列指令:windchill wt.licenseusage.WindchillLicenseUtility
使用下列引數來執行此公用程式。
引數
描述
-SetToOnlineMode
將授權設定切換成線上模式。如果您在線上連線,請使用此模式。
-SetToOfflineMode
將授權設定切換成離線模式。如果您為離線狀態,請使用此模式。
-FetchLicense
如果授權設定已設定為線上模式,請擷取授權。
-SetToOnlineModeAndFetchLicense
將授權設定切換成線上模式並擷取授權。
-siteUsername
網站管理員使用者名稱。
-sitePassword
網站管理員密碼。
-ptcUsername
PTC 使用者名稱。
-ptcPassword
PTC 密碼。
配置授權設定
若要將授權設定切換成線上模式,請執行下列指令:
windchill wt.licenseusage.WindchillLicenseUtility -SetToOnlineMode -ptcUsername <PTC username> -ptcPassword <PTC password> -siteUsername <SiteAdminUsername> -sitePassword <SiteAdminPassword>
若要將授權設定切換成離線模式,請執行下列指令:
windchill wt.licenseusage.WindchillLicenseUtility -SetToOfflineMode -siteUsername <SiteAdminUsername> -sitePassword <SiteAdminPassword>
擷取授權
使用 Windchill Shell,可執行授權公用程式以擷取授權。
如果您的授權設定已設定為線上模式,請執行下列指令來擷取授權:
windchill wt.licenseusage.WindchillLicenseUtility -FetchLicense -siteUsername <SiteAdminUsername> -sitePassword <SiteAdminPassword>
若要將離線模式切換成線上模式並擷取授權,請使用下列指令:
windchill wt.licenseusage.WindchillLicenseUtility -SetToOnlineModeAndFetchLicense -ptcUsername <PTC username> -ptcPassword <PTC password> -siteUsername <SiteAdminUsername> -sitePassword <SiteAdminPassword>
成功執行後,系統會自動處理並擷取授權。系統會將一條新授權資訊新增至「授權資訊」標籤中的表格。如果執行失敗,Windchill Shell 上會顯示錯誤訊息。使用 -- 可顯示公用程式的使用說明。