Fortinet black logo

CLI Reference

fmnetwork

fmnetwork

Use the following commands for network related settings.

fmnetwork arp

Use this command to manage ARP.

Syntax

diagnose fmnetwork arp del <intf-name> <IP>

diagnose fmnetwork arp list

Variable

Description

del <intf-name> <IP>

Delete an ARP entry.

list

List ARP entries.

fmnetwork interface

Use this command to view interface information.

Syntax

diagnose fmnetwork interface detail <portX>

diagnose fmnetwork interface list <portX>

Variable

Description

detail <portX>

View a specific interface’s details. For example: port1.

list <portX>

List all interface details. For example: port1.

fmnetwork netstat

Use this command to view network statistics.

Syntax

diagnose fmnetwork netstat list

diagnose fmnetwork netstat list [-r]

diagnose fmnetwork netstat tcp

diagnose fmnetwork netstat tcp [-r]

diagnose fmnetwork netstat udp

diagnose fmnetwork netstat udp [-r]

Variable

Description

list

List all connections.

list [-r]

Use -r to list only resolved IPv4 addresses.

tcp

List all TCP connections.

tcp [-r]

Use -r to list only resolved IPv4 addresses.

udp

List all UDP connections.

udp [-r]

Use -r to list only resolved IPv4 addresses.

fmnetwork

Use the following commands for network related settings.

fmnetwork arp

Use this command to manage ARP.

Syntax

diagnose fmnetwork arp del <intf-name> <IP>

diagnose fmnetwork arp list

Variable

Description

del <intf-name> <IP>

Delete an ARP entry.

list

List ARP entries.

fmnetwork interface

Use this command to view interface information.

Syntax

diagnose fmnetwork interface detail <portX>

diagnose fmnetwork interface list <portX>

Variable

Description

detail <portX>

View a specific interface’s details. For example: port1.

list <portX>

List all interface details. For example: port1.

fmnetwork netstat

Use this command to view network statistics.

Syntax

diagnose fmnetwork netstat list

diagnose fmnetwork netstat list [-r]

diagnose fmnetwork netstat tcp

diagnose fmnetwork netstat tcp [-r]

diagnose fmnetwork netstat udp

diagnose fmnetwork netstat udp [-r]

Variable

Description

list

List all connections.

list [-r]

Use -r to list only resolved IPv4 addresses.

tcp

List all TCP connections.

tcp [-r]

Use -r to list only resolved IPv4 addresses.

udp

List all UDP connections.

udp [-r]

Use -r to list only resolved IPv4 addresses.