Fortinet white logo
Fortinet white logo

CLI Reference

diagnose system top

diagnose system top

Use this command to view a list of the most system-intensive processes and to change the refresh rate.

Syntax

diagnose system top [delay <integer>]

delay

Refresh interval (seconds).

Once you execute this command, it continues to run and display in the CLI window until you enter q (quit).

While the command is running, you can press Shift + P to sort the five columns of data by CPU usage (the default) or Shift + M to sort by memory usage.

Example

This example displays a list of the top system processes and sets the update interval at 10 seconds.

FortiADC-VM # diagnose system top ?

delay refresh display period

FortiADC-VM # diagnose system top delay ?

<delay> delay in seconds

FortiADC-VM # diagnose system top delay 30

Run Time: 13 days, 5 hours and 9 minutes

0U, 1S, 97I; 1620T, 613F

php-fpm 635 S 1.9 0.7

php-fpm 636 S 1.9 0.7

mysqld 528 S 0.0 5.8

named 1238 S 0.0 1.0

alertemail 522 S 0.0 0.9

php-fpm 13467 S 0.0 0.6

php-fpm 525 S 0.0 0.6

cmdbsvr 86 S 0.0 0.6

cli 13065 S 0.0 0.5

snmpd 536 S 0.0 0.2

miglogd 523 S 0.0 0.2

nginx 524 S 0.0 0.2

updated 512 S 0.0 0.2

cli 21276 R 0.0 0.2

flg_indexd 10367 S 0.0 0.2

lb 520 S 0.0 0.2

sshd 515 S 0.0 0.2

scheduled 506 S 0.0 0.2

info_cente 533 S 0.0 0.2

crlupdated 535 S 0.0 0.2

hasyncd 518 S 0.0 0.2

flg_access 10370 S 0.0 0.2

llbd 507 S 0.0 0.1

netd 511 S 0.0 0.1

lvs 517 S 0.0 0.1

gdns 516 S 0.0 0.1

llbr_hcd 509 S 0.0 0.1

keepalived 519 S 0.0 0.1

getty 513 S 0.0 0.1

The first line indicates the up time. The second line lists the processor and memory usage, where the parameters from left to right mean:

  • U — Percent of user CPU usage (in this case 0%)
  • S — Percent of system CPU usage (in this case 1%)
  • I — Percentage of CPU idle (in this case 97%)
  • T — Total memory in kilobytes (in this case 1620 KB)
  • F — Available memory in kilobytes (in this case 613 KB)

The five columns of data provide the process name (such as updated), the process ID (pid), the running status, the CPU usage, and the memory usage. The status values are:

  • S — Sleeping (idle)
  • R — Running
  • Z — Zombie (crashed)
  • < — High priority
  • N — Low priority

diagnose system top

diagnose system top

Use this command to view a list of the most system-intensive processes and to change the refresh rate.

Syntax

diagnose system top [delay <integer>]

delay

Refresh interval (seconds).

Once you execute this command, it continues to run and display in the CLI window until you enter q (quit).

While the command is running, you can press Shift + P to sort the five columns of data by CPU usage (the default) or Shift + M to sort by memory usage.

Example

This example displays a list of the top system processes and sets the update interval at 10 seconds.

FortiADC-VM # diagnose system top ?

delay refresh display period

FortiADC-VM # diagnose system top delay ?

<delay> delay in seconds

FortiADC-VM # diagnose system top delay 30

Run Time: 13 days, 5 hours and 9 minutes

0U, 1S, 97I; 1620T, 613F

php-fpm 635 S 1.9 0.7

php-fpm 636 S 1.9 0.7

mysqld 528 S 0.0 5.8

named 1238 S 0.0 1.0

alertemail 522 S 0.0 0.9

php-fpm 13467 S 0.0 0.6

php-fpm 525 S 0.0 0.6

cmdbsvr 86 S 0.0 0.6

cli 13065 S 0.0 0.5

snmpd 536 S 0.0 0.2

miglogd 523 S 0.0 0.2

nginx 524 S 0.0 0.2

updated 512 S 0.0 0.2

cli 21276 R 0.0 0.2

flg_indexd 10367 S 0.0 0.2

lb 520 S 0.0 0.2

sshd 515 S 0.0 0.2

scheduled 506 S 0.0 0.2

info_cente 533 S 0.0 0.2

crlupdated 535 S 0.0 0.2

hasyncd 518 S 0.0 0.2

flg_access 10370 S 0.0 0.2

llbd 507 S 0.0 0.1

netd 511 S 0.0 0.1

lvs 517 S 0.0 0.1

gdns 516 S 0.0 0.1

llbr_hcd 509 S 0.0 0.1

keepalived 519 S 0.0 0.1

getty 513 S 0.0 0.1

The first line indicates the up time. The second line lists the processor and memory usage, where the parameters from left to right mean:

  • U — Percent of user CPU usage (in this case 0%)
  • S — Percent of system CPU usage (in this case 1%)
  • I — Percentage of CPU idle (in this case 97%)
  • T — Total memory in kilobytes (in this case 1620 KB)
  • F — Available memory in kilobytes (in this case 613 KB)

The five columns of data provide the process name (such as updated), the process ID (pid), the running status, the CPU usage, and the memory usage. The status values are:

  • S — Sleeping (idle)
  • R — Running
  • Z — Zombie (crashed)
  • < — High priority
  • N — Low priority