Exadata Hardware Checks and Alert Logs: IPMI, dmidecode, ADR
How to check an Exadata server from the command line: sensors and temperature with ipmitool, processors, memory and serial numbers with dmidecode, the image version with imageinfo, and where every alert log lives in ADR, including the storage cell's.
Three tools tell you most of what you need about an Exadata server from the command line. IPMI (ipmitool) reads the sensors, the temperature and the rack's serial number from the ILOM. dmidecode shows the processors, the memory, the slots and each server's own serial number. ADR, the Automatic Diagnostic Repository, holds every alert log: ASM, the listener, the database and the storage cell.
First, what is ILOM?
ILOM is the Integrated Lights Out Manager, a small service processor on the server's motherboard, with its own network port. If the server is a human body, the ILOM is a watch on its wrist that can shut the body down, keep it running, and read its temperature and pulse. The ILOM can shut down a server, start it up and monitor all of it.
IPMI, the Intelligent Platform Management Interface, is how you ask the ILOM for that information from the server's own prompt.
IPMI: sensors, temperature and the rack serial number
These run as root on a database server or a cell. To see all the sensor readings:
ipmitool sensorTo see only the ambient temperature, filter the output:
ipmitool sensor | grep -i ambientThe serial number of the whole rack also comes from the ILOM. Every server in the rack, database servers and cells, carries the same rack identifier:
ipmitool sunoem cli "show /SP system_identifier"The answer names the machine and ends with the rack serial number, the one that starts with AK. Keep it handy: Oracle Support asks for it when you raise a hardware SR.
dmidecode: processors, memory and each server's serial
The rack serial comes from IPMI. The serial number of one server comes from dmidecode. It is a very good command: processors, memory, slots, serial numbers of the parts, everything.
Give it a type with -t, or ask for one string with -s:
dmidecode -t processor
dmidecode -t memory
dmidecode -s system-serial-numberFor the storage cells, run the same through dcli across the cell group and you get every cell's serial number in one go:
dcli -g cell_group -l root "dmidecode -s system-serial-number"Which image version is this server on?
Before patching and after, you check the Exadata image version on each server. On one server:
imageinfoOn every database server at once, with a group file:
dcli -g dbs_group -l root "imageinfo"On a cell, you can see the cell's details and the image together:
cellcli -e "LIST CELL DETAIL" && imageinfoWhat do you look at? Three things. The kernel version. The active image version, which must match what your patch plan says. And the image status, which must say success. On a cell, imageinfo also shows the inactive image, the one patchmgr can roll back to, and the device that holds the active system partition.
ADR: where every alert log lives
ADR, the Automatic Diagnostic Repository, keeps the diagnostic files for the grid, the database and the cells. The pattern is the same everywhere: find the ADR base, go to diag, follow the component down to trace. There is a uniformity.
To find the ADR base, look in the environment:
env | grep -i baseASM alert log
Connect as the grid user. From the grid ADR base (in my lab, /u01/app/grid):
diag/asm/+asm/+ASM<n>/traceListener log
Also as the grid user, from the grid ADR base:
diag/tnslsnr/<host>/listener/traceThe listener runs from the grid home, so its logs are under the grid user's ADR base, not the oracle user's.
Database alert log
As the oracle user, from the oracle ADR base (/u01/app/oracle):
diag/rdbms/<db name>/<instance name>/traceStorage cell alert log
This one comes up in interviews: how do you find the alert log of a cell? Log in to the cell, find its ADR base from the environment, then:
diag/asm/cell/<cell name>/traceThe alert log is there. To watch it live:
tail -10f alert.logWhy this sits under monitoring
IPMI watches the sensors. dmidecode tells you exactly what hardware you have and its serial numbers, which Oracle asks for when you raise a hardware SR. imageinfo tells you what software the server runs. ADR is where you watch the alert logs of ASM, the listener, the database and the cells.