Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Brent-BITSLLC
New Contributor II

Cable Testing via FortiGate CLI

I know how to use the FortiGate GUI to run a Cable Test diagnostic on a given interface, but I need to know how to do the same thing via FortiGate CLI.  Does anyone know the command for this?

5 REPLIES 5
abarushka
Staff
Staff

Hello,

 

Could you please elaborate whether you are referring to HQIP or some other test?

FortiGate
Brent-BITSLLC
New Contributor II

I'm referencing what the GUI calls a Cable Test under Diagnostics & Tools. Its the one that tests a given interface to see if there are wire pair issues or shorts on a line. 

vsahu

Hello Brent-BITSLLC,

You can use the below CLI command, I believe this is what you're looking for.

execute switch-controller switch-action cable-diag <switch> portX
Ex: execute switch-controller switch-action cable-diag FSxxxxxxxxxx port1

Regards,
Vishal
AaronG_47
New Contributor

To perform this you should use the CLI command,

From FortiGate CLI

execute switch-controller switch-action cable-diag <switch> portx

 

on CLI, this would look like,

(example)

execute switch-controller switch-action cable-diag S148xxxxxxxxxx port7

 

port7: cable (4 pairs, length +/- 25 meters)
pair A Ok, length 52 meters
pair B Short, length 52 meters
pair C Ok, length 56 meters
pair D Ok, length 52 meters

 

best regards,

 

Aaron

agarside
agarside
fortineteng
New Contributor

How accurate is the cable test usually? I have some cables behind a wall that I need to measure and currently it shows the screenshot below. 10 meters +/- is quite a bit for me to accurately gauge this cable length. Thanks

 

Screenshot 2025-03-08 at 11.22.40 AM.png

Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors