# Ohai \<plugin\_name\> command comes with an error

**URL:** <https://discourse.chef.io/t/ohai-plugin-name-command-comes-with-an-error/12084>\
**Category:** Chef Infra (archive)\
**Created:** [December 7, 2017, 9:24am UTC](https://discourse.chef.io/t/ohai-plugin-name-command-comes-with-an-error/12084 "2017-12-07T09:24:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambush1989](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/ambush1989/32/1850_2.png) [@ambush1989](https://discourse.chef.io/u/ambush1989)\
**Post date:** [December 7, 2017, 9:25am UTC](https://discourse.chef.io/t/ohai-plugin-name-command-comes-with-an-error/12084/1 "2017-12-07T09:25:00Z")

</div>

I just created ohai plugin.  
I put the plugin under `/etc/chef/ohai/plugins` directory.

When I run `ohai` the data shows up at the bottom.  
However when I run `ohai <plugin_name>` it comes with the error.

The error is:  
`attributes\_print’: I cannot find an attribute named \<plugin\_name\>! (ArgumentError)

Did I miss something?
