Rename FortiProxy based on FortiManager name (CLI/TCL?)
Hello,
I'm a bit newbie in Forti environment, but I'm trying to rename the appliance name with the "Device Name" entered in FortiManager:

I thought about CLI:
config system global
set hostname ${Hostname}
end
but for sure ${Hostname} is unknown
I thought about TCL:
#!
puts [exec_ondb "/adom/FortiProxy/device/." "
config system global
set hostname XXX
end
" "# "]
But with what replace XXX ?
Maybe there is another easy solution?
Thanks in advance