<?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: HOSTNAME in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129012#M449384</link>
    <description>Thank you all for your helps.&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
    <pubDate>Wed, 10 Sep 2008 06:32:14 GMT</pubDate>
    <dc:creator>tom quach_1</dc:creator>
    <dc:date>2008-09-10T06:32:14Z</dc:date>
    <item>
      <title>HOSTNAME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129007#M449379</link>
      <description>Dear,&lt;BR /&gt;&lt;BR /&gt;man hostname shown that /sbin/init.d/hostname&lt;BR /&gt;would set the hostname parameter on hpux 11.31&lt;BR /&gt;but when i do echo $ HOSTNAME&lt;BR /&gt;i get this error, &lt;BR /&gt;sh: HOSTNAME: Parameter not set&lt;BR /&gt;then i have to set hostname in /etc/profile&lt;BR /&gt;to get hostname from echo command.&lt;BR /&gt;does anyone know why.&lt;BR /&gt;Thanks  in advance.&lt;BR /&gt;Tom</description>
      <pubDate>Tue, 09 Sep 2008 20:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129007#M449379</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2008-09-09T20:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129008#M449380</link>
      <description>HOSTNAME is just a shell variable.&lt;BR /&gt;&lt;BR /&gt;If you wish it set for everyone's shell then you put it in /etc/profile.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;export HOSTNAME=`hostname`&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Sep 2008 20:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129008#M449380</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-09-09T20:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129009#M449381</link>
      <description>Hi Tom:&lt;BR /&gt;&lt;BR /&gt;The 'HOSTNAME' variable is defined and editted in '/etc/rc.config.d/netconf'.  It is established in '/sbin/init.d/hostname'.&lt;BR /&gt;&lt;BR /&gt;If you want to use it in a script, reference it as:&lt;BR /&gt;&lt;BR /&gt;# echo $(hostname)&lt;BR /&gt;&lt;BR /&gt;Or:&lt;BR /&gt;&lt;BR /&gt;# ME=$(hostname); echo "I am at '${ME}'"&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 09 Sep 2008 20:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129009#M449381</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-09-09T20:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129010#M449382</link>
      <description>In the /sbin/init.d/hostname script, you won't see HOSTNAME= anywhere in the script. It is set in the startup script configuration file located in /etc/rc.config.d/netconf. However, this variable is only used during startup.&lt;BR /&gt; &lt;BR /&gt;If you really need HOSTNAME set, do it in /etc/profile:&lt;BR /&gt; &lt;BR /&gt;export HOSTNAME=$(hostname)</description>
      <pubDate>Wed, 10 Sep 2008 00:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129010#M449382</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-09-10T00:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129011#M449383</link>
      <description>check you have hostname&lt;BR /&gt;&lt;BR /&gt;#hostname&lt;BR /&gt;&lt;BR /&gt;if not set then run the command &lt;BR /&gt;#set_parms host_name&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;otherwise follow the instruction listed above.</description>
      <pubDate>Wed, 10 Sep 2008 01:01:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129011#M449383</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-09-10T01:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129012#M449384</link>
      <description>Thank you all for your helps.&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2008 06:32:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname/m-p/5129012#M449384</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2008-09-10T06:32:14Z</dc:date>
    </item>
  </channel>
</rss>

