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.
gmanea
Staff
Staff
Article Id 195654

Description
This article describes the changes in command line for the command used to refresh some of the FortiGuard internal resources, like icons or sprites, for a normal output of application logos, or other display elements.
The problem reported before and concerning the default traffic icon in logs and FortiView as being replaced with an icon from the game Among-us , is caused by a display problem in the browsers. 

The sprites.map is an image that contains multiple icons for various applications. In an alphabetical order, 'Among-US' game app is placed first.
When loading this in the browser, the first icon was considered the default, so the display of the logs appeared corrupted. 
By refreshing the sprite-map in FortiGate, or clearing the browser cache, the issue is gone.
 

Scope


Solution
In FortiGate, several resources are stored in a separate file for ease of access. 
 
If these files become corrupted, there is a way to restore them to the default values. 
The following commands can be used to refresh (re-download) these elements from FortiGuard:
 
FortiOS 6.0.1 and prior:   # diagnose web-ui app-icon-update
FortiOS 6.0.2 and newer:  # diagnose fortiguard-resource update ?
 
This command has several parameters that can be used:
 
FortiGate # diagnose fortiguard-resource update ?
sprite-map.png    <----- Application icon sprite map (PNG).
sprite-map.css    <----- Application icon sprite map (CSS).
sprite-isdb.png   <----- Application icon sprite ISDB (PNG).
sprite-isdb.css   <----- Application icon sprite ISDB (CSS).
app-info          <----- Application info for a given ID.
ips-information   <----- IPS information for a given ID.
wf-categories     <----- Web filter categories.
app-categories    <----- Application categories.
prefix-links      <----- Prefix links.
static-links      <----- Static links.
 
A successful update will look like this: 
 
FortiGate # diagnose fortiguard-resource update sprite-map.png 
Deleted cached resource files
Downloading...
Successfully downloaded sprite-map.png
Size:   2201597 bytes
ETag:   "987561bdeeea4cb698331d2f3992a0ce"
MD5:    987561bdeeea4cb698331d2f3992a0ce
 
While a failed update (likely due to connection problems):
 
FortiGate # diag fortiguard-resources update sprite-map.png 
Deleted cached resource files
Command fail. Return code -1
Contributors