# Error: unknown command "enroll" for "metricbeat"

**URL:** <https://discuss.elastic.co/t/error-unknown-command-enroll-for-metricbeat/157132>\
**Category:** Beats\
**Created:** [November 16, 2018, 8:30pm UTC](https://discuss.elastic.co/t/error-unknown-command-enroll-for-metricbeat/157132 "2018-11-16T20:30:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Vasquez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_vasquez/32/22088_2.png) [@Matt\_Vasquez](https://discuss.elastic.co/u/Matt_Vasquez)\
**Post date:** [November 16, 2018, 8:30pm UTC](https://discuss.elastic.co/t/error-unknown-command-enroll-for-metricbeat/157132/1 "2018-11-16T20:30:38Z")

</div>

Anyone know if Beats Central Management in 6.5 is supported on Metricbeat 6.5 for Windows??

using:

```
PS C:\Program Files\metricbeat> metricbeat.exe enroll https://localhost:5601/kibana d20f2f72baab42
c78a1961267424c086
The term 'metricbeat.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15
+ metricbeat.exe <<<< enroll https://localhost:5601/kibana d20f2f72baab42c78a1961267424c086
    + CategoryInfo : ObjectNotFound: (metricbeat.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Suggestion [3,General]: The command metricbeat.exe was not found, but does exist in the current location. Windows PowerS
hell doesn't load commands from the current location by default. If you trust this command, instead type ".\metricbeat.e
xe". See "get-help about_Command_Precedence" for more details.
PS C:\Program Files\metricbeat> .\metricbeat.exe enroll https://localhost:5601/kibana d20f2f72baab
42c78a1961267424c086
Error: unknown command "enroll" for "metricbeat"
Run 'metricbeat --help' for usage.
```

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [November 19, 2018, 1:13pm UTC](https://discuss.elastic.co/t/error-unknown-command-enroll-for-metricbeat/157132/2 "2018-11-19T13:13:32Z")

</div>

@matt We had an issue with the packaging for windows it will fixed in 6.5.1 sorry for the inconvenience. Related PR: [https://github.com/elastic/beats/pull/9103](https://github.com/elastic/beats/pull/9103)

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [November 30, 2018, 2:08pm UTC](https://discuss.elastic.co/t/error-unknown-command-enroll-for-metricbeat/157132/3 "2018-11-30T14:08:16Z")

</div>

@pierhugues any chance that ARM is also impacted? I'm seeing the same when trying to enroll `metricbeat` that I built from source on a raspberry pi.

I know that ARM isn't officially supported, but the rest of the build works just fine. I tried building from the [6.5.1 release](https://github.com/elastic/beats/releases/tag/v6.5.1) too, with the same error:

```auto
pi@assistant:~/go/src/github.com/elastic/beats/metricbeat $ make
go build -i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=2018-11-30T14:03:24Z -X github.com/elastic/beats/libbeat/version.commit=b1c6ac83cc037bd75395334eed23b64bd63c87ef"
pi@assistant:~/go/src/github.com/elastic/beats/metricbeat $ ./metricbeat enroll
Error: unknown command "enroll" for "metricbeat"
Run 'metricbeat --help' for usage.

```

```auto
pi@assistant:~/go/src/github.com/elastic/beats/metricbeat $ ./metricbeat version
metricbeat version 6.5.1 (arm), libbeat 6.5.1 [b1c6ac83cc037bd75395334eed23b64bd63c87ef built 2018-11-30 14:03:24 +0000 UTC]

```

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [November 30, 2018, 3:22pm UTC](https://discuss.elastic.co/t/error-unknown-command-enroll-for-metricbeat/157132/4 "2018-11-30T15:22:49Z")

</div>

@Larry_Gregory `enroll` is only present in the binary produced from the x-pack/metricbeat directory. If you build from there you will have the command.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 28, 2018, 5:22pm UTC](https://discuss.elastic.co/t/error-unknown-command-enroll-for-metricbeat/157132/5 "2018-12-28T17:22:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
