- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Invalid Hostname
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
12-03-2003 05:27 AM
12-03-2003 05:27 AM
Invalid Hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 05:29 AM
12-03-2003 05:29 AM
Re: Invalid Hostname
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 05:30 AM
12-03-2003 05:30 AM
Re: Invalid Hostname
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 05:30 AM
12-03-2003 05:30 AM
Re: Invalid Hostname
And also /sbin/init.d/hostname file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 05:31 AM
12-03-2003 05:31 AM
Re: Invalid Hostname
BTW. you can have max 8 characters long hostname.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 05:31 AM
12-03-2003 05:31 AM
Re: Invalid Hostname
hebron will work
jerusalem will not
hebron.my.net will work
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
12-03-2003 06:09 AM
12-03-2003 06:09 AM
Re: Invalid Hostname
Test change the hostname with set_parms hostname
Regards
Rene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 06:52 AM
12-04-2003 06:52 AM
Re: Invalid Hostname
The major message inside the rc.log is "INDEX: The specified number is not valid for this command"
See attached rc.log file..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 07:11 AM
12-04-2003 07:11 AM
Re: Invalid Hostname
Can you attach your /etc/hosts and /etc/rc.config.d/netconf files.
Thanks
Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 07:41 AM
12-04-2003 07:41 AM
Re: Invalid Hostname
I agree any odd characters in teh /etc/hosts or any number more than 1 verion of netconf in /etc/rc.config.d will cause problems...
In the /etc/hosts, if you have any characters after the hostname it will fail to recognize it.
Check your /var/adm/syslog/syslog.log for any errors related to the hostname.
Your hostname only occurs in those 2 places.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 07:46 AM
12-04-2003 07:46 AM
Re: Invalid Hostname
HOSTNAME=longnameforipaddress
NODENAME=shorty
In other words, if you can't reduce your hostname as defined in /etc/hosts or your local DNS, then make up a new (short) one and add it to netconf for NODENAME.
As far as the bad index messages, this was caused by standardizing the shells for leading zero behavior. The Unix standard has always been numbers with a zero are always in octal notation. There are some scripts in /etc/init.d that assign leading zero numbers like 08 or 09 to variables and of course, those are not valid octal numbers.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 08:01 AM
12-04-2003 08:01 AM
Re: Invalid Hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 08:14 AM
12-04-2003 08:14 AM
Re: Invalid Hostname
You have INTERFACE_NAME[0]=
and INTERFACE_NAME[2]=
i.e. [1] is missing.
Try changing the following lines:-
IP_ADDRESS[2]=10.100.0.17
SUBNET_MASK[2]=255.255.0.0
INTERFACE_NAME[2]=lan2
BROADCAST_ADDRESS[2]=""
INTERFACE_STATE[2]=up
DHCP_ENABLE[1]=0
DHCP_ENABLE[2]=0
to:
IP_ADDRESS[1]=10.100.0.17
SUBNET_MASK[1]=255.255.0.0
INTERFACE_NAME[1]=lan2
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
I'd also relocate those lines to follow the definition for lan0 so that it reads:-
INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="192.1.1.2"
SUBNET_MASK[0]=255.255.0.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
IP_ADDRESS[1]=10.100.0.17
SUBNET_MASK[1]=255.255.0.0
INTERFACE_NAME[1]=lan2
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 08:16 AM
12-04-2003 08:16 AM
Re: Invalid Hostname
Change the index no to 1 from 2.
IP_ADDRESS[2]=10.100.0.17
SUBNET_MASK[2]=255.255.0.0
INTERFACE_NAME[2]=lan2
BROADCAST_ADDRESS[2]=""
INTERFACE_STATE[2]=up
DHCP_ENABLE[1]=0
DHCP_ENABLE[2]=0
//Corrections//
IP_ADDRESS[1]=10.100.0.17
SUBNET_MASK[1]=255.255.0.0
INTERFACE_NAME[1]=lan2
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
//End Correction//
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 08:16 AM
12-04-2003 08:16 AM
Re: Invalid Hostname
IP_ADDRESS[2]=10.100.0.17
SUBNET_MASK[2]=255.255.0.0
INTERFACE_NAME[2]=lan2
BROADCAST_ADDRESS[2]=""
INTERFACE_STATE[2]=up
DHCP_ENABLE[1]=0
DHCP_ENABLE[2]=0
This appears that you are using the secondary one.
What does your netstat -rn show?
Can you do an nslookup on the hostname/ipaddress?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 08:39 AM
12-04-2003 08:39 AM
Re: Invalid Hostname
The primary lan is [2], I think very strange what is happening because I didn't make any changes in my environment... Also I saw a issue about /sbin/rc.utils (script) that show some changes below, and proactively a did this changes as recommended.
let ROWS="${rows##*(0)}"
let COLS="${cols##*(0)}"
Another information, after boot the result of hostname command back to unknow.
Thanks in advance...
Halan Leno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 08:42 AM
12-04-2003 08:42 AM
Re: Invalid Hostname
The result of netstat -rn is what we expected or it is working fine.. About nslookup is working without problems too.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 09:57 AM
12-04-2003 09:57 AM
Re: Invalid Hostname
Try the following to identify them:-
cd /etc/rc.config.d
grep -l "HOSTNAME=" *
You should only see netconf reported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 07:25 AM
12-05-2003 07:25 AM
Re: Invalid Hostname
About the result of command grep it really showed netconf. But I found the problem in nddconf file, that had missing configuration.I found it using sh -x /etc/rc.config and i looked inside it, and check that had something wrong in nddconf file..
Now is everything, working fine..
Thanks for all..
Halan Leno