上一個主題: 設定裝置別名範例下一個主題: 設定元件名稱別名


設定介面名稱別名

做為管理員,您可以為每個裝置項目的介面元件名稱設定別名。 介面別名是由管理員配置的名稱,會套用至 CA Performance Center 中的相關聯介面元件。 視您指派的角色權限而定,使用者可在其儀表板與檢視中看到介面別名。

附註:使用 REST Web 服務所設定的別名,其優先順序高於透過匯入 CSV 檔案所設定的別名。 如需匯入 CSV 檔案的詳細資訊,請參閱《CA Performance Center 管理員指南》。

下列 URL 顯示語法:

http://CA Performance Center 伺服器 IP 位址:8181/pc/center/webservice/devices

請依循下列步驟:

  1. 決定您要設定別名的介面:
    1. 若想傳回裝置項目的所有介面清單,請在 REST 用戶端中輸入下列 URL:
      http://CA Performance Center 伺服器 IP 位址:8181/pc/center/webservice/devices/deviceItemId/device_id/interfaces
      
      device_id

      介面元件相關聯之受監控裝置的裝置項目識別號碼。

    2. 選取 GET 做為「HTTP」方法。
    3. 決定您要設定別名的介面。
  2. 在 REST 用戶端中輸入下列其中一個 URL:
    domain_id

    介面元件相關聯之網域的網域識別號碼。

  3. 選取 PUT 做為「HTTP」方法。
  4. 若要設定介面名稱別名,請在 [HTTP 要求] 窗格的 [內文] 索引標籤中輸入下列資訊:
    <interfaces>
    
        <interface>
    
             <itemId>interface_item_id</itemId>
    
             <nameAlias>alias_for_interface</nameAlias>
    
        </interface>
    
        ...
    
    </interfaces>
    

範例

若要將「Et0 - alias」和「Se0 - alias」設為兩個介面的介面別名,請在 [HTTP 要求] 窗格的 [內文] 索引標籤中輸入下列資訊:

<interfaces>
    <interface>
         <itemId>164</itemId>
         <nameAlias>Et0 - alias</nameAlias>
    </interface>
    <interface>
         <itemId>165</itemId>
         <nameAlias>Se0 - alias</nameAlias>
    </interface>
</interfaces>

附註:若要為多個裝置項目設定介面元件名稱的別名,請使用 update_alias_name.sh 指令檔。 如需使用指令檔設定別名的相關資訊,請參閱《CA Performance Center 管理員指南》。