<?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: HPUX 11.31 uname issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742885#M609262</link>
    <description>&amp;gt;if we have to change it then how to change it? I am seeing the __SYS_NMLN_V2 257 also so how to use this one.&lt;BR /&gt;&lt;BR /&gt;You should not be looking at utsname.h to figure out how to program.  You should be looking at the thread and documentation that Pete mentioned.  Are you prepared to recompile every application that calls uname(2)?&lt;BR /&gt;&lt;BR /&gt;See expanded_node_host_names(5):&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02254938/c02254938.pdf" target="_blank"&gt;http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02254938/c02254938.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;HP-UX pumass00 B.11.31 U ia64 1883224899&lt;BR /&gt;&lt;BR /&gt;If your nodename is &amp;gt; 8, uname(1) doesn't check for errors.</description>
    <pubDate>Mon, 24 Jan 2011 12:10:02 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-01-24T12:10:02Z</dc:date>
    <item>
      <title>HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742877#M609254</link>
      <description>I set the uname -S pc123456789 as name and whe i see uname -n&lt;BR /&gt;&lt;BR /&gt;it just shows pc123456 only so my application which uses uname function it also fail?&lt;BR /&gt;&lt;BR /&gt;any workaround on this .&lt;BR /&gt;&lt;BR /&gt;Waiting for reply.&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 24 Jan 2011 11:07:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742877#M609254</guid>
      <dc:creator>shirish11</dc:creator>
      <dc:date>2011-01-24T11:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742878#M609255</link>
      <description>node name has limitation in lenght, only the 1st 8 characters will be taken.</description>
      <pubDate>Mon, 24 Jan 2011 11:11:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742878#M609255</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2011-01-24T11:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742879#M609256</link>
      <description>Hi ,I dont get any where in the doc like node name is of 8 characters.&lt;BR /&gt;can you please give me the doc id of HP UX &lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 24 Jan 2011 11:19:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742879#M609256</guid>
      <dc:creator>shirish11</dc:creator>
      <dc:date>2011-01-24T11:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742880#M609257</link>
      <description>Hello Dear&lt;BR /&gt;&lt;BR /&gt;From the MAN pages of uname(1):&lt;BR /&gt;&lt;BR /&gt;Change the node name (system name) to nodename.&lt;BR /&gt;nodename is restricted to UTSLEN-1 characters (see uname(2)). See WARNINGS. Only users with appropriate privileges can use the -S option.&lt;BR /&gt;&lt;BR /&gt;from the MAN pages of uname(2):&lt;BR /&gt;&lt;BR /&gt;The utsname structure, defined in &lt;SYS&gt;, is set up as&lt;BR /&gt;follows:&lt;BR /&gt;&lt;BR /&gt;#define UTSLEN 9&lt;BR /&gt;#define SNLEN 15&lt;BR /&gt;&lt;BR /&gt;char sysname[UTSLEN];&lt;BR /&gt;char nodename[UTSLEN];&lt;BR /&gt;&lt;BR /&gt;_______________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; setuname()&lt;BR /&gt;The setuname() system call sets the node name (system name), as returned in the nodename field of the utsname structure, to name, which has a length of namelen characters. This is usually executed by /sbin/init.d/hostname at system boot time. Names are limited to UTSLEN - 1 characters; UTSLEN is defined in &lt;SYS&gt;.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;/SYS&gt;&lt;/SYS&gt;</description>
      <pubDate>Mon, 24 Jan 2011 11:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742880#M609257</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2011-01-24T11:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742881#M609258</link>
      <description>&lt;P&gt;See this thread for an extended, and detailed discussion of nodename/hostname/uname and the associated rules:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/System-Administration/hostname-and-nodename/m-p/3788510#M264534" target="_blank"&gt;http://h30499.www3.hp.com/t5/System-Administration/hostname-and-nodename/m-p/3788510#M264534&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 15:52:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742881#M609258</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2011-11-10T15:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742882#M609259</link>
      <description>Note:&lt;BR /&gt;&lt;BR /&gt;in HPUX v3&lt;BR /&gt;&lt;BR /&gt;#  define UTSLEN _SYS_NMLN&lt;BR /&gt;&lt;BR /&gt;And UMLN value&lt;BR /&gt;&lt;BR /&gt;#define __SYS_NMLN_V1   9&lt;BR /&gt;&lt;BR /&gt;the nodename length = UTSLEN-1 = 8.</description>
      <pubDate>Mon, 24 Jan 2011 11:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742882#M609259</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2011-01-24T11:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742883#M609260</link>
      <description>&amp;gt;I set the uname -S pc123456789 as name and when I see uname -n, it just shows pc123456 only so my application which uses uname function it also fail?&lt;BR /&gt;&lt;BR /&gt;Yes, you'll get EOVERFLOW if longer than 8.  Unless you compile it with the special options.</description>
      <pubDate>Mon, 24 Jan 2011 11:40:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742883#M609260</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-24T11:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742884#M609261</link>
      <description>Hi ,&lt;BR /&gt;my utsname.h file is like this ..... &lt;BR /&gt;/*&lt;BR /&gt; * BEGIN_DESC&lt;BR /&gt; *&lt;BR /&gt; * Copyright (c) 1996-2004 Hewlett-Packard Development Company, LP&lt;BR /&gt; *&lt;BR /&gt; *  File:&lt;BR /&gt; *      @(#)B.11.31_LR  common/sys/utsname.h            $Revision: $&lt;BR /&gt; *&lt;BR /&gt; *  Purpose:&lt;BR /&gt; *      Definitions for uname(2) and setuname(2)&lt;BR /&gt; *&lt;BR /&gt; *  Classification:                     Release to Release Consistency Req:&lt;BR /&gt; *      public                                  binary &amp;amp; source&lt;BR /&gt; *&lt;BR /&gt; *  BE header:  yes&lt;BR /&gt; *&lt;BR /&gt; *  Shipped:  yes&lt;BR /&gt; *      /usr/include/sys/utsname.h&lt;BR /&gt; *      /usr/conf/sys/utsname.h&lt;BR /&gt; *&lt;BR /&gt; * END_DESC&lt;BR /&gt; */&lt;BR /&gt;&lt;BR /&gt;#ifndef _SYS_UTSNAME_INCLUDED&lt;BR /&gt;#define _SYS_UTSNAME_INCLUDED&lt;BR /&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;#define __SYS_NMLN_V2   257&lt;BR /&gt;#define __SYS_NMLN_V1   9&lt;BR /&gt;#define __SNLEN_V2      257&lt;BR /&gt;#define __SNLEN_V1      15&lt;BR /&gt;&lt;BR /&gt;#define __UTSNAME_VERSION_V2_ATTR _HPUX_API_VERS_20040821_ATTR&lt;BR /&gt;&lt;BR /&gt;#define _UTSNAME_COMMON_FIELDS(_nmln, _snlen) \&lt;BR /&gt;        char    sysname[_nmln];         \&lt;BR /&gt;        char    nodename[_nmln];        \&lt;BR /&gt;        char    release[_nmln];         \&lt;BR /&gt;        char    version[_nmln];         \&lt;BR /&gt;        char    machine[_nmln];         \&lt;BR /&gt;        char    __idnumber[_snlen];&lt;BR /&gt;&lt;BR /&gt;#define _UTSNAME_EXTENDED_FIELDS(_nmln) \&lt;BR /&gt;        char __domainname[_nmln];       \&lt;BR /&gt;        char __reserved1[_nmln];&lt;BR /&gt;&lt;BR /&gt;#ifdef _INCLUDE_HPUX_SOURCE&lt;BR /&gt;&lt;BR /&gt;struct utsname_hpux_v1 {&lt;BR /&gt;        _UTSNAME_COMMON_FIELDS(__SYS_NMLN_V1, __SNLEN_V1)&lt;BR /&gt;};&lt;BR /&gt;#endif /* _INCLUDE_HPUX_SOURCE */&lt;BR /&gt;&lt;BR /&gt;#if (_INCLUDE_HPUX_API_LEVEL &amp;lt; 20040821)&lt;BR /&gt;&lt;BR /&gt;#define _SYS_NMLN __SYS_NMLN_V1&lt;BR /&gt;#define _SNLEN __SNLEN_V1&lt;BR /&gt;#define __UNAME_VERSION_ATTR&lt;BR /&gt;&lt;BR /&gt;struct utsname {&lt;BR /&gt;        _UTSNAME_COMMON_FIELDS(__SYS_NMLN_V1, __SNLEN_V1)&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;#else /* _INCLUDE_HPUX_API_LEVEL &amp;gt;= 20040821 */&lt;BR /&gt;&lt;BR /&gt;#define _SYS_NMLN __SYS_NMLN_V2&lt;BR /&gt;#define _SNLEN __SNLEN_V2&lt;BR /&gt;#define __UNAME_VERSION_ATTR __UTSNAME_VERSION_V2_ATTR&lt;BR /&gt;&lt;BR /&gt;struct __UTSNAME_VERSION_V2_ATTR utsname {&lt;BR /&gt;        _UTSNAME_COMMON_FIELDS(__SYS_NMLN_V2, __SNLEN_V2)&lt;BR /&gt;        _UTSNAME_EXTENDED_FIELDS(__SYS_NMLN_V2)&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;#endif /* _INCLUDE_HPUX_API_LEVEL &amp;gt;= 20040821 */&lt;BR /&gt;&lt;BR /&gt;#ifdef _INCLUDE_HPUX_SOURCE&lt;BR /&gt;#  define SYS_NMLN _SYS_NMLN&lt;BR /&gt;#  define UTSLEN _SYS_NMLN&lt;BR /&gt;#  define SNLEN _SNLEN&lt;BR /&gt;#  define idnumber      __idnumber&lt;BR /&gt;#  define domainname    __domainname&lt;BR /&gt;#endif /* _INCLUDE_HPUX_SOURCE */&lt;BR /&gt;&lt;BR /&gt;#ifndef _NO_USER_PROTOS&lt;BR /&gt;#ifdef __cplusplus&lt;BR /&gt;  extern "C" {&lt;BR /&gt;#endif /* __cplusplus */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;By default _INCLUDE_HPUX_SOURCE is only defined and if we have to change it then how to change it? i am seeing the __SYS_NMLN_V2   257  also so how to use this one..&lt;BR /&gt;&lt;BR /&gt;my uname -a &lt;BR /&gt;uname -a&lt;BR /&gt;HP-UX pumass00 B.11.31 U ia64 1883224899 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SYS&gt;</description>
      <pubDate>Mon, 24 Jan 2011 11:48:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742884#M609261</guid>
      <dc:creator>shirish11</dc:creator>
      <dc:date>2011-01-24T11:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742885#M609262</link>
      <description>&amp;gt;if we have to change it then how to change it? I am seeing the __SYS_NMLN_V2 257 also so how to use this one.&lt;BR /&gt;&lt;BR /&gt;You should not be looking at utsname.h to figure out how to program.  You should be looking at the thread and documentation that Pete mentioned.  Are you prepared to recompile every application that calls uname(2)?&lt;BR /&gt;&lt;BR /&gt;See expanded_node_host_names(5):&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02254938/c02254938.pdf" target="_blank"&gt;http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02254938/c02254938.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;HP-UX pumass00 B.11.31 U ia64 1883224899&lt;BR /&gt;&lt;BR /&gt;If your nodename is &amp;gt; 8, uname(1) doesn't check for errors.</description>
      <pubDate>Mon, 24 Jan 2011 12:10:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742885#M609262</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-24T12:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742886#M609263</link>
      <description>Thank you</description>
      <pubDate>Mon, 24 Jan 2011 12:25:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742886#M609263</guid>
      <dc:creator>shirish11</dc:creator>
      <dc:date>2011-01-24T12:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.31 uname issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742887#M609264</link>
      <description>&lt;P&gt;&lt;A href="http://h30499.www3.hp.com/t5/System-Administration/hostname-character-limitatation/m-p/4737963#M387009" target="_blank"&gt;http://h30499.www3.hp.com/t5/System-Administration/hostname-character-limitatation/m-p/4737963#M387009&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 15:52:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-31-uname-issue/m-p/4742887#M609264</guid>
      <dc:creator>Manix</dc:creator>
      <dc:date>2011-11-10T15:52:00Z</dc:date>
    </item>
  </channel>
</rss>

