<?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: Invalid Hostname in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135254#M153897</link>
    <description>I still having problems after last boot... I made changes with the command set_parms hostname, and after thart I shutdown the machine again, but many daemon failed. &lt;BR /&gt;The major message inside the rc.log is "INDEX: The specified number is not valid for this command"&lt;BR /&gt;See attached rc.log file..</description>
    <pubDate>Thu, 04 Dec 2003 14:52:35 GMT</pubDate>
    <dc:creator>Halan Leno</dc:creator>
    <dc:date>2003-12-04T14:52:35Z</dc:date>
    <item>
      <title>Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135247#M153890</link>
      <description>After rebooting the server, some inet services doesn't start correctly. And when I ran hostname command the given is unknow. The /etc/hosts is correctly setup. Any help would be appreciated...</description>
      <pubDate>Wed, 03 Dec 2003 13:27:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135247#M153890</guid>
      <dc:creator>Halan Leno</dc:creator>
      <dc:date>2003-12-03T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135248#M153891</link>
      <description>The hostname is set in /etc/rc.config.d/netconf check there.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Wed, 03 Dec 2003 13:29:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135248#M153891</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-12-03T13:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135249#M153892</link>
      <description>Run the "/sbin/set_parms hostname" command, then reboot.  Report back if you're still having problems.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 03 Dec 2003 13:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135249#M153892</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-12-03T13:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135250#M153893</link>
      <description>Also check /etc/rc.config.d/netconf file.&lt;BR /&gt;&lt;BR /&gt;And also /sbin/init.d/hostname file.</description>
      <pubDate>Wed, 03 Dec 2003 13:30:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135250#M153893</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-12-03T13:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135251#M153894</link>
      <description>Did you modified hostname entry on /etc/rc.config.d/netconf file ? If so, what is the new name ? &lt;BR /&gt;&lt;BR /&gt;BTW. you can have max 8 characters long hostname.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 03 Dec 2003 13:31:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135251#M153894</guid>
      <dc:creator>DIPAK KUMAR ROY</dc:creator>
      <dc:date>2003-12-03T13:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135252#M153895</link>
      <description>hostname 8 charcaters or less&lt;BR /&gt;&lt;BR /&gt;hebron will work&lt;BR /&gt;&lt;BR /&gt;jerusalem will not&lt;BR /&gt;&lt;BR /&gt;hebron.my.net will work&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 03 Dec 2003 13:31:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135252#M153895</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-12-03T13:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135253#M153896</link>
      <description>Verify in /etc/rc.config.d only one file exist with name netcof no shuld exist netconf.old&lt;BR /&gt;&lt;BR /&gt;Test change the hostname with set_parms hostname&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Rene</description>
      <pubDate>Wed, 03 Dec 2003 14:09:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135253#M153896</guid>
      <dc:creator>Rene Mendez_4</dc:creator>
      <dc:date>2003-12-03T14:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135254#M153897</link>
      <description>I still having problems after last boot... I made changes with the command set_parms hostname, and after thart I shutdown the machine again, but many daemon failed. &lt;BR /&gt;The major message inside the rc.log is "INDEX: The specified number is not valid for this command"&lt;BR /&gt;See attached rc.log file..</description>
      <pubDate>Thu, 04 Dec 2003 14:52:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135254#M153897</guid>
      <dc:creator>Halan Leno</dc:creator>
      <dc:date>2003-12-04T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135255#M153898</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you attach your /etc/hosts and /etc/rc.config.d/netconf files.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sanjay</description>
      <pubDate>Thu, 04 Dec 2003 15:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135255#M153898</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2003-12-04T15:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135256#M153899</link>
      <description>What had you changed before this reboot? &lt;BR /&gt;&lt;BR /&gt;I agree any odd characters in teh /etc/hosts or any number more than 1 verion of netconf in /etc/rc.config.d will cause problems...&lt;BR /&gt;&lt;BR /&gt;In the /etc/hosts, if you have any characters after the hostname it will fail to recognize it.&lt;BR /&gt;&lt;BR /&gt;Check your /var/adm/syslog/syslog.log for any errors related to the hostname.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your hostname only occurs in those 2 places.</description>
      <pubDate>Thu, 04 Dec 2003 15:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135256#M153899</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-12-04T15:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135257#M153900</link>
      <description>Make sure that your hostname is 8 characters or less. The hostname can be different than a name assigned to the IP address (hostname = UUCP name = uname -n). See the man page for hostname. However, there is an undocumented way to make the hostname long and still comply with the UUCP limit of 8 characters. Edit the file /etc/rc.config.d/netconf and change the line with HOSTNAME to:&lt;BR /&gt; &lt;BR /&gt;HOSTNAME=longnameforipaddress&lt;BR /&gt;NODENAME=shorty&lt;BR /&gt; &lt;BR /&gt;In other words, if you can't reduce your hostname as defined in /etc/hosts or your local DNS, then make up a new (short) one and add it to netconf for NODENAME.&lt;BR /&gt; &lt;BR /&gt;As far as the bad index messages, this was caused by standardizing the shells for leading zero behavior. The Unix standard has always been numbers with a zero are always in octal notation. There are some scripts in /etc/init.d that assign leading zero numbers like 08 or 09 to variables and of course, those are not valid octal numbers.</description>
      <pubDate>Thu, 04 Dec 2003 15:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135257#M153900</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-12-04T15:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135258#M153901</link>
      <description>As asked I attached /etc/hosts and /etc/rc.config.d/netconf,</description>
      <pubDate>Thu, 04 Dec 2003 16:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135258#M153901</guid>
      <dc:creator>Halan Leno</dc:creator>
      <dc:date>2003-12-04T16:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135259#M153902</link>
      <description>One issue is that you have a gap in the array that defines your Network cards.&lt;BR /&gt;&lt;BR /&gt;You have INTERFACE_NAME[0]=&lt;BR /&gt;and      INTERFACE_NAME[2]=&lt;BR /&gt;&lt;BR /&gt;i.e. [1] is missing.&lt;BR /&gt;&lt;BR /&gt;Try changing the following lines:-&lt;BR /&gt;IP_ADDRESS[2]=10.100.0.17&lt;BR /&gt;SUBNET_MASK[2]=255.255.0.0&lt;BR /&gt;INTERFACE_NAME[2]=lan2&lt;BR /&gt;BROADCAST_ADDRESS[2]=""&lt;BR /&gt;INTERFACE_STATE[2]=up&lt;BR /&gt;DHCP_ENABLE[1]=0&lt;BR /&gt;DHCP_ENABLE[2]=0&lt;BR /&gt;to:&lt;BR /&gt;IP_ADDRESS[1]=10.100.0.17&lt;BR /&gt;SUBNET_MASK[1]=255.255.0.0&lt;BR /&gt;INTERFACE_NAME[1]=lan2&lt;BR /&gt;BROADCAST_ADDRESS[1]=""&lt;BR /&gt;INTERFACE_STATE[1]=up&lt;BR /&gt;DHCP_ENABLE[1]=0&lt;BR /&gt;&lt;BR /&gt;I'd also relocate those lines to follow the definition for lan0 so that it reads:-&lt;BR /&gt;&lt;BR /&gt;INTERFACE_NAME[0]="lan0"&lt;BR /&gt;IP_ADDRESS[0]="192.1.1.2"&lt;BR /&gt;SUBNET_MASK[0]=255.255.0.0&lt;BR /&gt;BROADCAST_ADDRESS[0]=""&lt;BR /&gt;INTERFACE_STATE[0]=""&lt;BR /&gt;DHCP_ENABLE[0]=0&lt;BR /&gt;&lt;BR /&gt;IP_ADDRESS[1]=10.100.0.17&lt;BR /&gt;SUBNET_MASK[1]=255.255.0.0&lt;BR /&gt;INTERFACE_NAME[1]=lan2&lt;BR /&gt;BROADCAST_ADDRESS[1]=""&lt;BR /&gt;INTERFACE_STATE[1]=up&lt;BR /&gt;DHCP_ENABLE[1]=0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 16:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135259#M153902</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-12-04T16:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135260#M153903</link>
      <description>Hi Halan,&lt;BR /&gt;&lt;BR /&gt;Change the index no to 1 from 2.&lt;BR /&gt;&lt;BR /&gt;IP_ADDRESS[2]=10.100.0.17&lt;BR /&gt;SUBNET_MASK[2]=255.255.0.0&lt;BR /&gt;INTERFACE_NAME[2]=lan2&lt;BR /&gt;BROADCAST_ADDRESS[2]=""&lt;BR /&gt;INTERFACE_STATE[2]=up&lt;BR /&gt;DHCP_ENABLE[1]=0&lt;BR /&gt;DHCP_ENABLE[2]=0&lt;BR /&gt;&lt;BR /&gt;//Corrections//&lt;BR /&gt;&lt;BR /&gt;IP_ADDRESS[1]=10.100.0.17&lt;BR /&gt;SUBNET_MASK[1]=255.255.0.0&lt;BR /&gt;INTERFACE_NAME[1]=lan2&lt;BR /&gt;BROADCAST_ADDRESS[1]=""&lt;BR /&gt;INTERFACE_STATE[1]=up&lt;BR /&gt;DHCP_ENABLE[1]=0&lt;BR /&gt;&lt;BR /&gt;//End Correction//&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 16:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135260#M153903</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2003-12-04T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135261#M153904</link>
      <description>Which lan card are you using for the primary?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IP_ADDRESS[2]=10.100.0.17&lt;BR /&gt;SUBNET_MASK[2]=255.255.0.0&lt;BR /&gt;INTERFACE_NAME[2]=lan2&lt;BR /&gt;BROADCAST_ADDRESS[2]=""&lt;BR /&gt;INTERFACE_STATE[2]=up&lt;BR /&gt;DHCP_ENABLE[1]=0&lt;BR /&gt;DHCP_ENABLE[2]=0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This appears that you are using the secondary one.&lt;BR /&gt;&lt;BR /&gt;What does your netstat -rn show? &lt;BR /&gt;&lt;BR /&gt;Can you do an nslookup on the hostname/ipaddress?</description>
      <pubDate>Thu, 04 Dec 2003 16:16:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135261#M153904</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-12-04T16:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135262#M153905</link>
      <description>Hi..&lt;BR /&gt;&lt;BR /&gt;The primary lan is [2], I think very strange what is happening because I didn't make any changes in my environment... Also I saw a issue about /sbin/rc.utils (script) that show some changes below, and proactively a did this changes as recommended.&lt;BR /&gt;&lt;BR /&gt;let ROWS="${rows##*(0)}"&lt;BR /&gt;let COLS="${cols##*(0)}"&lt;BR /&gt;&lt;BR /&gt;Another information, after boot the result of hostname command back to unknow.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance...&lt;BR /&gt;&lt;BR /&gt;Halan Leno&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 16:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135262#M153905</guid>
      <dc:creator>Halan Leno</dc:creator>
      <dc:date>2003-12-04T16:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135263#M153906</link>
      <description>Hi Todd.&lt;BR /&gt;&lt;BR /&gt;The result of netstat -rn is what we expected or it is working fine.. About nslookup is working without problems too.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 04 Dec 2003 16:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135263#M153906</guid>
      <dc:creator>Halan Leno</dc:creator>
      <dc:date>2003-12-04T16:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135264#M153907</link>
      <description>One other possibility, check if there are any other files in /etc/rc.config.d which declare a variable called HOSTNAME. Almost all the files in this directory get run by initialisation scripts.&lt;BR /&gt;&lt;BR /&gt;Try the following to identify them:-&lt;BR /&gt;cd /etc/rc.config.d&lt;BR /&gt;grep -l "HOSTNAME=" *&lt;BR /&gt;&lt;BR /&gt;You should only see netconf reported.</description>
      <pubDate>Thu, 04 Dec 2003 17:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135264#M153907</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-12-04T17:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135265#M153908</link>
      <description>Hi..&lt;BR /&gt;&lt;BR /&gt;About the result of command grep it really showed netconf. But I found the problem in nddconf file, that had missing configuration.I found it using sh -x /etc/rc.config and i looked inside it, and check that had something wrong in nddconf file..&lt;BR /&gt;&lt;BR /&gt;Now is everything, working fine..&lt;BR /&gt;&lt;BR /&gt;Thanks for all..&lt;BR /&gt;&lt;BR /&gt;Halan Leno</description>
      <pubDate>Fri, 05 Dec 2003 15:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-hostname/m-p/3135265#M153908</guid>
      <dc:creator>Halan Leno</dc:creator>
      <dc:date>2003-12-05T15:25:14Z</dc:date>
    </item>
  </channel>
</rss>

