Integration itop with foreman

Hey everyone,

How cool would it be to import nodes from foreman into itop, that way you
automaticaly get the serial number brand etc…

Can this be done? Or has anyone has done this before?

KR

Hi,

I have investigated iTop and it has a lot of issues I get the feeling and
the administrating is too much.

Facter is also able to get all you ask for, have you looked into that
already as it does it by default on hosts in Foreman.

Cheers,

Matt

··· Op donderdag 30 maart 2017 17:34:45 UTC+2 schreef Wim Van den Borre: > > Hey everyone, > > How cool would it be to import nodes from foreman into itop, that way you > automaticaly get the serial number brand etc... > > Can this be done? Or has anyone has done this before? > > KR >

Hello,

At the moment I'm parsing the json output from
https://katello/api/v2/hosts?per_page=99999

I'm using the following information:

    $h['ip'] =  $host['ip'];
    $h['name'] =  $host['name'];
    $h['mac'] =  $host['mac'];
    $h['domain'] =  $host['domain_name'];
    $h['arch'] =  $host['architecture_name'];
    $h['os'] = $host['operatingsystem_name'];
    $h['org'] =  $host['organization_name'];
    $h['virtual'] = $host['model_name'] === "VMware Virtual Platform";

If anyone is doing anything more please share :slight_smile:

··· On 30-03-2017 16:34, Wim Van den Borre wrote: > Hey everyone, > > How cool would it be to import nodes from foreman into itop, that way > you automaticaly get the serial number brand etc... > > Can this be done? Or has anyone has done this before? > > KR > -- > 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 https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Nuno Marques

matt,

tx but we use itop as a ticketting system which works great. as a cmdb it
has his flaws thats why i want to export from foreman into itop

··· Op 30 mrt. 2017 18:08 schreef "Matt" :

Hi,

I have investigated iTop and it has a lot of issues I get the feeling and
the administrating is too much.

Facter is also able to get all you ask for, have you looked into that
already as it does it by default on hosts in Foreman.

Cheers,

Matt

Op donderdag 30 maart 2017 17:34:45 UTC+2 schreef Wim Van den Borre:

Hey everyone,

How cool would it be to import nodes from foreman into itop, that way you
automaticaly get the serial number brand etc…

Can this be done? Or has anyone has done this before?

KR


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/foreman-users/Mv-u9OrQefQ/unsubscribe.
To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Player 2 has entered the game :slight_smile: Let's get this party started :slight_smile:

I've just found out that with hammer you can get a list of the foreman
hosts.

Command: #hammer --csv host list

You get an output like this:

Id,Name,Operating System,Host Group,IP,MAC

But i can't find how i can get all of the properties…

··· Op vrijdag 31 maart 2017 13:12:29 UTC+2 schreef Nuno Marques: > > Hello, > > At the moment I'm parsing the json output from > https://katello/api/v2/hosts?per_page=99999 > > I'm using the following information: > > $h['ip'] = $host['ip']; > $h['name'] = $host['name']; > $h['mac'] = $host['mac']; > $h['domain'] = $host['domain_name']; > $h['arch'] = $host['architecture_name']; > $h['os'] = $host['operatingsystem_name']; > $h['org'] = $host['organization_name']; > $h['virtual'] = $host['model_name'] === "VMware Virtual Platform"; > > If anyone is doing anything more please share :) > > On 30-03-2017 16:34, Wim Van den Borre wrote: > > Hey everyone, > > How cool would it be to import nodes from foreman into itop, that way you > automaticaly get the serial number brand etc... > > Can this be done? Or has anyone has done this before? > > KR > -- > 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-user...@googlegroups.com . > To post to this group, send email to forema...@googlegroups.com > . > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. > > > -- > Nuno Marques > >

ok, update.

If you do this:

hammer fact list --search 'serialnumber' --order 'host asc'

You get a nice output from all the hosts and their serial number, but i
don't know how to include more then one field…

