Archive for UNIX/Solaris
A little fight with smpatch
This morning I was trying to patch a bunch of V240 boxes and get them ready for the EMC array. As always, I ran my beloved smpatch analyze but surprisingly it didn't work as expected:
# smpatch analyze unknown host (updateserver.sun.com) connecting to https://updateserver.sun.com/solaris/
This happed to me once last year after I patched WBEM. So I thought maybe WBEM needed to be restarted before it felt like to work today. I did the restart but it still complained about the "Unknow host". Urhhh…
Now it made me think that /etc/resolv.conf might be the problem. Well then I tried to open the file but found it was gone! No biggy, I just created a new one with all the nice name servers in it. Now smpatch should be happy, you would think? No, it wasn't! Still complained about the same thing!
This brought me directly to /etc/nsswitch.conf, which had something like this in it:
hosts: cluster files
Ah, that was it. I had no idea why dns was removed from the line! It might be done by somebody's hands or by a patch. I will have to find that out when I get some time later.