cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4000
Views
5
Helpful
9
Replies

How to get the Object-group name of an IP address?

Hi Friends,

I have an IP address, but want to find the object-group name of the IP that belongs to ? Please lemme know the command used for that.

9 Replies 9

Marvin Rhoads
Hall of Fame
Hall of Fame

There's no command that does that.

You will need to inspect the running-config and search for the IP address and see where it is defined.

Oh....

Please let me know is there a way to find the Object group of that IP by using | include to shortlist the lengthy running config.

Not really.

Objects are defined in two lines. If you begin on the line with the IP address you will miss the object name on the preceding line.

Why not do like I suggested, just save the configuration and then strip out all of the bits except object and object group definitions?

Hi Marvin,

Thank you for your valuable comments.

Today i used the below show command to check the object-group name of an IP

"sh run | in object-group|172.27.12.129"

It will list all the object-group names, but you can identify for which object-group the ip belongs to little easily i guess.

Yes, this is only command normally used. It will show all the configured object-groups (Network, Service & other) on the device.

Still if you want to get selected type of object-group out put, you can also use,

"sh run object-group network | in object-group|172.27.12.129"

It will show only Network object-group related output.

Hi Marvin,

I am using Cisco 6509 core switch , where this command is not working 

CORESW#sho run object-group network | i object-group|1.12.23.23
^
% Invalid input detected at '^' marker.

So please suggest any other command to find the object-group name by IP.

Dina Odeh
Level 1
Level 1

Hi, 

For object "not object-group", you can use this command: 

"show run object in-line | in <ip_address>" 

;) 

Thank you so much..


:)

vsurresh
Level 1
Level 1
sho run object-group network | i object-group|x.x.x.x
Review Cisco Networking products for a $25 gift card