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 运行状况检查脚本。

单行选项:       
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:      
  1. 从附件部分下载 internal_ping.sh 或从 FTP 站点下载它:
    curl -L -o /ifs/data/Isilon_Support/internal_ping.sh ftp://ftp.emc.com/outgoing/support/internal_ping.sh
  2. 复制到群集上的 /ifs/:     
    • /ifs/data/Isilon_Support/internal_ping.sh
  3. 使其可执行:     
# chmod +x /ifs/data/Isilon_Support/internal_ping.sh
  1. 复制到群集中所有节点上的本地目录:     
# isi_for_array 'cp /ifs/data/Isilon_Support/internal_ping.sh /usr/local/bin/internal_ping.sh'
  1. 运行(无需使用“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 SDR
Article 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.