# Knife windows, what am I missing?

**URL:** <https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900>\
**Category:** Chef Infra (archive)\
**Created:** [November 7, 2014, 4:42pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900 "2014-11-07T16:42:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_F](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@Chris\_F](https://discourse.chef.io/u/Chris_F)\
**Post date:** [November 7, 2014, 4:42pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900/1 "2014-11-07T16:42:33Z")

</div>

This is on a RHEL workstation running chef-client v11.12.8

[chef-repos]# gem list | grep windows  
knife-windows (0.8.2)  
[chef-repos]# knife winrm help  
FATAL: Cannot find sub command for: ‘winrm help’

Of course the following command breaks

Knife bootstrap windows winrm …

Chris

---

<div class="post-metadata">

**Author:** ![Galen\_Emery](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/galen_emery/32/11_2.png) [@Galen\_Emery](https://discourse.chef.io/u/Galen_Emery)\
**Post date:** [November 7, 2014, 4:45pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900/2 "2014-11-07T16:45:11Z")

</div>

Chris,

Are you using chefdk? If so, try chef gem list instead to see if  
knife-Windows is installed into chef's ruby.

If you just try "knife" does that return a list of knife winrm commands?

-Mobile Galen  
On Nov 7, 2014 8:42 AM, "Fouts, Chris" [Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com) wrote:

> This is on a RHEL workstation running chef-client v11.12.8
> 
> [chef-repos]# gem list | grep windows
> 
> knife-windows (0.8.2)
> 
> [chef-repos]# knife winrm help
> 
> FATAL: Cannot find sub command for: 'winrm help'
> 
> Of course the following command breaks
> 
> Knife bootstrap windows winrm …..
> 
> Chris

---

<div class="post-metadata">

**Author:** ![Chris\_F](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@Chris\_F](https://discourse.chef.io/u/Chris_F)\
**Post date:** [November 7, 2014, 4:49pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900/3 "2014-11-07T16:49:10Z")

</div>

Not chefdk, but rather chef-client package itself. “knife” command does not show any winrm sub-commands of course.

Thanks!  
Chris

From: Galen Emery [[mailto:galen@getchef.com](mailto:galen@getchef.com)]  
Sent: Friday, November 07, 2014 11:45 AM  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Subject: [chef] Re: knife windows, what am I missing?

Chris,

Are you using chefdk? If so, try chef gem list instead to see if knife-Windows is installed into chef’s ruby.

If you just try “knife” does that return a list of knife winrm commands?

-Mobile Galen  
On Nov 7, 2014 8:42 AM, “Fouts, Chris” \<[Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com)[mailto:Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com)\> wrote:  
This is on a RHEL workstation running chef-client v11.12.8

[chef-repos]# gem list | grep windows  
knife-windows (0.8.2)  
[chef-repos]# knife winrm help  
FATAL: Cannot find sub command for: ‘winrm help’

Of course the following command breaks

Knife bootstrap windows winrm ……

Chris

---

<div class="post-metadata">

**Author:** ![Galen\_Emery](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/galen_emery/32/11_2.png) [@Galen\_Emery](https://discourse.chef.io/u/Galen_Emery)\
**Post date:** [November 7, 2014, 4:52pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900/4 "2014-11-07T16:52:07Z")

</div>

Then basically, the knife you're using doesn't know about knife Windows.

Check your system for multiple knifes (knives?) and figure out which knife  
has knife Windows installed and make sure you use that one.

Personally, I prefer to ensure I only have chefdk on my workstation. Really  
helps clean up these problems.

-Mobile Galen  
On Nov 7, 2014 8:49 AM, "Fouts, Chris" [Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com) wrote:

> Not chefdk, but rather chef-client package itself. “knife” command does  
> not show any winrm sub-commands of course.
> 
> Thanks!
> 
> Chris
> 
> _From:_ Galen Emery [[mailto:galen@getchef.com](mailto:galen@getchef.com)]  
> _Sent:_ Friday, November 07, 2014 11:45 AM  
> _To:_ [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> _Subject:_ [chef] Re: knife windows, what am I missing?
> 
> Chris,
> 
> Are you using chefdk? If so, try chef gem list instead to see if  
> knife-Windows is installed into chef's ruby.
> 
> If you just try "knife" does that return a list of knife winrm commands?
> 
> -Mobile Galen
> 
> On Nov 7, 2014 8:42 AM, "Fouts, Chris" [Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com) wrote:
> 
> This is on a RHEL workstation running chef-client v11.12.8
> 
> [chef-repos]# gem list | grep windows
> 
> knife-windows (0.8.2)
> 
> [chef-repos]# knife winrm help
> 
> FATAL: Cannot find sub command for: 'winrm help'
> 
> Of course the following command breaks
> 
> Knife bootstrap windows winrm …..
> 
> Chris

---

<div class="post-metadata">

**Author:** ![Chris\_F](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@Chris\_F](https://discourse.chef.io/u/Chris_F)\
**Post date:** [November 7, 2014, 6:30pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900/5 "2014-11-07T18:30:49Z")

</div>

Thanks. I’m trying to install chefdk from here [http://downloads.getchef.com/chef-dk/redhat/#/0.3.0](http://downloads.getchef.com/chef-dk/redhat/#/0.3.0)

Which version works for RHEL 5.x? It’s not clear from the page. I know the latest version (v0.3.2 is for RH6.)

Chris

From: Galen Emery [[mailto:galen@getchef.com](mailto:galen@getchef.com)]  
Sent: Friday, November 07, 2014 11:52 AM  
To: Fouts, Chris  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Subject: RE: [chef] Re: knife windows, what am I missing?

Then basically, the knife you’re using doesn’t know about knife Windows.

Check your system for multiple knifes (knives?) and figure out which knife has knife Windows installed and make sure you use that one.

Personally, I prefer to ensure I only have chefdk on my workstation. Really helps clean up these problems.

-Mobile Galen  
On Nov 7, 2014 8:49 AM, “Fouts, Chris” \<[Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com)[mailto:Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com)\> wrote:  
Not chefdk, but rather chef-client package itself. “knife” command does not show any winrm sub-commands of course.

Thanks!  
Chris

From: Galen Emery [[mailto:galen@getchef.com](mailto:galen@getchef.com)[mailto:galen@getchef.com](mailto:galen@getchef.com)]  
Sent: Friday, November 07, 2014 11:45 AM  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Subject: [chef] Re: knife windows, what am I missing?

Chris,

Are you using chefdk? If so, try chef gem list instead to see if knife-Windows is installed into chef’s ruby.

If you just try “knife” does that return a list of knife winrm commands?

-Mobile Galen  
On Nov 7, 2014 8:42 AM, “Fouts, Chris” \<[Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com)[mailto:Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com)\> wrote:  
This is on a RHEL workstation running chef-client v11.12.8

[chef-repos]# gem list | grep windows  
knife-windows (0.8.2)  
[chef-repos]# knife winrm help  
FATAL: Cannot find sub command for: ‘winrm help’

Of course the following command breaks

Knife bootstrap windows winrm ……

Chris

---

<div class="post-metadata">

**Author:** ![Morgan\_Blackthorne](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/morgan_blackthorne/32/100_2.png) [@Morgan\_Blackthorne](https://discourse.chef.io/u/Morgan_Blackthorne)\
**Post date:** [November 7, 2014, 7:00pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900/6 "2014-11-07T19:00:30Z")

</div>

Is RH5 even supported anymore?

--  
~_~ StormeRider ~_~

"Every world needs its heroes [...] They inspire us to be better than we  
are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... [http://bit.ly/Ps3uSS](http://bit.ly/Ps3uSS)

On Fri, Nov 7, 2014 at 10:30 AM, Fouts, Chris [Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com)  
wrote:

> Thanks. I’m trying to install chefdk from here  
> [http://downloads.getchef.com/chef-dk/redhat/#/0.3.0](http://downloads.getchef.com/chef-dk/redhat/#/0.3.0)
> 
> Which version works for RHEL 5.x? It’s not clear from the page. I know the  
> latest version (v0.3.2 is for RH6.)
> 
> Chris
> 
> _From:_ Galen Emery [[mailto:galen@getchef.com](mailto:galen@getchef.com)]  
> _Sent:_ Friday, November 07, 2014 11:52 AM  
> _To:_ Fouts, Chris  
> _Cc:_ [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> _Subject:_ RE: [chef] Re: knife windows, what am I missing?
> 
> Then basically, the knife you're using doesn't know about knife Windows.
> 
> Check your system for multiple knifes (knives?) and figure out which knife  
> has knife Windows installed and make sure you use that one.
> 
> Personally, I prefer to ensure I only have chefdk on my workstation.  
> Really helps clean up these problems.
> 
> -Mobile Galen
> 
> On Nov 7, 2014 8:49 AM, "Fouts, Chris" [Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com) wrote:
> 
> Not chefdk, but rather chef-client package itself. “knife” command does  
> not show any winrm sub-commands of course.
> 
> Thanks!
> 
> Chris
> 
> _From:_ Galen Emery [[mailto:galen@getchef.com](mailto:galen@getchef.com)]  
> _Sent:_ Friday, November 07, 2014 11:45 AM  
> _To:_ [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> _Subject:_ [chef] Re: knife windows, what am I missing?
> 
> Chris,
> 
> Are you using chefdk? If so, try chef gem list instead to see if  
> knife-Windows is installed into chef's ruby.
> 
> If you just try "knife" does that return a list of knife winrm commands?
> 
> -Mobile Galen
> 
> On Nov 7, 2014 8:42 AM, "Fouts, Chris" [Chris.Fouts@sensus.com](mailto:Chris.Fouts@sensus.com) wrote:
> 
> This is on a RHEL workstation running chef-client v11.12.8
> 
> [chef-repos]# gem list | grep windows
> 
> knife-windows (0.8.2)
> 
> [chef-repos]# knife winrm help
> 
> FATAL: Cannot find sub command for: 'winrm help'
> 
> Of course the following command breaks
> 
> Knife bootstrap windows winrm …..
> 
> Chris

---

<div class="post-metadata">

**Author:** ![Jeff\_Blaine](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jeff_blaine/32/19_2.png) [@Jeff\_Blaine](https://discourse.chef.io/u/Jeff_Blaine)\
**Post date:** [November 7, 2014, 7:13pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900/7 "2014-11-07T19:13:31Z")

</div>

On 11/7/2014 2:00 PM, Morgan Blackthorne wrote:

> Is RH5 even supported anymore?

Very much so!

---

<div class="post-metadata">

**Author:** ![Lamont\_Granquist\_OLD](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@Lamont\_Granquist\_OLD](https://discourse.chef.io/u/Lamont_Granquist_OLD)\
**Post date:** [November 7, 2014, 8:16pm UTC](https://discourse.chef.io/t/knife-windows-what-am-i-missing/5900/8 "2014-11-07T20:16:35Z")

</div>

On Fri Nov 7 11:13:31 2014, Jeff Blaine wrote:

> On 11/7/2014 2:00 PM, Morgan Blackthorne wrote:
> 
> > Is RH5 even supported anymore?
> 
> Very much so!

Not for ChefDK

> <https://github.com/chef-boneyard/chef-rfc/blob/master/rfc021-platform-support-policy.md#supported-1>

RHEL 7.x being omitted is most likely a mistake and the RHEL 6.x  
artifact should work fine there, but RHEL 5.x being omitted was  
deliberate.
