TS - bb-hosts problem
On Mon, August 30, 2010 09:54, d.tom.schmitt at L-3com.com wrote: [SNIP]
Error output:
Host cswflex4.csw.l-3com.com appears twice in bb-hosts! This may cause
strange results
[SNIP]
[root at monitorp etc]# grep -i cswflex4 bb-hosts0.0.0.0 cswflex4.csw.L-3com.com
128.170.31.14 cswflex4.csw.L-3com.com # conn
0.0.0.0 cswflex4.csw.l-3com.com
0.0.0.0 cswflex4.csw.l-3com.com
[root at monitorp etc]#
I cannot find a second entry with an IP address.
I have hundreds of other servers with 0.0.0.0 entries so I cannot figure
out what is happening?
Since case isn't relevant in hostnames, I'd say the error message isn't strictly correct: cswflex4.csw.l-3com.com actually appears four times in bb-hosts, not two. As indicated by the error, this may cause strange results.
I'm not sure what your point is about the 0.0.0.0 ip. With no TESTIP tag, the ip will only be used if hostname lookup fails. And used or not used, you have four instances of the hostname in bb-hosts, which can give strange results.
Or maybe I'm not reading your post correctly.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
On Mon, August 30, 2010 09:54, d.tom.schmitt at L-3com.com wrote:
[SNIP]
[root at monitorp etc]# grep -i cswflex4 bb-hosts0.0.0.0 cswflex4.csw.L-3com.com
128.170.31.14 cswflex4.csw.L-3com.com # conn
0.0.0.0 cswflex4.csw.l-3com.com
0.0.0.0 cswflex4.csw.l-3com.com
if you really have something like this in your bb-hosts you need to add the noconn tag to the 3 entries that are not the "real" one. On the other hand you can also drop the conn tag for the second entry since the conn test is always executed if not specified otherwise. So your bb-hosts should read like this:
0.0.0.0 cswflex4.csw.L-3com.com # noconn
128.170.31.14 cswflex4.csw.L-3com.com
0.0.0.0 cswflex4.csw.l-3com.com # noconn
0.0.0.0 cswflex4.csw.l-3com.com # noconn
Then everything should be fine.
HTH Torsten
+---------------------------------------------------------+ | E-mail : bb4 [at] richter-it.net | | | | Homepage: http://www.richter-it.net/ | +---------------------------------------------------------+ Download my public key from: http://gpg-keyserver.de/pks/lookup?search=0x899093AC&op=get -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32)
iEYEARECAAYFAkx76gEACgkQ7DlmxomQk6wkoACfaKt8kx7oNtvd7Bk4lrUAAw/l ykMAn0eFrbj3GRyjUCMGqBAOUOmdm6qB =Cqhr -----END PGP SIGNATURE-----
participants (2)
-
bb4@richter-it.net
-
hobbit@epperson.homelinux.net