Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Uwe_Sommerfeld
New Contributor

Variables in CLI Scripts

Hi all are there any usable parameters / variables in CLI scripts? Like $HOSTNAME is there a list available?
3 REPLIES 3
csecmx
New Contributor

I´ve tried %%host%% and %%hostname%% with no luck; I´m trying to save a timestamp-and-hostname log file script; in the meantime I´ll use %%date%% %%time%% to add the timestamp and manually add the hostname (and maybe current fortiOS version of the device at the time of the backup).

 

Regards!

Sam_FTNT
Staff
Staff

Hi @csecmx For CLI Script variable of the Hostname use %%devname%%.

 

 

NSE8#3306
Byron1
New Contributor

Hi @Sam_FTNT We have some news about what's in thread?, since apparently the command "%%devname%%" fails to compile correctly. 

Labels
Top Kudoed Authors