Technical Tip: How to recreate the web-based manager dashboard from the CLI in FortiOS
Description
This article explains how to recreate the web based manager dashboard from the CLI of the FortiGate.
Scope
FortiOS all versions.
Solution
config system admin
edit "admin"
config dashboard-tabs
edit 1
set name "Status"
next
edit 2
set name "Usage"
next
end
config dashboard
edit 1
set tab-id 1
set column 1
next
edit 2
set widget-type licinfo
set tab-id 1
set column 1
next
edit 3
set widget-type sysres
set tab-id 1
set column 1
next
edit 4
set widget-type jsconsole
set tab-id 1
set column 1
next
edit 5
set widget-type sysop
set tab-id 1
set column 2
next
edit 6
set widget-type alert
set tab-id 1
set column 2
next
edit 7
set widget-type sessions
set tab-id 1
set column 2
next
edit 8
set widget-type pol-usage
set tab-id 1
set column 2
next
edit 9
set widget-type per-ip-usage
set tab-id 2
set column 1
next
edit 10
set widget-type tr-history
set tab-id 2
set column 1
next
edit 11
set widget-type statistics
set tab-id 2
set column 2
next
end
next
end
Additional note: On newer versions of the FortiOS (including branch 7.2.x, 7.4.x, 7.6.x), this configuration has slightly changed.
The configuration will now look as follows:
config system admin
edit "admin"
config gui-dashboard
edit 23
set name "Status"
set vdom "root"
set permanent enable
config widget
edit 1
set width 1
set height 1
next
edit 2
set type licinfo
set x-pos 1
set width 1
set height 1
next
edit 3
set type vminfo
set x-pos 2
set width 1
set height 1
next
edit 4
set type forticloud
set x-pos 3
set width 1
set height 1
next
edit 5
set type security-fabric
set x-pos 4
set width 1
set height 1
next
edit 6
set type admins
set x-pos 5
set width 1
set height 1
next
edit 7
set type cpu-usage
set x-pos 6
set width 2
set height 1
next
edit 8
set type memory-usage
set x-pos 7
set width 2
set height 1
next
edit 9
set type sessions
set x-pos 8
set width 2
set height 1
next
end
next
end
The example above is taken from the FortiOS v7.4.9, but the same steps are also true for branch 7.6.x.
It is possible that the following command will not be auto-filled with the Tab key, so it will have to be written fully:
......
config gui-dashboard
.....