- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- increasing max length of uname
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
01-23-2002 05:00 PM
01-23-2002 05:00 PM
increasing max length of uname
The underlying problem we are trying to solve is this: Our host naming scheme requires hostnames longer than 8 characters, and we want the hostname and nodename to be the same (as recommended by the man page).
Thanks,
Larry Schaue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2002 05:14 PM
01-23-2002 05:14 PM
Re: increasing max length of uname
Edit the file: /etc/rc.config.d/netconf and locate the line:
HOSTNAME="goofy"
Add a new line:
NODENAME="goofy"
and change HOSTNAME to:
HOSTNAME="goofythegreat"
or whatever.
Now be sure to edit /etc/hosts to include the short uname and the long hostname (as well as the FQDN or fully qualified domain name) appear in /etc/hosts.
Then to avoid delays and problems with DNS, edit gthe /etc/nsswitch.conf file and change the hosts: line to read
hosts: files[NOTFOUND=continue UNAVAIL=continue] dns
This ensure high reliability (in case of a DNS failure) and low network load for unnecessary DNS requests.
Now your system is ready to reboot, but if you want to verify that all is well, you can make the changes by hand too:
uname -S goofy
hostname goofythegreat
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2002 05:37 AM
01-24-2002 05:37 AM
Re: increasing max length of uname
Thanks for the response. I know that uname is the nodename (and not the hostname), but I want the hostname = nodename (since many programs use 'uname -n' instead of 'hostname' to determine the hostname). According to the man page for 'uname', I *should* be able to increase the length of the nodename (UTSLEN - 1). But changing sys/utsname.h and recompiling the kernel doesn't seem to work. What is the proper way to change this?
Thanks, Larry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 10:35 AM
01-28-2002 10:35 AM
Re: increasing max length of uname
Thanks in advance,
Larry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 10:41 AM
01-28-2002 10:41 AM
Re: increasing max length of uname
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xeecad06ed8c8d4118fef0090279cd0f9,00.html
g'd luck
t++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 11:27 AM
01-28-2002 11:27 AM
Re: increasing max length of uname
Thanks for the info. Unfortunately it does not help solve my problem. I know that the hostname can be longer than 8 chars (and have tested it). I want to increase the NODENAME to more than 8 chars. I see two likely scenarios (although others are possible):
1. We must recompile the setuname binary (and maybe uname) for the change in UTSLEN to take effect.
2. The solution is to recompile the kernel, but we did not do this correctly (a possibility, but we used SAM).
3. The man page for uname is incorrect: The nodename is NOT based on UTSLEN-1, but is always '8'.
There are probably other possibilites. I'm just looking for the solution: How to make the nodename longer than 8 chars.
Thanks,
Larr