fix scanning script

This commit is contained in:
2023-08-10 19:04:40 +03:00
parent 00363ab593
commit 4930cf2014
2 changed files with 82 additions and 64 deletions

View File

@ -5,7 +5,7 @@ class Routers
@@start_address = "10.20.20."
@@start_at = 32
@@stop_at = 130
@@stop_at = 140
def initialize
@at = @@start_at
@ -50,8 +50,8 @@ class Routers
if connection.is_a?(String)
message = connection
else
info[ip] = get_info(connection)
message = info[ip][:machine]
message = machine(connection)
info[ip] = {machine: message , host_name: admin_name(connection)}
end
puts "#{ip} = #{message}"
end