Fortinet white logo
Fortinet white logo

CLI Reference

diagnose central-mgmt script-history

diagnose central-mgmt script-history

Use these commands to manage script execution records:

diagnose central-mgmt script-history test   Generate sample script execution records.
diagnose central-mgmt script-history list   List the script execution history.
diagnose central-mgmt script-history clear   Delete the script execution history.
diagnose central-mgmt script-history del <record_ID>   Delete the specified script execution record.

Example output

This is sample output of the diagnose central-mgmt script-history test command:

# diagnose central-mgmt script-history test

One new script execution record has been created.

One new script execution record has been created.

One new script execution record has been created.

This is sample output of the diagnose central-mgmt script-history list command:

# diagnose central-mgmt script-history list

There are 5 script execution logs:

ID Time Type Status Name

----------------------------------------------------

#4 2018-09-05 08:53:01 Local Success 123456789012345678901234567890123456789012345678901

#3 2018-09-05 08:53:01 Remote Success 12

#2 2018-09-05 08:53:01 Local Failure reset_hostname.conf

#1 2018-02-09 02:31:32 Local Failure test.txt

#0 2018-02-09 02:29:43 Local Failure test.txt

----------------------------------------------------

diagnose central-mgmt script-history

diagnose central-mgmt script-history

Use these commands to manage script execution records:

diagnose central-mgmt script-history test   Generate sample script execution records.
diagnose central-mgmt script-history list   List the script execution history.
diagnose central-mgmt script-history clear   Delete the script execution history.
diagnose central-mgmt script-history del <record_ID>   Delete the specified script execution record.

Example output

This is sample output of the diagnose central-mgmt script-history test command:

# diagnose central-mgmt script-history test

One new script execution record has been created.

One new script execution record has been created.

One new script execution record has been created.

This is sample output of the diagnose central-mgmt script-history list command:

# diagnose central-mgmt script-history list

There are 5 script execution logs:

ID Time Type Status Name

----------------------------------------------------

#4 2018-09-05 08:53:01 Local Success 123456789012345678901234567890123456789012345678901

#3 2018-09-05 08:53:01 Remote Success 12

#2 2018-09-05 08:53:01 Local Failure reset_hostname.conf

#1 2018-02-09 02:31:32 Local Failure test.txt

#0 2018-02-09 02:29:43 Local Failure test.txt

----------------------------------------------------