BMC Atrium Discovery Community Forum

This forum is now closed. Please check sticky posts and announcements for further information.

Links to new community:

forgot password?
   
 
Help on search query syntax
Posted: 05 February 2014 11:16 AM   [ Ignore ]  
RankRank
Member
Total Posts:  20
Joined:  2013-09-03

Hello,

please I need to write a generic search query which search all the host where the hostname is included in a set of hostname, something like “SEARCH Host WHERE Hostname IN ....
Please could help me to write the correct query?

Thanks,
Emanuele

Profile
 
 
Posted: 05 February 2014 11:34 AM   [ Ignore ]   [ # 1 ]  
BMC ADDM Staff
RankRankRankRank
Administrator
Total Posts:  2089
Joined:  2008-02-12

Attribute names are case sensitive.

It really depends upon you host names.

SEARCH Host WHERE hostname IN ['name1''name2'

or using a regex

SEARCH Host WHERE hostname LIKE 'regex' 
Profile
 
 
Posted: 05 February 2014 11:52 AM   [ Ignore ]   [ # 2 ]  
RankRank
Member
Total Posts:  20
Joined:  2013-09-03

Hi,

Thank you !! It worked !

Profile