Skip to content

Instantly share code, notes, and snippets.

@wbclark
Created September 4, 2020 20:47
Show Gist options
  • Save wbclark/553b109d5935cdbc338ba41c108415ca to your computer and use it in GitHub Desktop.
Save wbclark/553b109d5935cdbc338ba41c108415ca to your computer and use it in GitHub Desktop.
Host entitlement status
#!/bin/bash
echo '
myHost = Host.find_by_name("myhost.example.com")
Katello::Candlepin::Consumer.new(myHost.subscription_facet.uuid, myHost.organization.label).entitlement_status
' | foreman-rake console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment