Information Technology Reference
In-Depth Information
$ knife search node "name:susu OR name:atwood"
2 items found
Node Name: atwood
Environment: _default
FQDN: atwood.playground.local
IP: 192.168.33.31
Run List: recipe[apache], recipe[motd]
Roles:
Recipes: apache, motd
Platform: centos 6.5
Tags:
Node Name: susu
Environment: _default
FQDN: susu.playground.local
IP: 192.168.33.33
Run List: recipe[apache], recipe[motd]
Roles:
Recipes: apache, motd
Platform: centos 6.5
Tags:
Logical AND can be used as well, if you want to return results matching all value criteria:
$ knife search node "ipaddress:192* AND platform:ubuntu"
1 items found
Node Name: snowman
Environment: _default
FQDN: snowman.playground.local
IP: 192.168.33.32
Run List: recipe[apache], recipe[motd], recipe[motd-attributes]
Roles:
Recipes: apache, motd, motd-attributes
Platform: ubuntu 14.04
Tags:
Search results can be filtered with the -a parameter. For example, -a ipaddress only re-
turns the value for the ipaddress attribute:
$ knife search node "*:*" -a ipaddress
3 items found
Search WWH ::




Custom Search