I am trying to display all attributes for all nodes using a single knife command. I would specifically like to see the attributes set at the normal level
please help
knife node show $name --format json --long
. Or the shorter form knife node show $name -Fj -l
. (if you just want normal attrs you can also use -m/--medium
)
This is a bit tricky, depends on what you want to achieve.
You could fire this query:
knife search node 'name:*' -F j
This will fetch you all nodes and their data in JSON format mind you, but it'd be better if you can think of parameters to filter nodes depending on some attribute. Could be some attribute you set or something like role:WEB
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With