Operating System - HP-UX
1833376 Members
2996 Online
110052 Solutions
New Discussion

Re: reconfiguring network on workstation

 
Henry Chua
Super Advisor

reconfiguring network on workstation

Hi Guys,

I am trying to configure the network config of an old machine running 10.20b UX. But couldn't seem to work, i.e. though when I type hostname on xterm it will come up the correct hostname. the prompt on the xterm and the login window all show the old hostname. what did i do wrong?.. i have changed using both sam and also altered its etc/hostname as well as /etc/rc.config.d/netconf, but all failed.. please advise.

THank u
5 REPLIES 5
Eknath
Trusted Contributor

Re: reconfiguring network on workstation

Hi Henry

I think the has something to do with the prompt i.e. PS1.
check your .profile for PS1 variable or add following line in the .profile
export PS1=[`hostname`]'$PWD >'

this should work

Cheers!!!

eknath
Devender Khatana
Honored Contributor

Re: reconfiguring network on workstation

Hi,

How does your name resolution take place ?
From /etc/hostname I understand that you changed /etc/hosts to your new hostname right ?

It could be because of miscugured profiles also. Check this by giving hostname command on prompt.

HTH,
Devender
Impossible itself mentions "I m possible"
Devender Khatana
Honored Contributor

Re: reconfiguring network on workstation

Hi,

Yes it is a misconfigured profile only. Try exporting current hostname through /etc/profile & $HOME/.profile.

HTH,
Devender
Impossible itself mentions "I m possible"
Steven E. Protter
Exalted Contributor

Re: reconfiguring network on workstation

Few ideas.

restart the box after making changes and this behavior will probably go away.

There could be a DNS server out there with out of date records for this machine. Check /etc/nsswitch.conf to see if DNS is enabled.

I can't think of anything you did wrong.

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
Bejoy C Alias
Respected Contributor

Re: reconfiguring network on workstation

Dear ,
xterm will normally use the variable HOSTNAME to show on the window. If u have'nt restarted the machine after changing the host name this variable may be having the old value . Even u can do without restarting by changing the variable to ur new hostname by 'export HOSTNAME=newname'
Be Always Joy ......