08-30-2025 01:06 PM
Hi ,
We have multiple objects part of an Object-group in Cisco ASA, and wonder if there is any command that we can run to get all the IP addresses in that object-group instead of running sh run object id object-name for each object separately?
please advise
Solved! Go to Solution.
08-31-2025 04:27 AM
Sure - I have not noticed until i have ASA 9.20 code (later moved to FTD now)
08-30-2025 01:15 PM
show running-config | include object
08-30-2025 01:16 PM
@sasanka1912 show run object-group ?
Example:-
ASA# show run object-group
object-group network DNS-SERVERS
network-object host 208.67.220.220
network-object host 208.67.222.222
object-group network ALL-VLANS
network-object object VLAN4
network-object object VLAN5
08-30-2025 01:26 PM
@Rob Ingram we have multiple object groups, and I was looking for a command to find all the ip addresses belong to the objects in that object group .
for ex- lets say my object group name is ISP-SERVERS
And i have the below objects part of the that ISP-SERVER group.
Object-xserver1 ISP1
Object-xserver ISP2 etc
and if i do sh run object id object-xserver1
it will give the ip details such as lets say 200.10.10.0/24
instead of running sh run object id xxx , is there any command to get all the ip's associated with that objects , in that particular object group..
Thanks
08-30-2025 01:29 PM
Did you ever check my command?
MHM
08-30-2025 01:34 PM
@sasanka1912 not natively in ASA without some sorting and filtering. Perhaps create a python script to do this for you?
08-30-2025 01:47 PM - edited 08-30-2025 01:48 PM
@MHM Cisco World , Thanks for your reply and i did run that command, and it will only give the object name instead of the associated ip details.
@Rob Ingram sh run object-group id xxx will give essentially the same result .. probably i will try and see if i run a script instead.
Thanks both for your replies..
08-30-2025 01:58 PM - edited 08-31-2025 04:23 AM
Dont fast give up
Try this
running-config | section object-group | include network-object
Try above
MHM
08-30-2025 11:28 PM
I have used Python script before - check if that help you :
08-31-2025 04:10 AM
@balaji.bandi Thanks ..Will test this and let you know ..I guess there is no native command in ASA apart from using a python script as you mentioned above..Thanks
08-31-2025 04:27 AM
Sure - I have not noticed until i have ASA 9.20 code (later moved to FTD now)
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