··· Op vrijdag 31 maart 2017 14:15:08 UTC+2 schreef Wim Van den Borre: > > Player 2 has entered the game :) Let's get this party started :) > > I've just found out that with hammer you can get a list of the foreman > hosts. > > Command: #hammer --csv host list > > You get an output like this: > > Id,Name,Operating System,Host Group,IP,MAC > > But i can't find how i can get all of the properties.. > > Op vrijdag 31 maart 2017 13:12:29 UTC+2 schreef Nuno Marques: >> >> Hello, >> >> At the moment I'm parsing the json output from >> https://katello/api/v2/hosts?per_page=99999 >> >> I'm using the following information: >> >> $h['ip'] = $host['ip']; >> $h['name'] = $host['name']; >> $h['mac'] = $host['mac']; >> $h['domain'] = $host['domain_name']; >> $h['arch'] = $host['architecture_name']; >> $h['os'] = $host['operatingsystem_name']; >> $h['org'] = $host['organization_name']; >> $h['virtual'] = $host['model_name'] === "VMware Virtual Platform"; >> >> If anyone is doing anything more please share :) >> >> On 30-03-2017 16:34, Wim Van den Borre wrote: >> >> Hey everyone, >> >> How cool would it be to import nodes from foreman into itop, that way you >> automaticaly get the serial number brand etc... >> >> Can this be done? Or has anyone has done this before? >> >> KR >> -- >> 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-user...@googlegroups.com. >> To post to this group, send email to forema...@googlegroups.com. >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> Nuno Marques >> >>

You can also check this python script:

https://github.com/RedHatSatellite/sat6Inventory

··· On 31-03-2017 16:43, Wim Van den Borre wrote: > ok, update. > > If you do this: > > hammer fact list --search 'serialnumber' --order 'host asc' > > You get a nice output from all the hosts and their serial number, but > i don't know how to include more then one field... > > Op vrijdag 31 maart 2017 14:15:08 UTC+2 schreef Wim Van den Borre: > > Player 2 has entered the game :) Let's get this party started :) > > I've just found out that with hammer you can get a list of the > foreman hosts. > > Command: #hammer --csv host list > > You get an output like this: > > Id,Name,Operating System,Host Group,IP,MAC > > But i can't find how i can get all of the properties.. > > Op vrijdag 31 maart 2017 13:12:29 UTC+2 schreef Nuno Marques: > > Hello, > > At the moment I'm parsing the json output from > https://katello/api/v2/hosts?per_page=99999 > > > I'm using the following information: > > $h['ip'] = $host['ip']; > $h['name'] = $host['name']; > $h['mac'] = $host['mac']; > $h['domain'] = $host['domain_name']; > $h['arch'] = $host['architecture_name']; > $h['os'] = $host['operatingsystem_name']; > $h['org'] = $host['organization_name']; > $h['virtual'] = $host['model_name'] === "VMware > Virtual Platform"; > > If anyone is doing anything more please share :) > > > On 30-03-2017 16:34, Wim Van den Borre wrote: >> Hey everyone, >> >> How cool would it be to import nodes from foreman into itop, >> that way you automaticaly get the serial number brand etc... >> >> Can this be done? Or has anyone has done this before? >> >> KR >> -- >> 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-user...@googlegroups.com. >> To post to this group, send email to forema...@googlegroups.com. >> Visit this group at >> https://groups.google.com/group/foreman-users >> . >> For more options, visit https://groups.google.com/d/optout >> . > > -- > Nuno Marques >


Nuno Marques
Departamento de Serviços Técnicos
Centro Nacional de Cibersegurança
Rua da Junqueira, 69 | 1300-342 Lisboa
T (+351) 210 497 404
nuno.marques@cncs.gov.pt

Wim,

Ticketing is quite OK indeed.

Sorry I was misreading. I think you can simply do some API calls.

Cheers,

Matt

