- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: uname -n
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:22 AM
09-16-2003 08:22 AM
We are using HP-UX 11.11. When I issue uname -n, it return the servername without the full domain.
When I try the same command on Tru64 and Linux RH AS, it return server name with the full domain.
Is this what HP-UX suppose to return?
I am having problem with users accessing my server, I am think the server name without full domain might be the problem.
Thanks
Charles
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:30 AM
09-16-2003 08:30 AM
Re: uname -n
I suggest you take a serious look at the man page for uname. Go to the -n section and not the reference to the WARNINGS section. I'm not going to quote the whole thing here. Go take a look.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:31 AM
09-16-2003 08:31 AM
Re: uname -n
Note that HP-UX does not support hostnames greater than 8 characters. You will have access issues if the hostname is greater than that. SD-UX will be VERY unhappy with that circumstance.
hostname returns the hostname
The hostname can be like his
server.yournet.org
It is contained in /etc/rc.config.d/netconf
Check the file /etc/nsswitch.conf to see how name resolution is working on your box.
Is your network using DNS? Are the entries for the HP-UX server correct in the DNS database?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:34 AM
09-16-2003 08:34 AM
SolutionWhat kind of problem are your users having? Most likely the hostname of your HP-UX box has nothing to do with it. Are the users attempting to connect vi hostname or hostname.domain.com? What type of address lookup facility (DNS?) do you use? Is the hostname able to be resolved both ways (hostname and hostname.domain.com)?
I would suspect you name resolution method before I would suspect your HP-UX machine itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:36 AM
09-16-2003 08:36 AM
Re: uname -n
Thanks for your reply.
I did look at the section that you refer me to.
+++++++++++++++++++++++++++++++++++++++++++++++
-n Display the node name (system name) by which the system is usually known in a UUCP network.
+++++++++++++++++++++++++++++++++++++++++++++++
Is the node name suppose to be without the domain?
ie. our server name is epic228 and the domain is dep.state.fl.us. When I issue hostname it return back epic228.dep.state.fl.us, but with uname -n, it only returns epic228. Is this the correct behavior? Or, is something not setup right on our server?
We would like both the hostname and uname -n to display server name with full domain.
Thanks
Charles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:45 AM
09-16-2003 08:45 AM
Re: uname -n
Maybe this excerpt from the WARNINGS section will help:
+--------------+--------------+---------------+-----------------------+
|Node Name |Command |name Format |Used By |
+--------------+--------------+---------------+-----------------------+
|Internet name |hostname name |sys[.x.y.z...] |ARPA and NFS Services |
|UUCP name |uname -S name |sys |uucp, related programs |
+--------------+--------------+---------------+-------- --------------+
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:49 AM
09-16-2003 08:49 AM
Re: uname -n
Well, that didn't come out to legibly, but what it's saying is that "hostname" should return "sys.x.y.z" and "uname" should return "sys". This is consistent with the behaviour you're seeing and is correct for HP-UX.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:51 AM
09-16-2003 08:51 AM
Re: uname -n
Thanks to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 03:29 AM
09-15-2005 03:29 AM