06-08-2018 11:44 AM - edited 02-21-2020 07:51 AM
Hi Anyone how a make the command show object-group network
returns the name, and comments for the object group?
like:
#show object-group network | inc 10.80.30.46
RETURNS (SAMPLE):
object-group network SERVERS
#DNS SERVERS#
network-object object 10.80.30.46
I need verify object, rules, nats, etc in almost 138 hosts, in 60 firewalls,
Thanks ahead,
#enablecisco
06-11-2018 01:16 AM
06-11-2018 01:42 AM
When looking though objects there is a nice option that lets me see the name of the object
ciscoasa# sh runn object in-line | i 10.0.0.0
object network OBJ-TEST subnet 10.0.0.0 255.0.0.0
Unfortunately for object groups that option is not available, but we can still use include for instance like this: sh run object-group | in ^object-group|<ip address>
It will show you the names of all the object-groups configured, but you should be able to get the object-group that contains a specific network.
Example:
object-group network OBJ-TEST
network-object 10.0.0.0 255.0.0.0
object-group network OBJ-TEST2
network-object 172.16.0.0 255.240.0.0
object-group network OBJ-TEST3
network-object 192.168.0.0 255.255.0.0
!
ASA-HH-Amelungstr/sec/act# sh run object-group | in ^object-group|10.0.0.0
object-group network OBJ-TEST
network-object 10.0.0.0 255.255.255.0
object-group network OBJ-TEST2
object-group network OBJ-TEST3
HTH
Bogdan
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