How to Connect to Exadata Servers: SSH, ILOM and the Serial Console

Every way to reach an Exadata database server or cell: SSH over port 22 from your laptop, from a neighbouring node, through a jump server or PAM, and through the ILOM serial console, plus the three ways into the ILOM itself.

You reach an Exadata database server or cell in one of these ways: SSH on port 22 from your own workstation, SSH from another database server or cell in the same subnet, through a jump server or a privileged access management (PAM) tool, or through the server's ILOM, where start /SP/console gives you the operating system even when its network is down.

When you join a company, you must be able to connect to every component without asking anyone. And when you cannot connect, you must know where the issue is. So let us understand the mechanism, not just "open PuTTY".

The five components, and which network is for you

Five components, I repeat it many times: compute nodes, storage nodes, the RoCE switches, the admin switch and the PDU.

The application comes in over the client network. The admin network and the ILOM network are for us, the DBA or DMA, for administration. Administration means shutting down a node, creating a directory, creating a user. You cannot do that from the client network. You must land on the server.

Take a quarter rack: DB1 and DB2, and three cells. Each has an admin interface and an ILOM interface.

The concept: port 22

Port 22 is the universal port for SSH. For any SSH connection, port 22 must be open from the source (your workstation) to the destination (the compute node) in the firewall. This is not only Exadata. It is the same for any Linux server.

Before you even open PuTTY, test it from your PC:

bash
telnet <admin IP of DB1> 22

If it connects, port 22 is open. If PuTTY says "connection timed out", there is no port 22 connectivity, and the firewall team has to open it.

Way 1: from your workstation

Open PuTTY on your PC, give the admin IP of the database server, port 22, and log in. The same works for a cell, if port 22 is open from your PC to that cell.

Some organisations allow this from office laptops. Financial and healthcare organisations usually block it completely. Why? PuTTY has no keystroke auditing. If someone deletes a folder, nobody can tell who did it.

Way 2: from another compute node

From DB2, SSH to DB1:

bash
ssh <db1 admin hostname>

Still port 22. But the nodes are in the same subnet. When they are sailing in the same boat, no firewall needs to be opened.

Way 3: from a cell

All the cells and database servers are in the same subnet, so from a cell you can SSH to a compute node the same way.

Way 4: the ILOM serial console

Every server's ILOM can be reached by name. By standard, the ILOM's host name is the server name followed by -ilom. That is a standard, not a rule.

bash
ssh root@<db1 hostname>-ilom

You land on the ILOM prompt, the -> symbol. On the OS, a root prompt is # and a normal user's is $. At the ILOM prompt:

-> start /SP/console

It asks "are you sure you want to start the console?". Say yes. The serial console starts and asks you to log in, as root, oracle or grid. Give the password and you are on that server's prompt.

This is an interview question: how can you connect to the console? Console means the operating system. First you land on the ILOM, then you start the console.

Yes, a direct SSH to the admin interface is simpler. I am showing you the number of ways.

Way 5: jump servers

Where PuTTY from laptops is blocked, administrators go through a jump server. A Linux jump server has SSH keys pushed to every Exadata server; a Windows jump server uses PuTTY. An SSH key is like your house key: if you have it, you open the door and walk in.

Way 6: PAM tools

Privileged access management tools, CyberArk for example, log everything in the PAM console: every keystroke, sometimes the whole session, and they rotate the credentials after use. Nothing beats PAM for security. It is safer than a jump server.

The day PAM was down

One weekend our PAM went into maintenance for 8 hours, on the same day we had patching on DB1. We did not postpone the patching. I wrote to the firewall team and asked them to open port 22 from our team's PCs to all the admin and ILOM IPs, for 24 hours. We validated the patched nodes over PuTTY, and after 24 hours the access was removed.

That is why you must understand the mechanism. When one way is closed, you know which door to ask for.

Three ways into the ILOM itself

  1. PuTTY to the ILOM IP, port 22, log in as root.
  2. SSH from another database server or cell, to <server name>-ilom. From the first cell you can reach the third cell's ILOM the same way.
  3. The web interface over HTTPS, port 443. (80 is HTTP, 443 is HTTPS.) Log in as root. From the web interface you can shut down, start up and generate a snapshot, and administration is easy.

Ask the firewall team to open 443 from your office PCs to the ILOM IPs of the database servers and cells. Recently, after firewall rule and VDI changes, nobody in our team could open the ILOM web interface; I wrote to the firewall team and they opened 443 again. Some organisations disable the web interface altogether, and you do everything from the CLI.

Who else connects to a compute node

People:

  • Oracle ACS and the hardware team, at installation
  • Oracle's patching engineer, from Oracle's gateway server, as the war room user with sudo to root
  • You, the DBA or DMA, over port 22
  • Oracle's field engineer, who replaces a faulty part by hand and does not SSH

Programs:

  • Application servers, on the listener port (1521 or another)
  • OEM, through its agent
  • Third party monitoring and backup tools, each on its own port
  • Scheduled jobs and ASR

For every third party agent, the right port has to be opened, or nothing talks.

  • exadata
  • ilom
  • ssh
  • connectivity
  • dma