Search code examples
ubuntulinux-kernelchef-infrachef-recipeknife

Knife list kernel version in an environment


I am trying to find the command to list the kernel version for each node in an environment.

The following command only list the nodes but not the kernel version.

knife search node 'chef_environment:production'

Solution

  • You want:

    knife search node 'chef_environment:production' -a kernel.release