You are on page 1of 1

knofe ssh

to check the nodes role and env from the command line
knife node show name of the node

to edit the nodes from CLI


knife node edit name of the node

how to check the uptime of the node from workstation


knife ssh 'nem:node name' 'uptime'

to check the role assigned to perticular node


knife ssh 'role:rolename' 'ls -lrt'

knife ssh 'role:rolename' 'uptime'

remote executing the cookbooks

knife ssh 'role:rolename' 'sudo chef-client

creating environemnt and assigning it to nodes using chef server ui.

can we do this to windows machienes?


on premises chef server?

You might also like