From the CLI, enter the following command:
diagnose sys path.object.mkey
This will return all objects where the specified object key is referenced.
For example:
diagnose sys checkused sytem.interface.name dmz
entry used by table system.interface:name 'vlan1‘
** If someone out there knows of a place where Fortinet lists all the object references please post a comment and I will update this article **
Thanks a lot for this tip, it will be very useful!
ReplyDeleteCheers,
Useful ones are to find in which rules are an address group or an address:
ReplyDeletediag sys checkused firewall.addrgrp:name 'Group-Name'
diag sys checkused firewall.address:name 'Address-Name'
To find all of the available object key declarations across the entire system, execute the following command.
ReplyDeletefgt # print tablesize
use get to find the mkeys.
ReplyDelete#get webfilter urlfilter
== [ 1 ]
id: 1 name: ImAURLFilter
== [ 2 ]
id: 2 name: Whitelist
== [ 3 ]
id: 3 name: Blacklist
diag sys checkused webfilter.urlfilter.id 1
diag sys checkused webfilter.urlfilter.name ImAURLFilter