LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-20-2016, 01:34 PM   #1
justin2007
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Rep: Reputation: 0
Solaris 11 Host Name


Hello

I have installed Solaris 11.3 and my host name is "solaris" and was set during the install. I am not using any remote connections. I have installed software but cannot connect to use it as it requires a fully qualified domain name. Looking around this looks like I need to have this set as localhost local domain for it to work for a loopback ??

Is there a way I can change the host to localhost localdomain so I can connect to my software ?

Thanks.
 
Old 01-20-2016, 02:30 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Can you connect using 127.0.0.1?

Otherwise, you can add an alias to localhost in /etc/hosts:

Code:
127.0.0.1 solaris localhost loghost solaris.local.net
 
Old 01-20-2016, 06:18 PM   #3
justin2007
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Original Poster
Rep: Reputation: 0
I am trying to connect like https://solaris:5555/em. I get firefox "failed to find server."
I checked and this URL is correct. So something may be wrong with my host file.


My /etc/hosts file has the following:


::1 Solaris localhost

127.0.0.1 Solaris localhost loghost


Are you saying to add solaris.local.net after loghost ?
I tried this and I got a crash dump and panic during shutdown twice.
I took it back out and shuts down clean again.

Thanks
 
Old 01-21-2016, 03:25 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Is the browser running on the same local Solaris 11 instance?

While hostnames are case independent, I wouldn't have used "Solaris" but "solaris" as hostnames are traditionally all lowercase.

I doubt it can be the issue but you might try:

Code:
http://Solaris:5555/em
alternatively:

Code:
http://127.0.0.1:5555/em
Adding solaris.local.net shouldn't have impacted the shutdown process and even less trigger a panic.

Doing it has absolutely no side effect on a Solaris 11.3 platform here.
 
Old 01-21-2016, 12:52 PM   #5
justin2007
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Original Poster
Rep: Reputation: 0
Nope this was a typo "Solaris" It is solaris.
I didn't name it solaris. The installer picked that up as I left it blank for LOCALHOST.

I tried using just http://127.0.0.1:5555/em. and this did not connect either.
FireFox throws a error; Connection was reset to server while page was loading.

How can the hostname be changed for just localhost and not use solaris at all ?
 
Old 01-21-2016, 03:36 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
So it does connect as you have a reply from the server using port 5555.

What is the server reply if you use https instead of http?

https://127.0.0.1:5555/em
 
Old 01-23-2016, 02:12 AM   #7
justin2007
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Original Poster
Rep: Reputation: 0
Hi
No it does not connect at all.
Do you know how to change the host name to:

127.0.0.1 localhost localhost.localdomain
::1 localhost6.localdomain6 localhost6

This is what I want to do. I have nothing on this OS besides a clean install of Solaris.

Thx
 
Old 01-23-2016, 05:06 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Quote:
Originally Posted by justin2007 View Post
No it does not connect at all.
So how do you explain the following message?
Code:
Connection was reset to server while page was loading.
Did you check the server was actually launched and listening to the 5555 port? You can use that command:
Code:
netstat -anu|grep -w 5555
Quote:
Do you know how to change the host name to:

127.0.0.1 localhost localhost.localdomain
::1 localhost6.localdomain6 localhost6

This is what I want to do.
Can you point to documentation stating the software you install requires a qualified domain name?
What qualified name is stored in its configuration?
 
Old 01-23-2016, 11:43 AM   #9
justin2007
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Original Poster
Rep: Reputation: 0
I need to have it configured for testing Oracle databases.
I will not be connecting to a network.
 
Old 01-23-2016, 01:46 PM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Q1: So how do you explain the following message? (Connection was reset to server while page was loading.)

Q2: Did you check the server was actually launched and listening to the 5555 port? (netstat -anu|grep -w 5555)

Q3: Can you point to documentation stating the software you install requires a qualified domain name?

Q4: What qualified name is stored in its configuration?
 
Old 02-04-2016, 04:29 PM   #11
justin2007
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Original Poster
Rep: Reputation: 0
Q1 I don't know why it gave that message.

Q2 Server was launched ? I was running jobs on the system.

Q3 I read this in the install documentation.
Oracle Enterprise Manager Database Express 12c is a web-based management tool built into Oracle Database without any need for special installation or management. You can use Oracle Enterprise Manager Database Express to manage a single Oracle Database installation. The default URL for Oracle Enterprise Manager Database Express is similar to the following:

http://host.domain:1158/em/

Q4 I don't have one in my /etc/host file.
 
Old 02-04-2016, 04:37 PM   #12
justin2007
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Original Poster
Rep: Reputation: 0
I have been busy and am just getting back to post my replies.

I will be doing a complete new install of Solaris 11.3 as a local system only.
When I did the first install. The GUI asks for a computer name and used this as my host in /etc/hosts.

::1 localhost
127.0.0.1 localhost loghost

Can I name this anything like solaris11 or does it need to be named localhost ?
Will I need to change anything after my install for my browser to connect to http://localhost:5555/em ?

Thanks
 
Old 02-04-2016, 07:22 PM   #13
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
You missed to run the command I suggested you to figure out if a server was listening:

Code:
netstat -anu|grep -w 5555
It is unclear how you installed and configured Enterprise Manager.

The documentation (or at least the sample you posted) doesn't formally states a domain name is mandatory, it just gives how the url looks like.

When installing Solaris, you can definitely choose solaris11 as hostname.
 
Old 02-04-2016, 07:32 PM   #14
justin2007
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Original Poster
Rep: Reputation: 0
Ok I am going to do clean install and use "solaris11" as my hostname.
I will post back when completed and see if the problem continues.
I will run that command with the solaris11 host.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding ping packets from one 1st host to 2nd host via 2rd host sachee Linux - Networking 1 09-25-2011 01:51 PM
Redhat, Solaris - Host Went down - Need RCA krajkum Linux - Server 4 05-04-2011 05:27 PM
try install host ; bind9-host uninstalled , how to undo sudo apt-get install host? shojaru Linux - Newbie 0 06-11-2009 12:45 AM
Solaris DHCP server doesn't send host/domain name to clients crisostomo_enrico Solaris / OpenSolaris 0 08-29-2008 06:52 PM
Problems running a multi-homed Solaris 8 host!!! Olusegun Solaris / OpenSolaris 2 06-08-2003 06:29 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration