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?
Hello,
Could you please elaborate whether you are referring to HQIP or some other test?
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.
Created on 03-11-2023 12:09 AM Edited on 03-11-2023 12:10 AM
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
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
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
User | Count |
---|---|
2330 | |
1262 | |
772 | |
453 | |
436 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.