Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.0
Download PDF
Copy Link

test

Use this command to display information about FortiGate applications and perform operations on FortiGate applications. You can specify an application name and a test level. Enter ? to display the list of applications. The test level performs various functions depending on the application but can include displaying memory usage, dropping connections and restarting the application.

The test levels are different for different applications. In some cases when you enter the command and include an application name but no test level (or an invalid test level) the command output includes a list of valid test levels.

Syntax

get test <application_name_str> <test_level_int>

Example output

get test http

Proxy Worker 0 - http

[0:H] HTTP Proxy Test Usage

[0:H]

[0:H] 2: Drop all connections

[0:H] 22: Drop max idle connections

[0:H] 222: Drop all idle connections

[0:H] 4: Display connection stat

[0:H] 44: Display info per connection

[0:H] 444: Display connections per state

[0:H] 4444: Display per-VDOM statistics

[0:H] 44444: Display information about idle connections

[0:H] 55: Display tcp info per connection

 

 

get test http 4

HTTP Common

Current Connections 0/8032

 

HTTP Stat

Bytes sent 0 (kb)

Bytes received 0 (kb)

Error Count (alloc) 0

Error Count (accept) 0

Error Count (bind) 0

Error Count (connect) 0

Error Count (socket) 0

Error Count (read) 0

Error Count (write) 0

Error Count (retry) 0

Error Count (poll) 0

Error Count (scan reset) 0

Error Count (urlfilter wait) 0

Last Error 0

Web responses clean 0

Web responses scan errors 0

Web responses detected 0

Web responses infected with worms 0

Web responses infected with viruses 0

Web responses infected with susp 0

Web responses file blocked 0

Web responses file exempt 0

Web responses bannedword detected 0

Web requests oversize pass 0

Web requests oversize block 0

URL requests exempt 0

URL requests blocked 0

URL requests passed 0

URL requests submit error 0

URL requests rating error 0

URL requests rating block 0

URL requests rating allow 0

URL requests infected with worms 0

Web requests detected 0

Web requests file blocked 0

Web requests file exempt 0

POST requests clean 0

POST requests scan errors 0

POST requests infected with viruses 0

POST requests infected with susp 0

POST requests file blocked 0

POST requests bannedword detected 0

POST requests oversize pass 0

POST requests oversize block 0

Web request backlog drop 0

Web response backlog drop 0

 

HTTP Accounting

setup_ok=0 setup_fail=0 conn_ok=0 conn_inp=0

urlfilter=0/0/0 uf_lookupf=0

scan=0 clt=0 srv=0

test

Use this command to display information about FortiGate applications and perform operations on FortiGate applications. You can specify an application name and a test level. Enter ? to display the list of applications. The test level performs various functions depending on the application but can include displaying memory usage, dropping connections and restarting the application.

The test levels are different for different applications. In some cases when you enter the command and include an application name but no test level (or an invalid test level) the command output includes a list of valid test levels.

Syntax

get test <application_name_str> <test_level_int>

Example output

get test http

Proxy Worker 0 - http

[0:H] HTTP Proxy Test Usage

[0:H]

[0:H] 2: Drop all connections

[0:H] 22: Drop max idle connections

[0:H] 222: Drop all idle connections

[0:H] 4: Display connection stat

[0:H] 44: Display info per connection

[0:H] 444: Display connections per state

[0:H] 4444: Display per-VDOM statistics

[0:H] 44444: Display information about idle connections

[0:H] 55: Display tcp info per connection

 

 

get test http 4

HTTP Common

Current Connections 0/8032

 

HTTP Stat

Bytes sent 0 (kb)

Bytes received 0 (kb)

Error Count (alloc) 0

Error Count (accept) 0

Error Count (bind) 0

Error Count (connect) 0

Error Count (socket) 0

Error Count (read) 0

Error Count (write) 0

Error Count (retry) 0

Error Count (poll) 0

Error Count (scan reset) 0

Error Count (urlfilter wait) 0

Last Error 0

Web responses clean 0

Web responses scan errors 0

Web responses detected 0

Web responses infected with worms 0

Web responses infected with viruses 0

Web responses infected with susp 0

Web responses file blocked 0

Web responses file exempt 0

Web responses bannedword detected 0

Web requests oversize pass 0

Web requests oversize block 0

URL requests exempt 0

URL requests blocked 0

URL requests passed 0

URL requests submit error 0

URL requests rating error 0

URL requests rating block 0

URL requests rating allow 0

URL requests infected with worms 0

Web requests detected 0

Web requests file blocked 0

Web requests file exempt 0

POST requests clean 0

POST requests scan errors 0

POST requests infected with viruses 0

POST requests infected with susp 0

POST requests file blocked 0

POST requests bannedword detected 0

POST requests oversize pass 0

POST requests oversize block 0

Web request backlog drop 0

Web response backlog drop 0

 

HTTP Accounting

setup_ok=0 setup_fail=0 conn_ok=0 conn_inp=0

urlfilter=0/0/0 uf_lookupf=0

scan=0 clt=0 srv=0