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

Questions About FortiADC 7.6.4 CLI Commands

Hi everyone,
I’m working with FortiADC 7.6.4 and would like to ask about a couple of CLI commands. If anyone has information, I’d appreciate your help.

 

1. Checking interface link status
    Is there a CLI command that shows the actual link status of an interface?
    According to the documentation, the command
    "get system interface"
    only provides the enabled/disabled status, so I understand it does not show the real-time link state.

 

    I also looked at the following command:

    "diagnose hardware get deviceinfo nic-detail"
    which appears to offer detailed NIC information, but it does not show the link status for aggregated (LAG) interfaces.

 

2. Deleting backup configuration files
    I know that configuration backups can be created using:
    "execute restore config disk <name>"
    However, I haven’t been able to find a CLI command that deletes configuration backup files stored on disk.
    Is there a way to remove these backup files through the CLI?

 

Thanks in advance for your support!

5 REPLIES 5
AEK
SuperUser
SuperUser

Hi Sakakura

 

1. Does this command help?

diagnose netlink interface list agg1

 

2. Command not found :(

AEK
AEK
Sakakura
New Contributor

AEK, thanks for your reply.


For some reason, the command you suggested only returns a blank line with no output.


The output looks something like this:

FortiADC # 
FortiADC # diagnose netlink interface list lag01 

FortiADC # 
FortiADC # 
FortiADC # diagnose netlink interface list port1 

FortiADC #

 

funkylicious

https://docs.fortinet.com/document/fortiadc/7.6.4/cli-reference/188513

try doing a ? after interface in order for the system to give you all the options and then select one. according to the link it should work/display the state/flag.

"jack of all trades, master of none"
"jack of all trades, master of none"
Sakakura

funkylicious, thanks for your reply.

 

When I type ?, the list of interfaces is displayed correctly.
In my previous reply, I simplified the output, but the same behavior occurs whether I am in global configuration or in a VDOM.
Below is the actual output (in the root VDOM; only the hostname has been changed):

 

FortiADC (root) #
FortiADC (root) # diagnose netlink interface list
<interface-name> interface name
port1 physical
port2 physical
port3 physical
port4 physical
port5 physical
port6 physical
port7 physical
port8 physical
DMZ2-lag01 redundant
Vlan110 vlan
Vlan113 vlan
Vlan111 vlan

FortiADC (root) # diagnose netlink interface list port1

FortiADC (root) #

 

It seems the documentation is based on FortiADC-VM. Is the behavior different on physical appliances?
My device is a FortiADC 220F.

funkylicious

there should not a difference in commands functionality/availability between HW and VM as far as i know, for other appliances at least it works the same.

"jack of all trades, master of none"
"jack of all trades, master of none"
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors