1832120 Members
3136 Online
110038 Solutions
New Discussion

Re: Hostname problem

 
M.sureshkumar
Regular Advisor

Hostname problem

Hi All,

Just now i checked syslogfile in my hp rx2600 server.The following output displayed.I checked hostname.hostname is ok(by using hostname command).Also i checked /etc/hosts file is ok.

Pls give me how to match the hostname from unknown to test123.

May 5 10:58:37 unknown inetd[1619]: daytime/tcp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: daytime/udp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: time/tcp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: echo/tcp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: echo/udp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: discard/tcp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: discard/udp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: chargen/tcp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: chargen/udp: Added service, server internal
May 5 10:58:37 unknown inetd[1619]: kshell/tcp: Added service, server /usr/lbin
/remshd
May 5 10:58:37 unknown inetd[1619]: klogin/tcp: Added service, server /usr/lbin
/rlogind

Regards,
Suresh
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: Hostname problem

Note: hostname can not have any section (between periods) that is more than 8 characters.

This appears to be a problem with the inetd daemon.

check /etc/inetd.conf

inetd -k
inetd -c

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
M.sureshkumar
Regular Advisor

Re: Hostname problem

Hi,

Pls find the following output.

unknown:root:/#hostname
lcsweb6 ((not more than 8 char.)

unknown:root:/#inetd -k
unknown:root:/#inetd -c
inetd: There is no inetd running

How to change the hostname from unknown to lcsweb6

Regards,
Suresh

Bharat Katkar
Honored Contributor

Re: Hostname problem

Hi SUresh,

1. Try pinging lcsweb6 ...see if it works.
2. Check root users .profile and /etc/profile
3. Use /sbin/init.d/inetd stop|start to stop and start inetd daemon.

If still it doesn't work then use:

4. Confirm entries in /etc/hosts are correct and execute:
# set_parms hostname

But this will reboot the system and you will see your hostname back after reboot.

Hope that helps.
Regards,


You need to know a lot to actually know how little you know
Sudeesh
Respected Contributor

Re: Hostname problem

can u publish your /etc/hosts entries?


Sudeesh
The most predictable thing in life is its unpredictability
M.sureshkumar
Regular Advisor

Re: Hostname problem

Hi Bharat,

Pinging is ok.

i tried to start the inetd in console, iam getting the following error
/sbin/init.d/inetd (36):/etc/ntp.conf is not identifier.But inetd command is working.
I checked host name is lcsweb6 and i checked uname -m , it displayed "unknown, then i used uname -S lcsweb6.After restart "uname" command output is unknown

Regards,
Suresh
Bharat Katkar
Honored Contributor

Re: Hostname problem

Suresh,

1. Use # set_parms hostname
for changing hostname permanently and reboot the system. I hope this should work.
2. Check /etc/nsswitch.conf file if it is present.
3. Check if your /etc/inetd.conf file is correct and see you do not have any backup file of inetd.conf in /etc. if it is there move it to some other directory.
Becuase during system startup all files in the /etc directory are read.

Regards,
You need to know a lot to actually know how little you know
Robert-Jan Goossens
Honored Contributor

Re: Hostname problem

Hi Suresh,

# cd /etc/rc.config.d
# grep HOSTNAME *
Check if there is a backup file of the netconf configuration, if so move it to the /tmp dir.
Double check the netconf file for errors.

HOSTNAME="lcsweb6"
LOOPBACK_ADDRESS=127.0.0.1
IP_ADDRESS[0]=X.XX.XX.XXX

Check you /etc/hosts file

127.0.0.1 localhost loopback
X.XX.XX.XXX lcsweb6

Check you /etc/nsswitch.conf should include
hosts: files

If you have changed the netconf file hostname /ip make shure to reboot.

Robert-Jan
M.sureshkumar
Regular Advisor

Re: Hostname problem

Hi

Actually the problem is node name and System name are different.After i sychronized node name and system name via "SAM".

NOw it is working fine.

Thanks,
Suresh.
Bharat Katkar
Honored Contributor

Re: Hostname problem

Suresh, Still not getting any clue .... ??
You need to know a lot to actually know how little you know
Kirk MacLean_2
Frequent Advisor

Re: Hostname problem

Can anybody expand on where in sam he did this?

"After i sychronized node name and system name via "SAM"."