1

Knife ssh has the -a option. I was lucky to find Knife SSH doesn't find my nodes to tell me that it's NOT called IP, as in knife search output, but ipaddress.

I would love to know where to find the doc detailing this and a reason for this being called ipaddress instead of IP.

Thanks!

Georg
  • 261

1 Answers1

5

The listing of attribute values is available via:

knife search node "name:NODENAME" -F json

It's in the automatic attributes, eg.:

"ipaddress": "11.1.111.111",

(More on attribute types like automatic.)

You just have to know that the output without -F json is not giving you useful attribute names for your scripting.

mgorven
  • 31,399
Georg
  • 261