pingでport指定したい時
結論から言うとpingでは通常port指定が出来ないので「nping」コマンドを使いましょう。
ダウンロード
nmapと一緒にダウンロードされるので、nmapをinstallします
yum install nmap
コマンド
使用法
nping ${host} -p ${port}
例
成功した場合
nping 175.41.202.96 -p 3000 Starting Nping 0.5.51 ( http://nmap.org/nping ) at 2015-10-14 01:02 UTC SENT (0.0178s) ICMP 10.184.30.164 > 175.41.202.96 Echo request (type=8/code=0) ttl=64 id=64344 iplen=28 ・ ・ ・ RCVD (4.0249s) ICMP 175.41.202.96 > 10.184.30.164 Echo reply (type=0/code=0) ttl=44 id=19074 iplen=28 Max rtt: 4.060ms | Min rtt: 2.359ms | Avg rtt: 2.797ms Raw packets sent: 5 (140B) | Rcvd: 5 (140B) | Lost: 0 (0.00%) Tx time: 4.00481s | Tx bytes/s: 34.96 | Tx pkts/s: 1.25 Rx time: 5.00624s | Rx bytes/s: 27.97 | Rx pkts/s: 1.00 Nping done: 1 IP address pinged in 5.04 seconds