Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Variables in CLI Scripts
Hi all
are there any usable parameters / variables in CLI scripts?
Like $HOSTNAME
is there a list available?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Where can i find variable list?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Sam_FTNT We have some news about what's in thread?, since apparently the command "%%devname%%" fails to compile correctly.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, all. I want to use system variables in my scripts, but none of the ones like %%date%%, %%hostname%%, or %%dev.id%% work. Any word on host to grab variables like dates, hostnames, device serials, etc?
