Operating System - HP-UX
1836579 Members
1666 Online
110102 Solutions
New Discussion

Re: computer name (hostname) on hpux

 
SOLVED
Go to solution
Shivkumar
Super Advisor

computer name (hostname) on hpux

Dear Sir,

What are files where hpux keeps it's computer name (hostname)?
In /etc/hosts file which entry signifies the real computer name ?

Thanks,
Shiv
6 REPLIES 6
melvyn burnard
Honored Contributor
Solution

Re: computer name (hostname) on hpux

look at the HOSTNAME variable in /etc/rc.config.d/netconf
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Cem Tugrul
Esteemed Contributor
Muthukumar_5
Honored Contributor

Re: computer name (hostname) on hpux

HOSTNAME informations is stored in /etc/rc.config.d/netconf file.

It is read by /sbin/init.d/hostname startup script and set it as,

hostname $HOSTNAME

hth.
Easy to suggest when don't know about the problem!
Pete Randall
Outstanding Contributor

Re: computer name (hostname) on hpux

Though I think that, as Melvyn said, it's primarily set in the netconf file, I always rely on "/sbin/set_parms hostname" to ensure that changes take place everywhere they need to.


Pete

Pete
Giacomo TOTTI
Advisor

Re: computer name (hostname) on hpux

Hi,
edit /etc/rc.config.d/netconf
cd /sbin/init.d
./net sop
./net start

enjoy

Giacomo
Mahesh Kumar Malik
Honored Contributor

Re: computer name (hostname) on hpux

Hi Shiv

Host name is found in /etc/rc.config.d/netconf file besides /etc/hosts

Regards
Mahesh