Skip to main content

FortiOS Command Examples

Official Documentation References

  1. FortiOS CLI Basics
  2. Basic Configuration

Using grep to Filter Output

The get, show, and diagnose commands can produce large amounts of output. The grep command can be used to filter the output so that it only shows the required information.

get hardware nic internal | grep Current_HWaddr

Common Commands

Get Routing Table

get router info routing-table all

Ping

execute ping <domain.tld>

Ping Options

  1. Choose interface
execute ping-options <interface>