Dameon Welch-Abernathy

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

Discussion created by Dameon Welch-Abernathy Moderator on Dec 19, 2018

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"

Outcomes