FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
mzainuddinahm
Article Id 192935

Description

 

This article describes how to resolve an issue where the 'execute update-now' command fails with error 'Command fail. Return code 6'.

 

Scope

 

FortiGate.

Solution


The command 'execute update-now' can fail when executed.
The primary issue investigated was license expired/warning messages on FortiGate.


When attempting to update the unit using 'execute update-now', the command fails with the error 'Command fail. Return code 6'.

 

To solve the issue:

 

  1. Make sure the admin logged in has full rights.
  2. Check the running processes using the following command to find out the pid of the 'updated' daemon.

diag sys top

 

  1. Use this command to kill the updated daemon:

diagnose sys kill 11 <pid_of_updated>

 

  1. Next, trigger an automatic update using the following command:

execute update-now

 

  1. Check the licensing status of the unit.

(Please note that, in an HA cluster, the 'updated' process does not run on the secondary device. All updates are performed by the primary device, which forwards them to the secondary).

 

Related articles

Technical Tip: Diagnose sys top CLI command.