Diagnose Commands For FortiOS 3 - V2
Diagnose Commands For FortiOS 3 - V2
• In any case, the basis for this topic is common sense, and a
little of intuition in regard of the operative systems, network
and applications.
Active Connections
Microsoft Telnet>
Everyday Troubleshooting tips
The web server answered the
• Microsoft Telnet> open gama.fime.uanl.mx 80 command correctly with a
• Connecting To gama.fime.uanl.mx... webpage!
• GET / HTTP/1.0
• diag ip route ?
This command allows you to debug the router daemons, along with
the restarting of the processes of the routing daemon.
• get router ?
This command allows you to get routing information from all the
routing daemons of the FortiOS.
FortiOS Debug route commands
The options shown below in BOLD, are the command options
that you should ONLY USE. The usage of the other options
might cause product instability that COULD ONLY be
corrected by rebooting the unit. In the worst case, you could
be forced to restore a configuration or reinstall the firmware.
You’ve been warned.
• diag ip
address IP addresses
arp ARP table
multicast multicast information
route routing table
router router
rtcache routing cache
tcp TCP sockets
udp UDP sockets
FortiOS Debug route commands
• To show the IPs as seen by the FortiOS Kernel, use:
diag ip address
• add add IP address
• delete delete IP address
• flush flush IP addresses
• list list IP addresses
• To show the arp table, as seen by the FortiOS Kernel, use:
diag ip arp
• add add an ARP entry
• delete delete an ARP entry
• flush flush ARP table
• list show ARP table
FortiOS Debug route commands
The following command branch will show you the routing table
exactly as it is in the FortiOS Kernel. If a route is not here, it
does not matter if it is configured or not, please check if there
is no interface connected.
• diag ip route
add add static route
delete delete static route
flush flush routing table
list list routing table
verify verify static route
• You SHOULD ONLY USE the “list” command. Using any of
the other commands, specially flush, can cause FortiOS
instability that COULD ONLY be corrected by rebooting the
unit.
FortiOS Debug route commands
This command branch allows you to get all the routing information
packets as they are being received by the FortiOS. This output will
help you out to see any problem that might be with dynamic routing
or multicast, but you should understand this protocol’s informative
output.
• diag ip router
bfd BFD debug
bgp BGP protocol
command Send command to routing daemon
igmp IGMP debug
ospf OSPF protocol
pim-dm PIM dense-mode
pim-sm PIM sparse-mode
rip RIP protocol
FortiOS Debug route commands
• This is an example configuration for the rip daemon.
The same applies for each daemon process.
• get router
access-list access list configuration
aspath-list AS path list configuration
bgp router bgp configuration
community-list community list configuration
info show routing infomation
key-chain Key-chain configuration
multicast router multicast configuration
ospf router ospf configuration
Policy policy routing configuration
prefix-list prefix list configuration
rip router rip configuration
route-map route map configuration
static routing table configuration
static6 routing table configuration
FortiOS Debug route commands
• The output of the “get router” command, mostly shows the
configuration of the given routing protocol. We will be
focusing with the command branch of “get router info” here.
Each protocol has its own sintax, please use the inline help of the
FortiOS to provide the required parameters.
FortiOS Application Troubleshooting
• Diag debug application <process> <debug level>
• Line 03: signal 7 is usually quite rare to see, this would be most
likely something related to a memory leak
• diag firewall
fqdn fqdn
iplist ip list
ipmac ipmac
iprope iprope
iprope6 iprope6
ldb server load balance
proute Policy route
schedule schedule
statistic traffic statistics
FortiOS Firewall Troubleshooting
• The following command shows the properties of the firewall
connection table, as seen by the FortiOS. This branch has also
some self-explanatory useful commands.
• The rest of the commands are left for the students to test and
try. Use them wisely, please.
Best Practices to Escalate problems to
TAC.
• The KC includes a very useful troubleshooting guide with
most of the commands explained here, with usage examples
and recommendations.
• Troubleshooting guide.
http://kc.fortinet.com/default.asp?SID=&Lang=1&id=2094
Best Practices to Escalate problems to
TAC.
• When creating a ticket on the FortiCARE System once you
have determined there is an issue or bug on the FortiOS,
there are very well documented steps to escalate a ticket on
the following KC article:
http://kc.forticare.com/browsefile.asp?id=1475&SID=
The PDF file with the actual information can be found at:
• http://kc.forticare.com/redirfile.asp?id=1475&SID=