··· Op donderdag 30 maart 2017 19:02:27 UTC+2 schreef Wim Van den Borre: > > matt, > > tx but we use itop as a ticketting system which works great. as a cmdb it > has his flaws thats why i want to export from foreman into itop > > Op 30 mrt. 2017 18:08 schreef "Matt" <yamaka...@gmail.com >: > >> Hi, >> >> I have investigated iTop and it has a lot of issues I get the feeling and >> the administrating is too much. >> >> Facter is also able to get all you ask for, have you looked into that >> already as it does it by default on hosts in Foreman. >> >> Cheers, >> >> Matt >> >> Op donderdag 30 maart 2017 17:34:45 UTC+2 schreef Wim Van den Borre: >>> >>> Hey everyone, >>> >>> How cool would it be to import nodes from foreman into itop, that way >>> you automaticaly get the serial number brand etc... >>> >>> Can this be done? Or has anyone has done this before? >>> >>> KR >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Foreman users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/foreman-users/Mv-u9OrQefQ/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> >

do you know which api calls? :slight_smile:

··· Op 30 mrt. 2017 19:42 schreef "Matt" :

Wim,

Ticketing is quite OK indeed.

Sorry I was misreading. I think you can simply do some API calls.

Cheers,

Matt

Op donderdag 30 maart 2017 19:02:27 UTC+2 schreef Wim Van den Borre:

matt,

tx but we use itop as a ticketting system which works great. as a cmdb it
has his flaws thats why i want to export from foreman into itop

Op 30 mrt. 2017 18:08 schreef “Matt” yamaka...@gmail.com:

Hi,

I have investigated iTop and it has a lot of issues I get the feeling
and the administrating is too much.

Facter is also able to get all you ask for, have you looked into that
already as it does it by default on hosts in Foreman.

Cheers,

Matt

Op donderdag 30 maart 2017 17:34:45 UTC+2 schreef Wim Van den Borre:

Hey everyone,

How cool would it be to import nodes from foreman into itop, that way
you automaticaly get the serial number brand etc…

Can this be done? Or has anyone has done this before?

KR


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/foreman-users/Mv-u9OrQefQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at https://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 a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/foreman-users/Mv-u9OrQefQ/unsubscribe.
To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Check the documentation.

··· Op donderdag 30 maart 2017 19:44:53 UTC+2 schreef Wim Van den Borre: > > do you know which api calls? :) > > Op 30 mrt. 2017 19:42 schreef "Matt" <yamaka...@gmail.com >: > >> Wim, >> >> Ticketing is quite OK indeed. >> >> Sorry I was misreading. I think you can simply do some API calls. >> >> Cheers, >> >> Matt >> >> Op donderdag 30 maart 2017 19:02:27 UTC+2 schreef Wim Van den Borre: >>> >>> matt, >>> >>> tx but we use itop as a ticketting system which works great. as a cmdb >>> it has his flaws thats why i want to export from foreman into itop >>> >>> Op 30 mrt. 2017 18:08 schreef "Matt" : >>> >>>> Hi, >>>> >>>> I have investigated iTop and it has a lot of issues I get the feeling >>>> and the administrating is too much. >>>> >>>> Facter is also able to get all you ask for, have you looked into that >>>> already as it does it by default on hosts in Foreman. >>>> >>>> Cheers, >>>> >>>> Matt >>>> >>>> Op donderdag 30 maart 2017 17:34:45 UTC+2 schreef Wim Van den Borre: >>>>> >>>>> Hey everyone, >>>>> >>>>> How cool would it be to import nodes from foreman into itop, that way >>>>> you automaticaly get the serial number brand etc... >>>>> >>>>> Can this be done? Or has anyone has done this before? >>>>> >>>>> KR >>>>> >>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "Foreman users" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/foreman-users/Mv-u9OrQefQ/unsubscribe >>>> . >>>> To unsubscribe from this group and all its topics, send an email to >>>> foreman-user...@googlegroups.com. >>>> To post to this group, send email to forema...@googlegroups.com. >>>> Visit this group at https://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 a topic in the >> Google Groups "Foreman users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/foreman-users/Mv-u9OrQefQ/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> >