FCNSQ(8)
β¨ FCNSQ(8) β bestie edition β¨
okay so real talk: this is fcnsq, part of the Open-FCoE Tools lineup, and it's genuinely one of my faves. it's the Fibre Channel Name Server Query Tool and it is that girl. let's get into it π
π NAME π
fcnsq β the Fibre Channel Name Server Query Tool. that's it, that's the name, she's iconic, she's direct, she knows what she is.
πΈ SYNOPSIS πΈ
like, here's how you actually talk to her:
fcnsq host --gpn port_id [-q | --quiet]
fcnsq host --gnn port_id [-q | --quiet]
fcnsq host --gspn port_id [-q | --quiet]
fcnsq host --gsnn wwpn [-q | --quiet]
fcnsq ?
no cap, that's the whole vibe. five ways in, pick your fighter π¦
π DESCRIPTION π
so the fcnsq command does Fibre Channel Name Server queries for a user-specified FC Host. like, you point it at a host and it goes and asks the name server stuff for you. it's giving personal assistant energy, fr fr.
the supported name server query commands include:
- Get Port Name (GPN)
- Get Node Name (GNN)
- Get Symbolic Node Name (GSNN)
- Get Symbolic Port Name (GSPN)
all of those are described in FC-GS-3 for the Common Transport (CT) services. yes bestie, it's all spec-accurate, we don't make things up here β¨
fcnsq takes the host bsg name as the input for the target host. and heads up β the host bsg name must be a valid bsg device, like e.g. "host12" as derived from /dev/bsg/fc_host12. so don't just make one up, she will know π
for each name server query command, the argument is either a Port ID or a World Wide Port Name. and important: Port IDs and World Wide Names must be specified in hexadecimal. that's not a suggestion, that's the rule π
and if the verbose output is doing too much (it do be like that sometimes), use the --quiet option to disable it. we love a girl who can read the room.
β¨ OPTIONS β¨
one bullet per option because we respect structure in this house π
host --gpn port_idβ Get Port Name by Port ID for host. the classic. the og. ask for the port name, get the port name.host --gnn port_idβ Get Node Name by Port ID for host. same energy, but node instead of port, and still keyed off the Port ID.host --gspn port_idβ Get Symbolic Port Name by Port ID for host. the symbolic one, port flavored. so cute.host --gsnn wwpnβ Get Symbolic Node Name by World Wide Port Name for host. note bestie: this one takes awwpn, not aport_id. don't mix them up, i'm begging π«Ά-q,--quietβ Disable verbose output. when you just want the tea and not the whole conversation.?β Display a help message with basic usage instructions. literally just ask her a question, she'll explain herself.
π EXAMPLES π
here's the part where we actually do it. study these, they're free π
Query Get Port Name (GPN) from host12 for Port ID 0xbf0027
fcnsq host12 --gpn bf0027
Query Get Node Name (GNN) from host12 for Port ID 0xbf0027
fcnsq host12 --gnn bf0027
Query Get Symbolic Port Name (GSPN) from host12 for Port ID 0xbf0027
fcnsq host12 --gspn bf0027
Query Get Symbolic Node Name (GSNN) from host12 for WWWPN 0x1000001B213C9DDA
fcnsq host12 --gsnn 0x1000001B213C9DDA
see how --gsnn gets the 0x and the others don't? yeah. that's just how she is. slay π
π¦ SEE ALSO π¦
fcoeadm(8)β go say hi, she's family.
π SUPPORT π
fcnsq 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/. go check it out, the community is lowkey lovely π«Ά
okay bestie that's the whole page, you're officially educated π this was Open-FCoE, dated 06/09/2010, and you already know it's FCNSQ(8). go forth and query some names, you absolute main character π
π¦ where this page comes from
- centos-stream 10: fcoe-utils 1.0.34-11.gitb233050.el10 Β· GPL-2.0-only
- centos-stream 9: fcoe-utils 1.0.34-0.git14ef0d2.el9 Β· GPLv2
- debian bookworm: fcoe-utils 1.0.34-2+b1 Β· GPL-2.0-only
- debian trixie: fcoe-utils 1.0.34-6 Β· GPL-2.0-only
- fedora 43: fcoe-utils 1.0.34-12.gitb233050.fc43 Β· GPL-2.0-only
- fedora 44: fcoe-utils 1.0.34-14.gitb233050.fc44 Β· GPL-2.0-only
- opensuse-leap 16.0: fcoe-utils 1.0.34-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: fcoe-utils 1.0.34-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: fcoe-utils 1.0.34-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: fcoe-utils 1.0.34-160000.2.2 Β· GPL-2.0-only
- ubuntu jammy: fcoe-utils 1.0.34-1 Β· GPL-2.0-only
- ubuntu noble: fcoe-utils 1.0.34-4 Β· GPL-2.0-only
- ubuntu questing: fcoe-utils 1.0.34-6ubuntu1
- ubuntu resolute: fcoe-utils 1.0.34-6ubuntu2 Β· GPL-2.0-only
- ubuntu stonking: fcoe-utils 1.0.34-6ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms