FCPING(8)

πŸ’… FCPING(8) β€” Fibre Channel Ping (ELS ECHO) tool

okay bestie, this is fcping from the Open-FCoE Tools set, and it's literally the cutest way to poke a Fibre Channel port and see if it pings you back 🫢


✨ NAME ✨

fcping β€” Fibre Channel Ping (ELS ECHO) tool


🌸 SYNOPSIS 🌸

fcping [-fqx] [ -i interval ] [ -c count ] [ -s size ] -h source target

source = interface | MAC | WWPN | FC-ID

target = -P WWPN | -N WWPN | -F FC-ID

πŸ’– DESCRIPTION πŸ’–

So the whole vibe of fcping is: it runs the Fibre Channel FC-LS-2 ECHO ELS command and then shows you the reply. That's it, that's the job πŸ’β€β™€οΈ

The max payload for fcping is 2108 bytes. And listen β€” if you don't pass a -c, fcping will just keep going and going and going until the user interrupts it. No cap. You have to stop it yourself, bestie 😭


πŸŽ€ OPTIONS πŸŽ€

  • -f β€” Flood ping 🌊 (go feral with it)
  • -q β€” Quiet! just print summary 🀫
  • -x β€” Hex dump of responses πŸ”’βœ¨
  • -i interval β€” Wait interval seconds between each ping ⏳
  • -c count β€” Stop after sending count pings πŸ›‘
  • -h source β€” Source is interface like ethX, MAC address, WWPN, or FC-ID πŸ“
  • -s size β€” Byte-length of ping request payload (max 2108) πŸ“
  • -F FC-ID β€” Destination port ID 🎯
  • -P WWPN β€” Destination world-wide port name 🌍
  • -N WWNN β€” Destination world-wide node name 🌐
ngl the -h here is source, not help. She's built different, don't @ me πŸ™ˆ

πŸ¦‹ EXAMPLES πŸ¦‹

1️⃣ Sends ELS ECHO to Port FC-ID 0xbf0027 from interface n0.170 with max 3 pings

fcping -c 3 -h n0.170 -F 0xbf0027

and it comes back like:

sending echo to 0xBF0027
echo    1 accepted                       16.170 ms
echo    2 accepted                        7.053 ms
echo    3 accepted                        6.803 ms
3 frames sent, 3 received 0 errors, 0.000% loss, avg. rt time 10.009 ms

ate. zero loss, iconic πŸ‘‘


2️⃣ Sends ELS ECHO to WWNN 0x1000001B213C9DDA from interface n0.170 with max 3 pings and payload size 1500 bytes

fcping -c 3 -h n0.170 -s 1500 -N 0x1000001B213C9DDA
sending echo to 0xBF0027
echo    1 accepted                        6.597 ms
echo    2 accepted                        6.925 ms
echo    3 accepted                       12.419 ms
3 frames sent, 3 received 0 errors, 0.000% loss, avg. rt time 8.647 ms

look at those round-trip times, we love a consistent queen πŸ’…


3️⃣ Sends ELS ECHO to WWNN 0x1000001B213C9DDA from interface n0.170 continuously with payload of 32 bytes and hex-dump the reply to the screen

fcping -x -h n0.170 -s 32 -N 0x1000001B213C9DDA
sending echo to 0xBF0027
echo    1 accepted                        6.937 ms
response length 32
     0 02000000 00000001 00010203 04050607
    10 08090a0b 0c0d0e0f 10111213 14151617

echo    2 accepted                        6.923 ms
response length 32
     0 02000000 00000002 00010203 04050607
    10 08090a0b 0c0d0e0f 10111213 14151617

echo    3 accepted                       84.929 ms
response length 32
     0 02000000 00000003 00010203 04050607
    10 08090a0b 0c0d0e0f 10111213 14151617

that third one said 84.929 ms btw... we don't talk about it 😭 the hex dump is serving though πŸ”₯


🌈 SEE ALSO 🌈

fcoeadm(8) β€” go read that one too, bestie, iykyk


🫢 SUPPORT 🫢

fcping is part of the fcoe-utils package, maintained through the Open-FCoE project. Resources for both developers and users can be found at the Open-FCoE website http://open-fcoe.org/ ✨


Open-FCoE Β· 05/24/2011 Β· FCPING(8)

and that's the whole page, bestie β€” go ping something, stay hydrated, and don't forget your -c unless you wanna be there forever πŸ’–πŸŒΈπŸ¦‹