Skip to main content
Gix-L
New Member
October 9, 2025
Question

Rename FortiProxy based on FortiManager name (CLI/TCL?)

  • October 9, 2025
  • 1 reply
  • 270 views

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:

 

 
 

2025-10-09_12h29_52.png

 

 

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

1 reply

singhl
Staff
Staff
October 9, 2025

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