Friday, January 24, 2014

Change hostname on Solaris 11

To change the hostname in Solaris 11, I followed this steps:
1 - To check the current environment properties:
root@solaris:~# svccfg -s system/identity:node listprop config
config                 application        
config/enable_mapping boolean     true
config/nodename       astring     solaris
config/loopback       astring     solaris
2 - Set the new hostname
root@solaris:~# svccfg -s system/identity:node setprop config/nodename="my-host-name"
root@solaris:~# svccfg -s system/identity:node setprop config/loopback="my-host-name"
3- Refresh the properties:
root@solaris:~# svccfg -s system/identity:node refresh
4 - Restart the service:
root@solaris:~# svcadm restart system/identity:node
5 - verify that the changes took place:
root@solaris:~# svccfg -s system/identity:node listprop config
config                 application        
config/enable_mapping boolean     true
config/nodename       astring     my-host-name
config/loopback       astring     my-host-name
root@solaris:~# hostname
my-host-name
The hostname in the prompt will appear the next time a shell is open.

1 comment:

  1. Review of Casino at Bet365 Casino: Slots, Roulette, Slots
    The Bet365 ㅅ ㅇㅌ 추천 Casino review shows that the casino offers its players a very 할리우드 배우 노출 good experience with 강원 랜드 앵벌이 great w88 games and great bonuses. winwinbet The range of games

    ReplyDelete