PowerScale:Isilon:OneFS:如何安裝和執行 internal_ping 指令檔,以測試後端網路連線能力
Summary: 本「如何」文章說明設定和執行internal_ping腳本的程式,以測試乙太網路和 InfiniBand 網路的後端網狀連線能力。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
執行內部 ping 的方法有好幾種。有單行 Shell 指令檔、.sh 檔案,並透過最新的 OneFS 執行狀況檢查指令檔執行。
單行選項:
安裝與執行 internal_ping.sh:
單行選項:
FILE=/ifs/data/Isilon_Support/backendpingtest.txt; echo "" > $FILE; isi_for_array -XI 'for i in $(isi_nodes %{name}":"%{internal_a_address}":"%{internal_b_address}":"%{failover}); do name=$(echo $i | cut -f 1 -d ":"); if [ "$name" != "$(hostname)" ]; then iba=$(echo $i | cut -f 2 -d":"); ibb=$(echo $i | cut -f 3 -d":"); ibf=$(echo $i | cut -f 4 -d":"); ping -c2 -t2 $iba > /dev/null; if [ $? -eq 0 ]; then iba_ok="|A| _OK_ "; else iba_ok="|A| FAIL "; fi; ping -c2 -t2 $ibb > /dev/null; if [ $? -eq 0 ]; then ibb_ok="|B| _OK_ "; else ibb_ok="|B| FAIL "; fi; ping -c2 -t2 $ibf > /dev/null; if [ $? -eq 0 ]; then ibf_ok="|F| _OK_ "; else ibf_ok="|F| FAIL "; fi; echo -e "-> :$name\t$iba_ok\t$ibb_ok\t$ibf_ok"; fi; done' >> $FILE && clear; cat $FILE | sort -k1,3 -V | grep -v "Host is down" | tee /ifs/data/Isilon_Support/backendpingtest-$(date +%F_%H%M%S).txt
安裝與執行 internal_ping.sh:
- 從附件區段下載 internal_ping.sh,或從 FTP 網站下載:
curl -L -o /ifs/data/Isilon_Support/internal_ping.sh ftp://ftp.emc.com/outgoing/support/internal_ping.sh - 複製到叢集上的 /ifs/:
- /ifs/data/Isilon_Support/internal_ping.sh
- 建立可執行檔:
# chmod +x /ifs/data/Isilon_Support/internal_ping.sh
- 複製到叢集中所有節點上的本機目錄:
# isi_for_array 'cp /ifs/data/Isilon_Support/internal_ping.sh /usr/local/bin/internal_ping.sh'
- 執行 (不需要以「isi_for_array」執行):
# /usr/local/bin/internal_ping.sh
讓命令執行完成。如果您要提前停止命令,請執行 CTRL-C。如果沒有列印任何數據,這並不表示它無法運作。
若要檢視單一節點的結果,請在命令之後輸入節點號碼。
# /usr/local/bin/internal_ping.sh 5
Additional Information
這可在叢集上隨時執行,且必須在單一節點上執行。
Isilon-1 # /usr/local/bin/internal_ping.sh
Isilon-1: -> :Isilon-2 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-1: -> :Isilon-3 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-1: -> :Isilon-4 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-2: -> :Isilon-1 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-2: -> :Isilon-3 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-2: -> :Isilon-4 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-3: -> :Isilon-1 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-3: -> :Isilon-2 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-3: -> :Isilon-4 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-4: -> :Isilon-1 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-4: -> :Isilon-2 |A| _OK_ |B| _OK_ |F| _OK_
Isilon-4: -> :Isilon-3 |A| _OK_ |B| _OK_ |F| _OK_
Products
Isilon Switch Ethernet, Isilon Switch QDR, Isilon Switch SDRArticle Properties
Article Number: 000158347
Article Type: How To
Last Modified: 25 Sept 2025
Version: 9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.