Has anybody written a script that will scan the network to find systems not running puppet and ultimately send an email with the findings? I was thinking I can do this by just scanning for port 8141 or is it 8139? This would assume listen=true is setup on all the existing clients though. I could then filter out any of the candidates by ensuring the ssh port is open (this might tell me its a unix system). Anybody interested in such a script run via a cron job? Corey -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mohamed Lrhazi
2011-Apr-19 22:51 UTC
Re: [Puppet Users] Script to find potential puppet clients
How about scan the network and collect IPs that are UP... then check puppets facts db for missing IPs ? On Tue, Apr 19, 2011 at 5:44 PM, Corey Osman <corey@logicminds.biz> wrote:> Has anybody written a script that will scan the network to find systems not running puppet and ultimately send an email with the findings? > > > > > I was thinking I can do this by just scanning for port 8141 or is it 8139? This would assume listen=true is setup on all the existing clients though. I could then filter out any of the candidates by ensuring the ssh port is open (this might tell me its a unix system). > > Anybody interested in such a script run via a cron job? > > > Corey > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Steven Acres
2011-Apr-19 22:51 UTC
Re: [Puppet Users] Script to find potential puppet clients
On Tue, Apr 19, 2011 at 5:44 PM, Corey Osman <corey@logicminds.biz> wrote:> Has anybody written a script that will scan the network to find systems not > running puppet and ultimately send an email with the findings? >> > > > > I was thinking I can do this by just scanning for port 8141 or is it 8139? > This would assume listen=true is setup on all the existing clients though. > I could then filter out any of the candidates by ensuring the ssh port is > open (this might tell me its a unix system). > > Anybody interested in such a script run via a cron job? > > > Corey > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >Hi Corey, I have a few scripts that do this (and provision the hosts with the missing parts if needed) .. though all servers which are built now include puppet and friends via KS/cobbler. I''ve also noted that many organizations don''t have _usable_ and/or current inventory management (not to mention dns records with PTR _current_) in place (which I tackle first to make all else manageable). I''d like to see your whack at it though. -- Cheers, Steven ----------------------- Steven Acres UNIX/Linux System Administrator -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.