Lscpu info over API v2

Hello,

I am looking at v2 api and I wonder how to get "Advanced Information" lscpu
values from host which is on /content_hosts/host_id/info page. For example
I want to get "cpu op-mode(s)" value.

Thank you.

That would be good usecase for puppet, write your own fact and things
will land in puppet report.

LZ

··· On Thu, Mar 12, 2015 at 06:36:07AM -0700, Jakub Bittner wrote: > Hello, > > I am looking at v2 api and I wonder how to get "Advanced Information" lscpu > values from host which is on /content_hosts/host_id/info page. For example > I want to get "cpu op-mode(s)" value. > > Thank you. > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

I know I can write custom facts but Satellite already has these
information.

··· 2015-03-12 17:25 GMT+01:00 Lukas Zapletal :

That would be good usecase for puppet, write your own fact and things
will land in puppet report.

LZ

On Thu, Mar 12, 2015 at 06:36:07AM -0700, Jakub Bittner wrote:

Hello,

I am looking at v2 api and I wonder how to get "Advanced Information"
lscpu
values from host which is on /content_hosts/host_id/info page. For
example
I want to get “cpu op-mode(s)” value.

Thank you.


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Both puppet host and content host do not use V2 API to upload facts. In
the case you mention it's subscription-manager which does this during
system registration.

Katello folks might know if this offers some API for extending. But rhsm
is not the best place as this stack is only interested in number of
sockets/cpus for subscription purposes, and not technical things like
CPU flags.

Go for puppet, it's the way we want users to report things.

LZ

··· On Thu, Mar 12, 2015 at 07:17:54PM +0100, Jakub Bittner wrote: > I know I can write custom facts but Satellite already has these > information. > > 2015-03-12 17:25 GMT+01:00 Lukas Zapletal : > > > That would be good usecase for puppet, write your own fact and things > > will land in puppet report. > > > > LZ > > > > On Thu, Mar 12, 2015 at 06:36:07AM -0700, Jakub Bittner wrote: > > > Hello, > > > > > > I am looking at v2 api and I wonder how to get "Advanced Information" > > lscpu > > > values from host which is on /content_hosts/host_id/info page. For > > example > > > I want to get "cpu op-mode(s)" value. > > > > > > Thank you. > > > > > > -- > > > You received this message because you are subscribed to the Google > > Groups "Foreman users" group. > > > To unsubscribe from this group and stop receiving emails from it, send > > an email to foreman-users+unsubscribe@googlegroups.com. > > > To post to this group, send email to foreman-users@googlegroups.com. > > > Visit this group at http://groups.google.com/group/foreman-users. > > > For more options, visit https://groups.google.com/d/optout. > > > > > > -- > > Later, > > Lukas #lzap Zapletal > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to foreman-users+unsubscribe@googlegroups.com. > > To post to this group, send email to foreman-users@googlegroups.com. > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal