Total Objects and Device Groups

Reply
Highlighted
L1 Bithead

Re: Total Objects and Device Groups

Hello,

 

Forgive my ignorance here (as i'm no programmer or anything by any means),

 

but trying to follow that logic in what you put below, i feel thats the opposite of what we want. we want to know which objects are NOT in use, by both panorama and the local firewalls themselves (which is the part of this thats a giant pain).

 

Thank you!

L7 Applicator

Re: Total Objects and Device Groups

@mjanik01 

Yo're right. It should be more like this pseudocode:

Foreach $object in $panoramaobjects {

     Foreach $firewall in $firewalls {

          If ($object is not in use)

               Delete-fw-object($object,$firewall)

               Delete-panlrama-object($object,$panorama)

          }

     }

}

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!