ddis 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +7 -0
- data/bin/ddis +9 -1
- data/lib/ddis.rb +4 -0
- metadata +1 -1
data/README.md
CHANGED
data/bin/ddis
CHANGED
@@ -27,10 +27,18 @@ ip = ddis.iterator.ip
|
|
27
27
|
|
28
28
|
(0..count).each do |run|
|
29
29
|
until ip == nil
|
30
|
-
|
30
|
+
warn "Testing #{ip}" if verbose
|
31
31
|
ddis.test_ip ip
|
32
32
|
ip = ddis.iterator.iterate
|
33
33
|
end
|
34
34
|
warn "Sleeping for #{secs} seconds" if verbose
|
35
35
|
sleep secs
|
36
36
|
end
|
37
|
+
|
38
|
+
stored_ips = ddis.read_db
|
39
|
+
|
40
|
+
puts "IPs which are up and have a PTR matching pattern /#{unassign}/ ::"
|
41
|
+
stored_ips[ :up ].each {|ip| puts ip}
|
42
|
+
|
43
|
+
puts "IPs which are down yet *dont* match pattern /#{unassign}/ ::"
|
44
|
+
stored_ips[ :down ].each {|ip| puts ip}
|
data/lib/ddis.rb
CHANGED