- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hostname trouble
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
05-18-2008 04:28 AM
05-18-2008 04:28 AM
Hostname trouble
I have a problem that has consumed me. My N4000 running 11i ver 1 has issues. I added a Gigabit NIC to it, and now it doesn't want to keep it's hostname when rebooted. Along with that, inetd doesn't load, so no one can telnet to it. Once I start these services manually, (set_parms hostname, and inetd,) everything 'seems' to run ok, but there may be some related application issues.
I have disabled the original 10/100 NIC, and made the proper entries in the netconf file. Also, swagentd doesn't load. Is there a step I've missed?
thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 04:47 AM
05-18-2008 04:47 AM
Re: Hostname trouble
Check /etc/rc.config.d/netconf
HOSTNAME settings in there.
If your hostname is more than 8 characters, your system will have NO hostname.
Pick one with 8 or less characters.
Your symptom is typical of having exceeded HP-UX hostname length limitations.
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
05-18-2008 04:50 AM
05-18-2008 04:50 AM
Re: Hostname trouble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 04:50 AM
05-18-2008 04:50 AM
Re: Hostname trouble
HOSTNAME="N4000"
So, that's not it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 05:05 AM
05-18-2008 05:05 AM
Re: Hostname trouble
unknown vmd[2127]: gethostbyname failed
In /etc/rc.log there's a couple of things that failed.
/sbin/rc1.d/S093vxvm-reconfig[48]: /etc/vx/lib/vxcommon: not found
"/sbin/rc1.d/S093vxvm-reconfig start" FAILED
cleaning up uucp
/var/spool/uucp directory unreadable
ERROR CODE 1
"/sbin/rc2.d/S202clean_uucp start" FAILED
Running /usr/lib/sw/mx/configure to reset hostname.
NOTE: Can not find fully qualified hostname with nslookup. Using unknown.
ERROR: Failed to package AgentConfig into /var/opt/mx/depot11.
swpackage did not run or produced no output.
ERROR: Failed to package AgentConfig into /var/opt/mx/depot10.
swpackage did not run or produced no output.
WARNING: Could not properly configure SD into ServiceControl.
You may try again later by running /usr/lib/sw/mx/configure.
"/sbin/rc2.d/S870swagentd start" FAILED
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 05:14 AM
05-18-2008 05:14 AM
Re: Hostname trouble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 05:15 AM
05-18-2008 05:15 AM
Re: Hostname trouble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 05:31 AM
05-18-2008 05:31 AM
Re: Hostname trouble
> HOSTNAME="N4000"
Is the hostname of this server supposed to be N4000 and does it match the entry in /etc/hosts and in the DNS server?
> I added a Gigabit NIC to it
Was this to replace the builtin LAN interface or was this an add on?
Post the netconf and hosts files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 05:54 AM
05-18-2008 05:54 AM
Re: Hostname trouble
This is an add-on. I've disabled the built-in 10/100 NIC.
I've attached the netconf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 05:54 AM
05-18-2008 05:54 AM
Re: Hostname trouble
Thanks again!!
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 05:55 AM
05-18-2008 05:55 AM
Re: Hostname trouble
Also check your /etc/rc.config.d directory for "old" or duplicate files, for example netconf.old etc.
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 05:58 AM
05-18-2008 05:58 AM
Re: Hostname trouble
No duplicate files are there...this is perplexing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:04 AM
05-18-2008 06:04 AM
Re: Hostname trouble
IP_ADDRESS[1]=10.1.1.65
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=10.1.1.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
The index in each line, [1] should be [0].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:12 AM
05-18-2008 06:12 AM
Re: Hostname trouble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:15 AM
05-18-2008 06:15 AM
Re: Hostname trouble
Since you only have one LAN card, all entries should have the same index and that should be [0] because the /sbin/init.d/net script is set to start at [0] and build yp its LAN loop if there were one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:19 AM
05-18-2008 06:19 AM
Re: Hostname trouble
So, should I also change the line
INTERFACE_NAME[1]=lan1 to
INTERFACE_NAME[0]=lan0, or
INTERFACE_NAME[0]=lan1
So many 1's and 0's...I feel like binary_man!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:23 AM
05-18-2008 06:23 AM
Re: Hostname trouble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:28 AM
05-18-2008 06:28 AM
Re: Hostname trouble
TTr is correct. Your entries should look like:
IP_ADDRESS[0]=10.1.1.65
SUBNET_MASK[0]=255.255.255.0
INTERFACE_NAME[0]=lan1
BROADCAST_ADDRESS[0]=10.1.1.255
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0
'lan1' is the hardware and it is defined as the first (zero-relative) instance. It could just as well be 'lan2' there.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:28 AM
05-18-2008 06:28 AM
Re: Hostname trouble
I will set all that to [0], and lan0, and attampt a reboot. It's Sunday, right? I'll just blame it on gremlins.
Points will be issued after the reboot!!
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:29 AM
05-18-2008 06:29 AM
Re: Hostname trouble
INTERFACE_NAME[0]=lan1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 06:32 AM
05-18-2008 06:32 AM
Re: Hostname trouble
Will do!!!
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 07:17 AM
05-18-2008 07:17 AM
Re: Hostname trouble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 07:25 AM
05-18-2008 07:25 AM
Re: Hostname trouble
> Well, I made the changes suggested, and rebooted.
Ah, but from which point in this thread?
> I will set all that to [0], and lan0, and attampt a reboot
If you did that, yes failure was imminent. Please re-read your thread beginning with my original post, and TTr's thereafter.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 07:28 AM
05-18-2008 07:28 AM
Re: Hostname trouble
Sorry 'bout that.
INTERFACE_NAME[0]=lan1
everything else in [1] was set to [0]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2008 07:35 AM
05-18-2008 07:35 AM
Re: Hostname trouble
I also noticed another discrepancy. I don't know if it is a typo or an intended change.
The original IP at lan0 was 10.1.1.64. The new one at lan1 is 10.1.1.65.
Which one is correct? What ever it is, it should match the /etc/hosts and DNS.
HOSTNAME="N4000"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.1.1.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
GATED=0
GATED_ARGS=""
RDPD=0
RARP=0
IP_ADDRESS[0]=10.1.1.65
SUBNET_MASK[0]=255.255.255.0
INTERFACE_NAME[0]=lan1
BROADCAST_ADDRESS[0]=10.1.1.255
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0