1837520 Members
3732 Online
110117 Solutions
New Discussion

hostname

 
SOLVED
Go to solution
Rolf Kuhfuss
Advisor

hostname

on a hpux 11.i server - in which files is the hostname registered?
It's better to play a nick-shot then a bad longline !
8 REPLIES 8
Thayanidhi
Honored Contributor
Solution

Re: hostname

I think it is

/etc/rc.config.d/netconf

Attitude (not aptitude) determines altitude.
Luc Bussieres_1
Trusted Contributor

Re: hostname

Hi

the hostname is saved in the 2 following files;
/etc/hosts
/etc/rc.config.d/netconf

also you could change the /etc/issue to tell the correct information when you connect with telnet or on the console.

Regards
Luc
Pete Randall
Outstanding Contributor

Re: hostname

From man hostname:
The system does not rely on a single system name in a specific
location, partly because different services use dissimilar name
formats

do a man on hostname.

Pete

Pete
Thayanidhi
Honored Contributor

Re: hostname

If you want to change use

uname -S

or

sam
Attitude (not aptitude) determines altitude.
Jeff Schussele
Honored Contributor

Re: hostname

Hi Rolf,

In /etc/rc.config.d/netconf is where the system initially pulls it's hostname at boot - in the HOSTNAME field.
The /etc/hosts file should also contain the name.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: hostname

Some that I can think of but by no means exhaustive. If you're thinking about changing the hostname make sure you use "set_parms" to cover all bases.

/etc/rc.config.d/netconf
/etc/issue
/etc/warning
/etc/hosts
/var/adm/sw/products/ifiles/_ACL
/var/adm/sw/products/ifiles/_OWNER
/var/adm/inetd.sec
/var/adm/sw/security/_ACL
/var/adm/sw/security/_OWNER

Hope it helps..
MANOJ SRIVASTAVA
Honored Contributor

Re: hostname

Hi Rolf,

It depends on how we are resolving the name . if we use the DNS then the way it is resolved wiil be palce it gets its name .

/etc/rc.config.d/netconf also has it .


set_parms hostname can help you change it.



Manoj Srivastava




Arockia Jegan
Trusted Contributor

Re: hostname

Hi Rolf,

I recently changed the system(hpux 11i) name.
set_parms is a recommended command to change the hostname. The following files will have the hostname entry,

Under: /var/adm/sw/

./security/_ACL
./security/_OWNER
./security/_PROD_DFLT_ACL
./security/_SOC_DFLT_ACL
./swagentd.log
./swinstall.log
./products/ifiles/_ACL
./products/ifiles/_OWNER
./swagent.log
./target_hosts
./swmodify.log

/etc/issue
/etc/hosts
/etc/mail/sendmail.cw
/etc/rc.config.d/netconf

set_parms will change the host entry in all these files other than /etc/issue.