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.
nevan
Staff
Staff
Article Id 338951
Description This article describes how to check the Firmware & General Updates  and FortiCare support contract expiry date from FortiOS CLI. 
Scope FortiGate, FortiProxy.
Solution

FortiCare support contract should be valid and up to date to get technical and engineering support from Fortinet. To check this contract detail, if it is valid or expired it can be checked from the GUI following the article:
Technical Tip: How to check FortiCare Support is registered in FortiOS GUI 

If the GUI access is not available or restricted it can be checked from the CLI too by login through an SSH connection.

CLI Session:

 

LAB1 # diagnose test update info contract 
...
      System contracts:
      ENHN,Mon Feb 17 12:00:00 2025
      COMP,Mon Feb 17 12:00:00 2025
      FMWR,Mon Feb 17 12:00:00 2025
      FURL,Mon Feb 17 12:00:00 2025
      SPAM,Mon Feb 17 12:00:00 2025
      SBCL,Mon Feb 17 12:00:00 2025
      ZHVO,Mon Feb 17 12:00:00 2025
      SPRT,Mon Feb 17 12:00:00 2025
      FRVS,Mon Feb 17 12:00:00 2025

...

Note:The 

'contract' word needs to be entered manually in the command as the tab will not auto-complete the command.

The 'grep' can be used with the filter 'FMWR' after that to get the information quickly:

 

fmwr.PNG

 

After purchasing a new license the device has to be registered in Forticare. If the registration is not being done the auto registration will take place after 60 to 90 days depending on the region and this information can be found is this article: Customer service Tip: Warranty and Contract Autostart policy.

 

The registration can be checked if it is pending state with the following CLI commands:

 

LAB1 # diagnose test update info contract | grep registration
pending_registration=255 got_contract_info=1
<-----

 

Related articles:
Technical Tip: How to upload account entiltement files for managed devices when FortiManager is oper...
Technical Tip: Unable to activate FortiCare/Unable to contact FortiGuard for update due to MTU