Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
PhoneBoy
Admin
Admin

How to search all objects who's name contains specific text

Here’s how you can list the UIDs for all objects whose name contain the text ‘echo’.

This is using the management CLI and jq utility. 


[Expert@r80_20_ga:0]# mgmt_cli show objects filter echo -s id.txt -f json | jq '.objects[] | [.name , .uid, .type] | @csv ' -r
"echo","97aeb46a-9aea-11d5-bd16-0090272ccb30","service-group"
"Echo","00fa9e3c-b2f4-0f65-e053-08241dc22da2","application-site"
"echo-reply","97aeb406-9aea-11d5-bd16-0090272ccb30","service-icmp"
"echo-reply6","ac85a522-916a-4ce0-8411-32d1d0016348","service-icmp6"
"echo-request","97aeb40a-9aea-11d5-bd16-0090272ccb30","service-icmp"
"echo-request6","cecf9574-01e7-4125-b9c4-f26f50c66f73","service-icmp6"
"echo-tcp","97aeb3f7-9aea-11d5-bd16-0090272ccb30","service-tcp"
"echo-udp","97aeb3f8-9aea-11d5-bd16-0090272ccb30","service-udp"
"Echopic","00fa9e3c-b2b1-0f65-e053-08241dc22da2","application-site"
"EchoSign","00fa9e44-3e01-0f65-e053-08241dc22da2","application-site"
"EchoSign-upload","06df9e86-c034-657d-e053-08241dc2b9e0","application-site"
"Echoware","00fa9e41-f9ba-0f65-e053-08241dc22da2","application-site"

2 Replies
hcampuzano
Participant

How can I search an object by its value, no its name.
For example, I need to know what host object has the IP address 172.18.90.45.
Thanks.

0 Kudos
PhoneBoy
Admin
Admin

It should be the same syntax to search for an IP address (replace echo with the IP address in quotes).

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events