cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4137
Views
15
Helpful
4
Replies

grep a section in Cisco ASA

networkinggeek
Level 1
Level 1

Hi

 

Say I have a object host IP, and I want to see under which object group it belongs to.

 

if I do show run | in IP (I only see the lines where the IP exist) not its main section and subsections. 

 

What grep command will help me get its complete section in Cisco ASA?

 

Thanks 

4 Replies 4

hslai
Cisco Employee
Cisco Employee

I moved your post to Firewalls, as it's specific to ASA.

I usually use "show run object group". Also see Finding what object groups an ip addres... - Cisco Community

GRANT3779
Spotlight
Spotlight
sh object-group network | inc object-group|x.x.x.x

Where x.x.x.x is the ip of host you are interested in should help. It will list groups with the IP/Host you are looking for.

so it partially helps, appreciate that. But it still show lines with text containing word object-group not relevant to my search. all I need is when I search the IP it lists down the IP and which group it is sitting under.

I also found this command for more refined result from other post.
#show running-config object network in-line | i x.x.x.x

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card