-
Notifications
You must be signed in to change notification settings - Fork 11
icsearch
nathan-opscode edited this page Sep 12, 2010
·
1 revision
icsearch is a command line wrapper that lets you query the iclassify server and is very useful for quickly gathering data. Like other iclassify utilities it will default to connecting to a server named ‘iclassify’, use your current username and prompt for as password. These can be overridden by the -s -u and -p options, respectively. The search query uses Solr Syntax.
search examples
Return all information about all nodes that have the tag ‘base’
icsearch ‘tag:base’
Return the hostname, uuid and host architecture (the first two are by default):
icsearch ‘tag:base’ -a architecture
Return only the hostname of all nodes whose host architecture attribute is i386:
icsearch ‘architecture:i386’ -a hostname -o
Return the hostname of all nodes who have the attribute vmwarehost set (note this is a custom attribute):
icsearch ‘vmwarehost:[* TO *]’ -a hostname -o