Users Guide
指令碼語法和選項相關資訊隨即顯示。如需詳細資訊,請參閱關於 Dell 探索公用程式。
根據您的需求,請執行下列動作:
• 使用主機 IP 位址來探索 SNMP 裝置:
python dellemc_nagios_discovery_utility.py --host=<host name or IP address> --
snmp.version=2 --output.file=/usr/local/nagios/dell/config/objects/
• 使用 Filepath,透過 WSMan 通訊協定/ Redsh REST API 來探索:
python dellemc_nagios_discovery_utility.py --file=<absolute file path> --http.user=root --
http.password=calvin --output.file=/usr/local/nagios/dell/config/objects/
• 使用子網路遮罩,透過 SNMP 或 WSMan 通訊協定/ Redsh REST API 來探索:
python dellemc_nagios_discovery_utility.py --subnet=<subnet with mask> --snmp.version=2 --
http.user=root --http.password=calvin --output.file=/usr/local/nagios/dell/config/objects/
註: 如果沒有傳遞其他 Dell EMC Discovery 公用程式參數,命令會以預設值執行。
註: 確保以 IP 位址或 FQDN 其中之一來探索 Dell EMC 裝置,而不是在某個於特定例項中同時使用兩者。
4 依預設,以 WSMan 通訊協定來探索 Dell EMC 伺服器。如果沒有在命令中傳遞 WSMan 通訊協定參數,探索會透過 SNMP 進
行。根據您的需求,可以變更 --prefProtocol 的值。
使用以下命令,可透過 WSMan 或 RedshDell 或 SNMP 來探索 Dell EMC 伺服器。
• 使用檔案路徑,以 WSMan 通訊協定來探索:
python dellemc_nagios_discovery_utility.py --file=<absolute file path> --prefProtocol=2 --
http.user=root --http.password=calvin --output.file=/usr/local/nagios/dell/config/objects/
• 使用檔案路徑,以 Redsh REST API 來探索:
python dellemc_nagios_discovery_utility.py --file=<absolute file path> --prefProtocol=3 --
http.user=root --http.password=calvin --output.file=/usr/local/nagios/dell/config/objects/
• 使用檔案路徑,以 SNMP 來探索:
python dellemc_nagios_discovery_utility.py --file=<absolute file path> --prefProtocol=1 --
snmp.version=2 --output.file=/usr/local/nagios/dell/config/objects/
5 在執行探索公用程式指令碼時,請執行命令 <NAGIOS_HOME>/bin/nagios -v /<NAGIOS_HOME>/etc/nagios.cfg 以確
認 Nagios 組態。
註: 如果沒有傳遞 --enable.log 參數,將不會建立記錄。
註: 如果有傳遞 --enable.log 參數,但未定義 --logLoc 值,將在預設位置 <NAGIOS_HOME>/var/dell 中建立記錄
6 確定沒有錯誤,然後執行 service nagios restart 這個命令重新啟動 Nagios Core。
探索完成後:
• Nagios 伺服器中會建立 Dell EMC 裝置主機定義及其服務定義,隨後用於監視 Dell EMC 裝置。
Nagios Core 主控台中的 Host (主機) 檢視和 Services (服務) 檢視會顯示探索到的 Dell EMC 裝置及其服務。請等待排定的服務完
成,服務詳細資料便會顯示。
• Nagios Core 主控台中的 Map (地圖) 檢視會顯示探索到的 Dell EMC 裝置。
裝置資訊
關於裝置資訊
Dell EMC 裝置資訊服務提供基本的系統相關資訊。依預設,系統會每天輪詢此服務一次。
裝置探索和清查
19