Skip to main content
Brent-BITSLLC
Explorer
March 9, 2023
Question

Cable Testing via FortiGate CLI

  • March 9, 2023
  • 5 replies
  • 9337 views

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

abarushka
Staff
Staff
March 10, 2023

Hello,

 

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

Brent-BITSLLC
Explorer
March 10, 2023

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. 

Contributor III
March 11, 2023

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

AaronG_47
New Member
February 2, 2025

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

fortineteng
New Member
March 8, 2025

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

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!