using fping to find missing A records

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I have a specific question on how to do something, and a larger question addressing other "better" ways to do the spirit of what I'm asking.

I'm setting up Nagios, and am trying to make sure that all of the subnets have A records, as IP addresses will be changing very, very rapidly, and when that day comes, I will not be here (but on another Nagios project).

So, I'd like to create A records for each host.  How do I "fping -a" a range of IP addresses, strip out the names of the name that the host replies with, and then ping that list of names?  (You don't have to tell me how exactly, a general idea of which command line tools will do)

I'm thinking something like: fping -g 192.168.1.0 192.168.1.255 -A | grep whatever > file, and then shove that file in another fping statement.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux