Unused and Duplicate Address Object Script

L2 Linker

Unused and Duplicate Address Object Script

Hi all,


I saw previously someone posted a Perl script that finds unused address objects, but had some limitations.


From my end, I'm looking at trying to report on this via Powershell through the Invoke-RestMethod cmdlet that I've done against other bits of the API.


What in the schema (if any) on an address object determines whether or not it's actually being used?


Any and all insight(s) greatly appreciated :)

L4 Transporter

Re: Unused and Duplicate Address Object Script

Well, there's nothing in the address object definition itself that says if it is being used.  This means that you'd need to comb through the other places in the config where an address object could be referenced.  This includes stuff like address groups and various (all?) policy types.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!