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 **
4 comments:
Thanks a lot for this tip, it will be very useful!
Cheers,
Useful ones are to find in which rules are an address group or an address:
diag 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.
fgt # print tablesize
use get to find the mkeys.
#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
Post a Comment