- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hostname problem
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
06-11-2005 07:46 AM
06-11-2005 07:46 AM
I have a big problem with thist problem, when i type hostname command in a hp-ux server appear another ip address, this ip address does not belong to this server.
Thanks for your help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 07:50 AM
06-11-2005 07:50 AM
Re: Hostname problem
Could you please show an output of the command.
Hostname usually gives name, not IP.
In any case, check the following files:
/etc/hosts, /etc/rc.config.d/netconf,
/etc/nsswitch.conf.
Also please check yor name resolution (DNS,NIS).
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 12:59 PM
06-11-2005 12:59 PM
Re: Hostname problem
Agree with Victor that your question is a bit confusing. If you mean that by typing hostname it shows the name of a server whose IP is other than this server then you can check the hostname set in /etc/rc.config.d/netconf file & entry for the same name in /etc/hosts.
/etc/nssswitch.conf will let you know how the name resolution is taking place.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 02:20 PM
06-11-2005 02:20 PM
Re: Hostname problem
$ hostname
and you get back an IP address ?
can you type:
$ uname -a
does this return an IP address also ?
I don't believe this is true, for the hostname might truncate the length to 8 characters on the output..
what explan can you show us ?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 03:17 PM
06-11-2005 03:17 PM
Re: Hostname problem
1, issue this command
#hostname name_that_you_want
2, edit //etc/rc.config.d/netconf
HOSTNAME="server" #change it
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
save, exit and then issue two more commands
[server:/sbin/init.d] /sbin/init.d/net stop
[server:/sbin/init.d] /sbin/init.d/net start
HTH
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 03:21 PM
06-11-2005 03:21 PM
Re: Hostname problem
Nguyen Anh, did mention that you can set the 'hostname' by running the hostname command. so, my point was, maybe someone did this command:
# hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 09:31 AM
06-13-2005 09:31 AM
Re: Hostname problem
Thank again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 09:00 AM
06-14-2005 09:00 AM
Re: Hostname problem
I have this problem with the HP-UX server, when i typed uname -a i got the right name of the server, but when i try with hostaname those name does not match, the name must be tgt20, and whe i try to list or install any aplication o patch i got this error:
-all:[P0]/>swlist
# Initializing...
# Contacting target "-all"...
ERROR: Could not contact host "-all". Make sure the hostname is
correct and an absolute pathname is specified (beginning with
"/").
ERROR: More information may be found in the daemon logfile on this
target (default location is -all:/var/adm/sw/swagentd.log).
-all:[P0]/>
Attached the other command:
-all:[P0]/>uname -a
HP-UX tgt20 B.11.11 U 9000/800 2964193283 unlimited-user license
-all:[P0]/>hostname
-all
-all:[P0]/>
I´d like to know how to fix this error without boot the server.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 09:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 09:09 AM
06-14-2005 09:09 AM
Re: Hostname problem
that might tell you something.
also check if somebody messed up with the /sbin/init.d/hostname script. I have seen stranger things happen by some people with good intentions and bad knowledge, modifying the startup scripts.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 09:17 AM
06-14-2005 09:17 AM