Kenneth, there is a file called nsswitch.conf in the /etc directory on Solaris hosts. It declares, among other things, the order the resolver tries to resolve a name:
[...] group: files # You must also set up the /etc/resolv.conf file for DNS name # server lookup. See resolv.conf(4). hosts: files dns <--- Here it says that first /etc/hosts is tried and then, if nothing found, the DNS service # Note that IPv4 addresses are searched for in all of the ipnodes databases # before searching the hosts databases. ipnodes: files dns networks: files protocols: files rpc: files [...] Freundliche Grüße / Best regards Christian Fieres Mainova AG Planung und Betrieb Infrastruktur (M3-ON2) Service Operation Center Solmsstraße 38 60623 Frankfurt Telefon / Phone (069) 2 13-2 36 17 Mobil / Mobile (0170) 5 60 15 63 Telefax / Facsimile (069) 2 13-9 62 36 17 E-Mail [email protected] Mainova Aktiengesellschaft • Solmsstraße 38 • D-60623 Frankfurt am Main Vorsitzende des Aufsichtsrates: Oberbürgermeisterin Dr. h. c. Petra Roth • Vorstand: Dr. Constantin H. Alsheimer (Vorsitzender), Lothar Herbst, Dr. Marie-Luise Wolff, Joachim Zientek Sitz der Aktiengesellschaft: Frankfurt am Main • Amtsgericht Frankfurt HRB 7173 • USt-ID-Nr. DE 114184034 Mainova steht für besten Service, faire Verträge und top Preise für Ihre Energie - mit Auszeichnung! Mehr Infos unter: http://www.mainova.de/auszeichnung Kenneth Kirchner <[email protected]> 23.01.2011 18:44 Bitte antworten an Kenneth Kirchner <[email protected]> An "spectrum" <[email protected]> Kopie Thema [spectrum] Model Renaming Hello, This may be more of a Solaris question, but maybe someone can help. Almost none of our devices are in DNS, so I was trying to do some IP mapping in our /etc/inet/hosts file so I could reevaluate and update the model names. I tested this in my lab, but that was on Linux boxes. It seemed to work mostly there (more on that in a bit). On the production side, I tried it on our Solaris 10 boxes and it did not work the same way. It went to the DNS servers first, failed the lookup, and then just quit. I had to comment out all the DNS servers in resolve.conf and restart ncsd to flush the cache before Spectrum would use the hosts file. Is there some priority assignment for DNS vs hosts that I need to change in some config? Changing the hosts file and pinging the device by name from the shell works immediately. On linux I typically do not have ncsd running, but it works anyway. Also, in this same scenario, I have the "Name Service" as the primary naming method selected and it works for all the SNMP devices that had names, but the pingable devices that are listed in the hosts file are not getting updated. If I add a pingable by IP with no name specified, and after the hosts file is updated, it will grab the new name, but if I update the name in hosts and "Reevaluate All Model Names" it will not change the name on the pingable devices. That does not live up to the "All" in the button title. If someone has a better way to update the name with a simple CSV file, I am all for that method! This is using Spectrum 9.2 H03. Thanks! -Ken --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected] --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected]
