Fortinet Document Library

Version:

Version:

Version:


Table of Contents

Cookbook

Download PDF
Copy Link

Aggregate processes information

The diagnose sys top-summary CLI command shows the top aggregate processes information.

The following commands can be used while the command is running:

h or ?

Show the list of available commands

q or <Ctrl> C

Quit, and return to the command prompt.

m

Sort by memory consumption.

c

Sort by CPU percentage.

f

Sort by the number of open file descriptors.

p

Sort by PID.

k or <Up>

Go up in the list of processes.

j or <Down>

Go down in the list of processes.

<Enter> or <Space>

Toggle the process tree.

Syntax

diagnose sys top-summary <options>

Options

Description

-n LINES or --num=LINES

The number of top processes to show (default = 20).
-i INTERVAL or --interval=INTERVAL The update interval, in seconds (default = 1).
-s SORT or --sort=SORT

The sort mode:

  • cpu_percent: Sort by CPU percentage (default).
  • mem: Sort be memory consumption,
  • fds: Sort by the number of open file descriptors.
  • pid: Sort by PID.

-h or --help

Show the help message and exit.

Example output

# diagnose sys top-summary ‘-n 5 --sort=mem’
   CPU [|                                       ]   4.8%
   Mem [|||||||||||||||||||||                   ]  54.0%  1100M/2012M
   Processes: 5 (running=1 sleeping=106)
   PID      RSS   CPU% ^MEM%   FDS     TIME+  NAME
 * 150      67M    0.0  3.4    22  01:11.84  httpsd [x4]
   171      57M    0.0  2.8   100  00:21.99  wad [x6]
   8050     46M    0.0  2.3    12  00:00.38  pyfcgid [x4]
   168      45M    0.0  2.3    16  00:05.57  reportd
   159      41M    0.0  2.1    26  00:48.88  forticron

The output shows five lines, sorted in descending order by memory consumption.

  • ^ indicates the parameter that the information is sorted by.
  • * indicates the currently active line.

Press c to sort the processes by CPU utilization, then press <Down> four times to select the miglogd parent instance, and then press <Enter> to see details about the child instance:

   CPU [|                                       ]   4.8%
   Mem [|||||||||||||||||||||                   ]  54.0%  1099M/2012M
   Processes: 5 (running=1 sleeping=106)
   PID      RSS  ^CPU% MEM%   FDS     TIME+  NAME
   180      35M    4.8  1.8    12  00:01.51  sshd [x4]
   134       9M    0.0  0.5    88  00:09.99  zebos_launcher [x12]
   135       6M    0.0  0.3    12  00:01.45  bfdd
   147       6M    0.0  0.3    12  00:00.70  uploadd
 * 148      22M    0.0  1.1   103  01:29.71  miglogd [x2]
    203      22M    0.0  1.1    42  00:44.53  miglogd

Aggregate processes information

The diagnose sys top-summary CLI command shows the top aggregate processes information.

The following commands can be used while the command is running:

h or ?

Show the list of available commands

q or <Ctrl> C

Quit, and return to the command prompt.

m

Sort by memory consumption.

c

Sort by CPU percentage.

f

Sort by the number of open file descriptors.

p

Sort by PID.

k or <Up>

Go up in the list of processes.

j or <Down>

Go down in the list of processes.

<Enter> or <Space>

Toggle the process tree.

Syntax

diagnose sys top-summary <options>

Options

Description

-n LINES or --num=LINES

The number of top processes to show (default = 20).
-i INTERVAL or --interval=INTERVAL The update interval, in seconds (default = 1).
-s SORT or --sort=SORT

The sort mode:

  • cpu_percent: Sort by CPU percentage (default).
  • mem: Sort be memory consumption,
  • fds: Sort by the number of open file descriptors.
  • pid: Sort by PID.

-h or --help

Show the help message and exit.

Example output

# diagnose sys top-summary ‘-n 5 --sort=mem’
   CPU [|                                       ]   4.8%
   Mem [|||||||||||||||||||||                   ]  54.0%  1100M/2012M
   Processes: 5 (running=1 sleeping=106)
   PID      RSS   CPU% ^MEM%   FDS     TIME+  NAME
 * 150      67M    0.0  3.4    22  01:11.84  httpsd [x4]
   171      57M    0.0  2.8   100  00:21.99  wad [x6]
   8050     46M    0.0  2.3    12  00:00.38  pyfcgid [x4]
   168      45M    0.0  2.3    16  00:05.57  reportd
   159      41M    0.0  2.1    26  00:48.88  forticron

The output shows five lines, sorted in descending order by memory consumption.

  • ^ indicates the parameter that the information is sorted by.
  • * indicates the currently active line.

Press c to sort the processes by CPU utilization, then press <Down> four times to select the miglogd parent instance, and then press <Enter> to see details about the child instance:

   CPU [|                                       ]   4.8%
   Mem [|||||||||||||||||||||                   ]  54.0%  1099M/2012M
   Processes: 5 (running=1 sleeping=106)
   PID      RSS  ^CPU% MEM%   FDS     TIME+  NAME
   180      35M    4.8  1.8    12  00:01.51  sshd [x4]
   134       9M    0.0  0.5    88  00:09.99  zebos_launcher [x12]
   135       6M    0.0  0.3    12  00:01.45  bfdd
   147       6M    0.0  0.3    12  00:00.70  uploadd
 * 148      22M    0.0  1.1   103  01:29.71  miglogd [x2]
    203      22M    0.0  1.1    42  00:44.53  miglogd