Operating System - HP-UX
1753481 Members
3779 Online
108794 Solutions
New Discussion юеВ

Re: changing ostnamefrom the console

 
SOLVED
Go to solution
himacs
Super Advisor

changing ostnamefrom the console

Hi Admins,

I have recently changed hostname.But when i logging in MP console,its showing old hostname.
I want to reflect the new hostname in console also.
Please suggest

Server is B.11.23


regards
himacs
8 REPLIES 8
Matti_Kurkela
Honored Contributor

Re: changing ostnamefrom the console

The MP hostname is completely independent from the OS configuration. It is set along with the other MP network settings.

As this is a MP-related issue, the server hardware model would have been more useful than the OS version (B.11.23).

After logging in to MP, enter the MP command "CM" for Command Menu, then "LC" for LAN Config. The MP will display its current network configuration: one of the items is the MP hostname. At this point, you can choose to change it.

MK
MK
SoorajCleris
Honored Contributor

Re: changing ostnamefrom the console

Hi Himacs,

Your MP console name is not your Hostname .
Dont worry . YOu can change it from MP it self.

Regards,
SOoraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
lbseraph
Advisor
Solution

Re: changing ostnamefrom the console

The reply above are right, MP host name is different to OS. You can use command 'lc' to change it.

MP:CM> lc
LC
Current LAN Configuration:
- - MAC Address :
D - DHCP Status :
I - IP Address :
M - MP Host Name :
S - Subnet Mask :
G - Gateway Address :
L - Link State :
W - Remote Serial Console Port :
- - SSH Access Port :
- - IPMI / LAN Port :

Enter parameter(s) to change, A to modify All, or [Q] to Quit: m <== Just enter m to modify MP host name.
himacs
Super Advisor

Re: changing ostnamefrom the console

Hi All,

Thanx for your responses.Need i do any configuration reset for permenent change..like in OS..


regards
himacs
Torsten.
Acclaimed Contributor

Re: changing ostnamefrom the console

How did you change the hostname?

Best is to do a

# set_parms

e.g.

# set_parms hostname

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kanagaraj
Regular Advisor

Re: changing ostnamefrom the console

///Thanx for your responses.Need i do any configuration reset for permenent change..like in OS..
///

For MP host name you can change it by following command.

mp>lc

If you are looking for OS hostname. you can change it by.

#set_parm hostname or

#uname -S
or

edit following file /etc/rc.config.d/netconf and /etc/hosts (it is required server reboot)


make sure if any software is running and you are using set_parm or uname -S,it will require a reboot.
himacs
Super Advisor

Re: changing ostnamefrom the console

Hi Thanx to all four your responses.

I have changed the MP hostname by going LC in command menu (CM).


regards
himacs
Aneesh Mohan
Honored Contributor

Re: changing ostnamefrom the console

>>.Need i do any configuration reset for permenent change..

Once you changed using lc it will last till the next attempt of updating/changing the hostname.

Aneesh