Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to change host name on 11.3

3251904Aug 10 2016 — edited Aug 25 2016

Dear Professionals;

I am trying to change host name on Solaris 11.3, but I got error as follows.

svccfg -s svc:/system/identity:node setprop config/nodename = xxxx OR svccfg -s system/identity:node setprop config/nodename = xxxx

svccfg: No such property group "config".

Changing host name was succeeded on 11.2 version.

I appreciate if you have any hints.

Regards,

Comments

handat

What does the following show:

svcs -a|grep -i node

svccfg -s system/identity:node listprop config

3251904

Hi,

Thank you for your feedback.  I tried to do the command and there was nothing shows.

In this case, I need to add something?

Regards,

handat

Check that your identity node is online.

3251904

Hi,

I appreciate if you let me know how I can check with identity status??

If the status is offline, please let me know about next step.

Thank you!

Regards,

handat

check output for this:

svcs -a|grep -i node

3251904

Hi,

Here is the result.  node is online now.

svcs -a|grep -i node

online         14:12:50 svc:/system/identity:node

Regards,

handat

Was it not online before?

3251904

I think it was online before.

Regards,

shirishukla

Here's the step .

svcs -a identity:node                                                      #Check identity node must be online .

svccfg -s system/identity:node listprop config                            #Check current environment properties

svccfg -s system/identity:node setprop config/nodename="my-new-hostname"  #Change hostname

svccfg -s system/identity:node setprop config/loopback="my-new-hostname"  #Change hostname

svccfg -s system/identity:node refresh                                    #Refresh the properties

svcadm restart system/identity:node                                        #Restart the service

svccfg -s system/identity:node listprop config    #Verify changes

Alan.S-Oracle

According to the hostname(1) manpage, you should be able to just use the command "hostname my-new-hostname" and it will make the change permanent.

And now to advertise that the documentation that is available on-line is also very helpful:

I also searched the Solaris 11.3 on-line documentation set for the phrase "change host name".  9th link down:

How to Change a System's Identity

https://docs.oracle.com/cd/E53394_01/html/E54798/gkhbr.html#scrolltoc

The "Transitioning from Solaris 10 to Solaris 11.3" guide also states this:

https://docs.oracle.com/cd/E53394_01/html/E54838/gnwqz.html

Please reply if the the "hostname" command does not work.

-- Alan

1 - 10
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 22 2016
Added on Aug 10 2016
10 comments
4,205 views