#!/opt/vdops/bin/perl # This script walks the network, gathering hostname, sysDescr, and # sysObjectID on active IP addresses, inserting the results into Soma # Load modules use strict; use warnings; use Perl6::Say; use lib '/home/soma/lib'; use FHCRC::VDOPS::Foundation; use FHCRC::VDOPS::IPSpace; use FHCRC::VDOPS::QueryHost; use FHCRC::VDOPS::SomaCrud; use FHCRC::VDOPS::SomaData; use FHCRC::VDOPS::Utilities; # Threads and debugs $debug = 0; $thrMode = 0; # Notify operator log_it("Beginning $0"); say "Beginning $0" if $job eq 'interactive'; # Construct a foundation foundation(); # Look-up addresses in DNS walk_route_table(\&gather_dns_name, 'gather_dns_name', $processDnsTimeout, \%excludeRoute); # Insert results iu_hosts_dns(); # Notify operator log_it("Ending $0"); say "Ending $0" if $job eq 'interactive';