10-11-2011 06:27 AM - edited 03-11-2019 02:36 PM
Hello,
I find that every 6-12 months I will log on to the ASDM and go to the Network Objects/Groups section and spend ages right clicking on each object and seeing if it is still being used and if it isn't I then delete it. It can take a long time as our config is large, are there any better ways of keeping the ASA update to date?
Thanks
Solved! Go to Solution.
10-11-2011 06:41 AM
HI Andy,
You've got a difficult one here, there's no automated way for it, and it might include tedious overhead. You migt first need to run through the config. The best that I can think of is:
lets say you want to check whether object-group DM_INLINE_24 is being used somewhere or not then do:
show run | inc DM_INLINE_24
If it returns any ACL or nat statements, then it is being used, otherwise not.
Thanks,
Varun
10-11-2011 06:41 AM
HI Andy,
You've got a difficult one here, there's no automated way for it, and it might include tedious overhead. You migt first need to run through the config. The best that I can think of is:
lets say you want to check whether object-group DM_INLINE_24 is being used somewhere or not then do:
show run | inc DM_INLINE_24
If it returns any ACL or nat statements, then it is being used, otherwise not.
Thanks,
Varun
10-11-2011 06:43 AM
Thanks
02-08-2017 12:30 AM
The best way to delete all of not used objects to delete all objects. If the object is used, the ASA displays an error and not delete it.
11-19-2013 02:13 PM
Hello,
I know that this is a very old post, however, starting in ASDM 7.1(3), there is a "Not Used" button in the app. Click it and it will provide you list of objects/groups that are not being used in ACLs. You can then choose which objects to delete (they're all checked by default).
As of 7.1(4), however, there is no such feature for protocols/protocol groups.
Hopefully this helps someone - I know that it saved me a lot of time in a few firewall migration projects!
Rob.
11-19-2013 02:52 PM
Very cool!!!!
11-20-2013 01:10 AM
Hello,
Where is this button, I'm now on 7.1.(4) and will find this so useful.
Thanks
11-25-2013 01:58 PM
Hi,
Please advise that where to locate this button.
Thanks
11-25-2013 03:10 PM
This one was new to me as well. I searched and could not find mention of it in either the release notes or configuration guide.
To find it, go into the "Configuration, Firewall" section and make sure you have turned on "View, Addresses". You should then see the "Not Used" button as shown below (click to enlarge screenshot):
02-28-2014 12:19 PM
We noticed a issue with using that button:
If the object has a NAT associated with it, using that button will still show the object is not used and will delete the NAT.
Although when doing a right click on the object and "Where used" will show that it's used in a NAT rule.
03-19-2019 03:02 AM
Hi,
Is this problem still exist?
11-25-2013 07:57 PM
One more resource-
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide