1834290 Members
2950 Online
110066 Solutions
New Discussion

Re: Hostname problem

 
rana786
Regular Advisor

Hostname problem

Hi all,

While installing the OS the hostname was set 'chittra1'.

The 'hostname' command returns the following line only:
-a

but the 'uname -a' command returns the following line:
HP-UX chittra1 B.11.23 U 9000/800 2068830207 unlimited-user license

In both cases the hostname should be same.

Please note that in the /etc/hosts file the hostname is chittra1

Please help.

Rgds,
Rana
Walker_dhk
5 REPLIES 5
Dave Hutton
Honored Contributor

Re: Hostname problem

Looks like someone by accident typed hostname -a which set it to -a.

It seems fairly common people mistake hostname -a with uname -a.

You should be able to just #hostname chittra1 to fix it.

YAQUB_1
Respected Contributor

Re: Hostname problem

Dear Mostafa Bhai,

Thank you very much for your willing help us.
I have already inform to Kranti two way we can resolve this issue:

1) # set_params --> fix the & reboot the server and
2) # hostname

Thanks once again for your cooperation and support.

Best Regards
Mohammad Yaqub
Sp4admin
Trusted Contributor

Re: Hostname problem

Hi Rana,

Like said above you will need to try the hostname on the command line or use "set_params hostname" This will cause a reboot.

sp,
whiteknight
Honored Contributor

Re: Hostname problem

Rana,


#set_parms hostname, will prompt you to change new hostname. It will ask you to reboot (Y/N) ? Just say N.

It will take effect after you reboot, but /etc/rc.config.d/netconf has updated to newer hostname.


WK
please assign points
Problem never ends, you must know how to fix it
rana786
Regular Advisor

Re: Hostname problem

ok.
Walker_dhk