[SOLVED] Issue with hostname command

Hi,
i'm having issues with one of my db servers,
each time i run the hostname command i get "-a" as result
this is the only zone on this server where i have this issue.
could any one help me with this issue

Which version of Solaris are you running?

If it's Solaris 10 or 11, you may follow the steps to check and set correct hostname:

# check the hostname that is set now, if it's correct or not
svccfg -s system/identity:node listprop config/nodename

# set the correct hostname
svccfg -s system/identity:node setprop config/nodename="servername"# refresh the properties for the service
svccfg -s system/identity:node refresh# restart the service
svcadm restart system/identity:node

# recheck if the change has been made

svccfg -s system/identity:node listprop config

thanks for the answer
i'm using solaris 10; i'll follow the steps above and let you know what happens

ps: sorry for my bad english

Please you do not have to apologize for that. Your English is fine enough. Cheers!

1 Like

Hi,
i have followed all steps and every thing is fine now.
thanks

Great! :smiley: