06-10-2016 11:46 AM - edited 03-12-2019 06:09 PM
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.
06-10-2016 08:05 PM
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.
06-14-2016 02:33 AM
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.
06-14-2016 05:47 AM
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?
07-07-2016 02:40 PM
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.
07-20-2016 01:09 PM
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.
05-28-2019 03:52 PM
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.
07-21-2016 10:41 AM
Hi,
For object "not object-group", you can use this command:
"show run object in-line | in <ip_address>"
;)
11-13-2018 06:06 AM
06-04-2019 08:10 AM
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