Skip to main content
ferio23
New Member
January 3, 2023
Question

FortiManager "Default Variables" accessible via Jinja/CLI script?

  • January 3, 2023
  • 1 reply
  • 1167 views

Haven't found any docs on this. Can I access default Meta Fields from devices via Jinja/CLI scripting.

I would love to use the following: Location, Device Name, FortiGate Model etc.

Right now I'm leveraging custom fields for this (a custom fortigate model meta field) which to me is redundant, since fortimanager already has that info, why would I need to enter that manually...

    1 reply

    gfleming
    Staff
    Staff
    January 4, 2023

    It looks possible if you explore /dvmdb/device, there's a get method where you can specify "meta fields" parameter to retrieve those fields.

     

    Explore the documentation on https://fndn.fortinet.net for more details.