# Ohai command not pulling in custom plugin

**URL:** <https://discourse.chef.io/t/ohai-command-not-pulling-in-custom-plugin/23007>\
**Category:** Chef Workstation\
**Created:** [April 16, 2024, 3:30pm UTC](https://discourse.chef.io/t/ohai-command-not-pulling-in-custom-plugin/23007 "2024-04-16T15:30:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noble](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@Noble](https://discourse.chef.io/u/Noble)\
**Post date:** [April 16, 2024, 3:30pm UTC](https://discourse.chef.io/t/ohai-command-not-pulling-in-custom-plugin/23007/1 "2024-04-16T15:30:15Z")

</div>

```auto
Ohai.plugin(:myPlugin) do
  provides 'my_asset_tag'

  collect_data do
    my_uid = File.open('/usr/local/lp/etc/lp-UID').first.chomp
    my_asset_tag my_uid
  end
end

```

The plugin shows up in the `/etc/chef/ohai` directory and if I run `ohai -d /etc/chef/ohai` the plugin shows up but just running ohai my attribute doesn't show.

It does show if run `knife node show server -a my_asset_tag` but was hoping to have it show up by running just ohai.

Any help would be greatly appreciated.
