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
In this case Jinja variables for Device database will be best. See this guide for list of variables.
You can create a cli template with type jinja and use config script like this:
config system global
set hostname {{DVMDB.name}}
end
Here DVMDB.name is "Device Name" in the Device manager.
Regards,
Lovepreet
User | Count |
---|---|
2626 | |
1400 | |
810 | |
672 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.