#!/opt/vdops/bin/perl # This script walks the network, gathering netbios names and inserting them # 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; use FHCRC::VDOPS::WINSTools; # Threads and debugs $debug = 0; $thrMode = 0; # Notify operator log_it("Beginning $0"); say "Beginning $0" if $job eq 'interactive'; # Construct a foundation foundation(); # Build a hash of NetBIOS names & addresses from WINS extract_wins_names(); # Query hosts for netbios name walk_route_table(\&gather_netbios_name, "gather_netbios_name", $processNetbiosTimeout, \%excludeRoute); # Insert results iu_hosts_netbios(); # Notify operator log_it("Ending $0"); say "Ending $0" if $job eq 'interactive'; `/bin/date`;