Does 'knife winrm' use Chef Server?

Hi,
Just curious if ‘knife winrm’ goes through the Chef Server or communicates directly with the node ?

thanks in advance.

Both? It queries the Chef server for which nodes to connect to, based on the query and attributes you select, and then talks directly to those nodes over WinRM.

Nathan Clemons
DevOps Engineer
Moxie Cloud Services (MCS)

O +1.425.467.5075
M +1.360.861.6291
E nclemons@gomoxie.com
W www.gomoxie.comhttp://www.gomoxie.com/

But don’t we already specify the node name to knife winrm and the command it needs to execute ? So why go to the Chef Server?
e.g.
knife winrm -m node1 ‘iisreset’ -x testuser -P testpass

Because –m says to bypass querying the Chef server and specify the node list manually. If you did something like “knife winrm ‘recipes:iis’ –x testuser –P testpass” it would fire against all nodes that have the iis recipe in their runlist.

Nathan Clemons
DevOps Engineer
Moxie Cloud Services (MCS)

O +1.425.467.5075
M +1.360.861.6291
E nclemons@gomoxie.com
W www.gomoxie.comhttp://www.gomoxie.com/