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 [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. > > > -- > Nuno Marques > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
