HP

HP Systems Insight Manager 5.1 版使用指南

繁體中文
  探索與識別  |  管理 hosts 檔案  |  Hosts 檔案副檔名   

Hosts 檔案副檔名

》目錄
》索引
》注意事項
》簡介
》產品綜覽
》快速入門
》探索與識別
》配置自動探索
》配置自動探索的一般設定
》管理探索範本
》手動新增系統
》管理 hosts 檔案
》建立新的 hosts 檔案
》編輯 hosts 檔案
》刪除 hosts 檔案
》新增 hosts 檔案中的系統至 HP SIM 資料庫
》建立作業以匯入 hosts 檔案供 HP SIM 整合
》透過 CLI 批次新增系統
Hosts 檔案副檔名
》IP 範圍
》識別
》管理系統類型
》使用者和授權
》目錄服務
》網路與安全性
》監視系統、叢集和事件
》儲存設備整合
》管理作業
》擴充管理的工具
》合作夥伴應用程式
》報告
》管理系統與事件
》疑難排解
》參考資訊
》可列印版本
》辭彙
》使用輔助說明
》 預設值

Hosts 檔案通常包含 IP 位址、系統名稱、系統名稱別名和使用者註釋。您建立的 hosts 檔可以包含與系統相關的其他資訊。資訊會顯示為一或多個註釋,位於系統的 hosts 檔項目之前。除非指定其他值,否則會使用預設值。預設提供下列參數:

參數關鍵字
系統類型TYPE
SNMP 逾時SNMP_TIM
SNMP 重試次數SNMP_RET
SNMP 讀取群體SNMP_MON
SNMP 寫入群體SNMP_CON

您可以修改 hosts 檔來取代某個項目的預設值,也可以變更所有後續項目的預設值。欲變更 hosts 檔中單一系統項目的值,請在 hosts 檔中、主機項目前一行新增一個陳述式作為註釋,如下列範例所示。陳述式會套用至之後的系統 (且僅套用至該系統)。在下列範例中,預設的 TYPE 會變更為 EngProliant 系統的伺服器。

關鍵字陳述式Hosts 檔項目
#$IMXE:< 關鍵字=值 > #$IMXE: TYPE=server
例如:#$IMXE: TYPE=server16.26.176.92 EngProliant.compaq.com EngProliant #使用者註釋

欲全域地變更預設值,使預設值影響下一個檔案項目和所有後續的項目,請使用類似於下列範例的陳述式。預設值會變更為下一個項目的路由器。在另一個 #$IMXE_DEFAULT 陳述式變更值之前,路由器會維持所有項目的預設值。若 #$IMXE 陳述式變更了單一 TYPE 應用例,則只有下一個項目不使用預設值,之後便會回復成路由器。

關鍵字陳述式Hosts 檔項目

#$IMXE_DEFAULT: < 關鍵字=值 >

#$IMXE_DEFAULT: TYPE=router

例如:#$IMXE_DEFAULT: TYPE=router

16.26.176.92 BldRtr6.compaq.com BldRtr6 #使用者註釋

若加上註釋的項目中省略了關鍵字參數,則使用目前的預設值。除非使用 #$IMXE_DEFAULT 陳述式設定一個新的預設值,否則目前的預設值一律為標準預設值。若關鍵字包含一個字以上 (例如「管理處理器」),請用雙引號括住整個關鍵字。單一關鍵字 (如「伺服器」)可選擇性加上引號。

下列摘自 hosts 檔的文字說明數個陳述式。井字號 (#) 開頭的說明不會顯示在 hosts 檔中。

# Title: Systems in database # Sorted by: IP address # Date: 28-Mar-00 2:29:31 PM # Author: administrator The system EngProliant uses all current defaults.There are no additional comments. 16.26.176.92 EngProliant.compaq.com EngProliant #user comments The system testServer in the following example defaults for TYPE. The defaults for SNMP Timeouts and Retries were restored for this system but only apply to testServer. The SNMP write community string default was changed and only applies to testServer. #$IMXE: TYPE=Server #$IMXE: SNMP_TIM=0 SNMP_RET=0 SNMP_MON=public SNMP_CON=private16.26.160.20 testServer.compaq.com testServer All defaults in the following example for the system BldRtr1 are the same as for testServer, but had to be specified because they are not the global defaults.These changes apply only to BldRtr1. #$IMXE: TYPE=Router #$IMXE: SNMP_TIM=0 SNMP_RET=0 SNMP_MON=public SNMP_CON=private 16.26.160.23 BldRtr1.compaq.com BldRtr1 For the system BldRtr5, the TYPE and protocols used for discovery were changed from the current defaults. Because the remaining keyword entries are missing, the standard defaults are applied for the SNMP timeouts, retries, and community strings. #$IMXE: TYPE=Router 16.26.160.24 BldRtr5.compaq.com BldRtr5 For the system AcctServer, only the TYPE was changed from the current defaults. #$IMXE: TYPE=Server 16.26.176.36 AcctServer.compaq.com AcctServer #user comments The global default for TYPE was changed from Unknown to Router. All subsequent entries will be identified as routers until a TYPE statement is used to specify another type or restore the default. #$IMXE_DEFAULT: TYPE=Router 16.25.176.38 FloorRtr2a.compaq.com FloorRtr2a #user comments The default for the next host entry was changed to management processor, which is enclosed in quotes. #$IMXE: TYPE="Management Processor" AcctSvriLo.compaq.com 16.25.176.37 AcctSvriLo #user comments ...

預設值

若 hosts 檔中缺少參數,則會套用預設值。

關鍵字值說明
TYPE

應用程式、叢集、複合系統、桌上管理系統、機箱(Enclosure)、環境監視器、手持裝置、集線器、KVM 交換器、管理處理器、筆記型電腦、分區、電源配電單元、電源供應器、印表機、機架、資源分區、遠端存取裝置、路由器、伺服器、共用資源網域、儲存設備裝置、交換器、磁帶庫、精簡型用戶端、UPS、不明、未受管理的,以及工作站

若需各種系統類型的相關資訊,請參閱配置自動探索 - 系統類型。

不明 (預設)
DMI

0

1

停用 (預設)

啟用

SNMP

0

1

停用 (預設)

啟用

HTTP

0

1

停用 (預設)

啟用

SNMP_TIM

0

大於 0

系統預設 (預設)

SNMP_RET

0

大於 0

系統預設 (預設)

SNMP_MON

公用

<群體字串 >

唯讀 (預設)

SNMP_CON

<群體字串>

無預設

相關程序

》 探索與識別 - 管理 hosts 檔案

相關主題

》 HP Systems Insight Manager 5.1 版使用指南 - 探索與識別