<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem after hostname change in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708730#M59927</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have checked all the files in /var/adm/sw/security/...  the realm and default_realm is correct.&lt;BR /&gt;&lt;BR /&gt;Strange!  "nslookup -swtrace" didn't work, it said "invalid option".&lt;BR /&gt;&lt;BR /&gt;Actually, I have 2 servers, and both of them have the same problem after changing the hostname...  :( &lt;BR /&gt;&lt;BR /&gt;All "swlist", "swinstall" work, why only "swconfig" has errors???&lt;BR /&gt;&lt;BR /&gt;Victoria</description>
    <pubDate>Wed, 24 Apr 2002 09:56:40 GMT</pubDate>
    <dc:creator>Victoria Leung</dc:creator>
    <dc:date>2002-04-24T09:56:40Z</dc:date>
    <item>
      <title>Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708717#M59914</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;After changing the hostname of the machine (HP-UX11.0), there is an error in /etc/rc.log after reboot.&lt;BR /&gt;&lt;BR /&gt;Configuring all unconfigured software filesets&lt;BR /&gt;Output from "/sbin/rc2.d/S120swconfig start":&lt;BR /&gt;----------------------------&lt;BR /&gt;       * Turning off all network based resolving services in&lt;BR /&gt;         '/etc/nsswitch.conf'&lt;BR /&gt;       * Setting up temporary hostname in '/etc/hosts'&lt;BR /&gt;ERROR:   Cannot contact the 'swagentd' daemon because the local hostname&lt;BR /&gt;         'DNS02' cannot be resolved, therefore no 'swconfig' or 'swremove'&lt;BR /&gt;         will be executed at this time. The most likely solution is to define&lt;BR /&gt;         'DNS02' in '/etc/hosts'.&lt;BR /&gt;       * Restoring '/etc/hosts' to its original contents.&lt;BR /&gt;       * Removing the temporary '/etc/nsswitch.conf'.&lt;BR /&gt;"/sbin/rc2.d/S120swconfig start" FAILED&lt;BR /&gt;&lt;BR /&gt;I changed the hostname in /etc/rc.config.d/netconf, /etc/hosts and all my DNS files, nslookup &lt;NEW hostname=""&gt; is ok, swlist is ok, do I miss out anything?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;&lt;BR /&gt;Victoria&lt;/NEW&gt;</description>
      <pubDate>Tue, 23 Apr 2002 02:03:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708717#M59914</guid>
      <dc:creator>Victoria Leung</dc:creator>
      <dc:date>2002-04-23T02:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708718#M59915</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To make a thorough change, you should use&lt;BR /&gt;&lt;BR /&gt;# set_parms hostname&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 23 Apr 2002 02:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708718#M59915</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-23T02:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708719#M59916</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try to utilise the 'set_parms' script. &lt;BR /&gt;&lt;BR /&gt;# set_parms 'hostname' (without quotes)&lt;BR /&gt;&lt;BR /&gt;There is also a man page for this command. The command is basically a script that calls other binary commands.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
      <pubDate>Tue, 23 Apr 2002 02:09:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708719#M59916</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-04-23T02:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708720#M59917</link>
      <description>You need to do a little bit more to get SD working properly ..&lt;BR /&gt;# cd /var/adm/sw&lt;BR /&gt;# mv security security.old&lt;BR /&gt;# mkdir security&lt;BR /&gt;==&amp;gt;make sure the permission and ownership is the same as the previous "security" directory.&lt;BR /&gt;# /sbin/init.d/net stop&lt;BR /&gt;# /sbin/init.d/swagentd stop&lt;BR /&gt;# /sbin/init.d/net start&lt;BR /&gt;# /sbin/init.d/swagentd start&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Apr 2002 02:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708720#M59917</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-23T02:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708721#M59918</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The command "set_parms hostname" automatically changes your default_realm (hostname settings) in /var/adm/sw/security. &lt;BR /&gt;&lt;BR /&gt;A reboot which is prompted by set_parms is usually the tidiest way to update the change.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 23 Apr 2002 02:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708721#M59918</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-23T02:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708722#M59919</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Thanks for all the information, I have tried using "set_parms", swagentd stop and start, but everytime I give the command "/sbin/init.d/swconfig start" or reboot, there is still the same problem!  :(&lt;BR /&gt;&lt;BR /&gt;I am running BIND in the machine, without any /etc/nsswitch.conf files, and I have put the hostname in /etc/hosts already.  What else did I miss?&lt;BR /&gt;&lt;BR /&gt;Victoria</description>
      <pubDate>Wed, 24 Apr 2002 05:11:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708722#M59919</guid>
      <dc:creator>Victoria Leung</dc:creator>
      <dc:date>2002-04-24T05:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708723#M59920</link>
      <description>Hi,&lt;BR /&gt;Can you do the following&lt;BR /&gt;======================&lt;BR /&gt;# set_parms hostname &lt;BR /&gt;# vi /etc/rc.config.d/netconf&lt;BR /&gt;&lt;BR /&gt;Check for the HOSTNAME variable .&lt;BR /&gt;&lt;BR /&gt;if it is right do one more thing.&lt;BR /&gt;&lt;BR /&gt;# vi /sbin/init.d/hostname&lt;BR /&gt;&lt;BR /&gt;insert the following line in seconf or third line&lt;BR /&gt;&lt;BR /&gt;HOSTNAME="newhostname"&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/hostname stop&lt;BR /&gt;# /sbin/init.d/hostname start&lt;BR /&gt;&lt;BR /&gt;==============================&lt;BR /&gt;&lt;BR /&gt;-Niraj</description>
      <pubDate>Wed, 24 Apr 2002 05:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708723#M59920</guid>
      <dc:creator>Niraj Kumar Verma</dc:creator>
      <dc:date>2002-04-24T05:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708724#M59921</link>
      <description>Lets run through the checklist again ..&lt;BR /&gt;1) /etc/hosts&lt;BR /&gt;==&amp;gt; Make sure a fully qualify hostname is entered, for example&lt;BR /&gt;145.120.14.14 mickey.domain.com mickey&lt;BR /&gt;2) /etc/rc.config.d&lt;BR /&gt;==&amp;gt; The var HOSTNAME must match "uname -a" command output.&lt;BR /&gt;3) /etc/nsswitch.conf&lt;BR /&gt;==&amp;gt; You mentioned you did nt use this file. If 1&amp;amp;2 does not work for you, lets create this file and the entry should look like ..&lt;BR /&gt;hosts: files [NOTFOND=continue] dns&lt;BR /&gt;OR&lt;BR /&gt;hosts: dns [NOTFOUND=continue] files&lt;BR /&gt;&lt;BR /&gt;That's all I can think of for now ..</description>
      <pubDate>Wed, 24 Apr 2002 05:42:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708724#M59921</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-24T05:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708725#M59922</link>
      <description>Hi,&lt;BR /&gt;If you are using DNS server for name resolution then make sure that the new host name entry is there in dns database.&lt;BR /&gt;Otherwise remove /etc/resolv.conf and /etc/nsswitch.conf then try.&lt;BR /&gt;Hope this helps&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 05:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708725#M59922</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2002-04-24T05:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708726#M59923</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you very much.  But I'm still having problems :(&lt;BR /&gt;&lt;BR /&gt;When I remove /etc/resolv.conf, run /sbin/init.d/named stop, and /etc/nsswitch.conf looks like "hosts:  files", I do a nslookup &lt;HOSTNAME&gt;, it still said "No response from server".&lt;BR /&gt;&lt;BR /&gt;It seems that nslookup does not look up the names in the hosts files!  &lt;BR /&gt;&lt;BR /&gt;I have tried to remove nsswitch.conf as well but it is the same.&lt;BR /&gt;&lt;BR /&gt;What could be the problem?&lt;BR /&gt;&lt;BR /&gt;Victoria&lt;/HOSTNAME&gt;</description>
      <pubDate>Wed, 24 Apr 2002 08:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708726#M59923</guid>
      <dc:creator>Victoria Leung</dc:creator>
      <dc:date>2002-04-24T08:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708727#M59924</link>
      <description>Do a trace on nslookup ..&lt;BR /&gt;&lt;BR /&gt;# nslookup -swtrace &lt;HOSTNAME&gt;&lt;BR /&gt;&lt;BR /&gt;to really find out how nslookup searches for its info. That way you know where the hiccup is.&lt;/HOSTNAME&gt;</description>
      <pubDate>Wed, 24 Apr 2002 08:36:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708727#M59924</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-24T08:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708728#M59925</link>
      <description>I believe that behavior is normal (maybe not correct, but normal) for nslookup - it, as it's name implies, looks up DNS names, regardless of the settings in resolv.conf.</description>
      <pubDate>Wed, 24 Apr 2002 09:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708728#M59925</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-04-24T09:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708729#M59926</link>
      <description>Hi Victoria,&lt;BR /&gt;&lt;BR /&gt;I know that this was said before... To me it looks like realm and default_realms are not correct.  What is the default_realm  in /var/adm/sw/security/_OWNER and _ACL file?  Have you checked all the files on /var/adm/sw/security if they have correct hostname entry?</description>
      <pubDate>Wed, 24 Apr 2002 09:36:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708729#M59926</guid>
      <dc:creator>Mateja Bezjak</dc:creator>
      <dc:date>2002-04-24T09:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708730#M59927</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have checked all the files in /var/adm/sw/security/...  the realm and default_realm is correct.&lt;BR /&gt;&lt;BR /&gt;Strange!  "nslookup -swtrace" didn't work, it said "invalid option".&lt;BR /&gt;&lt;BR /&gt;Actually, I have 2 servers, and both of them have the same problem after changing the hostname...  :( &lt;BR /&gt;&lt;BR /&gt;All "swlist", "swinstall" work, why only "swconfig" has errors???&lt;BR /&gt;&lt;BR /&gt;Victoria</description>
      <pubDate>Wed, 24 Apr 2002 09:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708730#M59927</guid>
      <dc:creator>Victoria Leung</dc:creator>
      <dc:date>2002-04-24T09:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708731#M59928</link>
      <description>Have you tried using /usr/sbin/swconfig ?</description>
      <pubDate>Wed, 24 Apr 2002 10:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708731#M59928</guid>
      <dc:creator>Mateja Bezjak</dc:creator>
      <dc:date>2002-04-24T10:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708732#M59929</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;"/usr/sbin/swconfig \*" is ok without any errors.&lt;BR /&gt;&lt;BR /&gt;Only "/sbin/init.d/swconfig start" has errors.  I think when startup, it runs "/sbin/init.d/swconfig start".&lt;BR /&gt;&lt;BR /&gt;I really thank you very much for all your help....  although the problem is not solved yet! &lt;BR /&gt;&lt;BR /&gt;Victoria</description>
      <pubDate>Thu, 25 Apr 2002 01:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708732#M59929</guid>
      <dc:creator>Victoria Leung</dc:creator>
      <dc:date>2002-04-25T01:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708733#M59930</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you show us the contents of the startup script /sbin/init.d/swconfig?&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 25 Apr 2002 02:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708733#M59930</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-25T02:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708734#M59931</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please find attached the /sbin/init.d/swconfig file.  I think that there is a process called "hack_hostname" which causes the error.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;Victoria</description>
      <pubDate>Thu, 25 Apr 2002 09:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708734#M59931</guid>
      <dc:creator>Victoria Leung</dc:creator>
      <dc:date>2002-04-25T09:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708735#M59932</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What is the output for the following:&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/nslookup `/usr/bin/hostname`&lt;BR /&gt;&lt;BR /&gt;# nslookup&lt;BR /&gt;&amp;gt; policy&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 25 Apr 2002 09:31:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708735#M59932</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-25T09:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem after hostname change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708736#M59933</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;/usr/bin/nslookup `/usr/bin/hostname` works when '/etc/resolv.conf' exists, but not works if the file does not exist.&lt;BR /&gt;&lt;BR /&gt;In resolv.conf, I have put in a DNS.  So when startup, this server is not yet ready to connect to the DNS.  So it returns error in nslookup.&lt;BR /&gt;&lt;BR /&gt;The problem is why the '/etc/nsswitch.conf' does not work.  Maybe I am using an old version of nslookup?  It seems that I don't have any option like "policy", "reset", "swtrace" in nslookup...&lt;BR /&gt;&lt;BR /&gt;Please find attached a printout....&lt;BR /&gt;&lt;BR /&gt;Victoria</description>
      <pubDate>Fri, 26 Apr 2002 02:00:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-after-hostname-change/m-p/2708736#M59933</guid>
      <dc:creator>Victoria Leung</dc:creator>
      <dc:date>2002-04-26T02:00:27Z</dc:date>
    </item>
  </channel>
</rss>

