I’m running chef-client 12.5.1 against chef-server 12.3.1 and I am trying to get knife node show <nodename> to show me the same info that I see in knife node edit <nodename>. Specifically the name, run_list, chef_environment, and node attributes.
Using the --medium or --long don’t seem to affect the output. I still get just the node name and run_list.
However, I have found that if I execute knife node show <nodename> -a chef_environment -a normal then I see those things. Why would --long work for others but not me?
A few issues. First chef_environment isn’t a node attribute, and normal is an attribute level not an attribute. Second, you would want to add --format json.
Regardless of semantics, knife node show <nodename> -a chef_environment -a normal -a run_list shows me what others tell me that knife node show <nodename> --long shows them. I know about JSON format. That’s not the issue. Same result, but different format, with or without -Fj.
Do you have anything unusual in your knife config? The way the config is merged, it’s possible to set some settings that you might think would only apply on the command line.