By Rene Kundersma-Oracle on Dec 12, 2013
The recently released 22.214.171.124.0 Oracle Exadata version comes with multiple enhancements in the patchmgr utility. For those who don't know what the patchmgr utility is: the patchmgr utility is a tool Exadata Database Administrators use to apply (or rollback) an update to the Oracle Exadata Storage Cells. The enhanced patchmgr will have an option to send the operator an email for the most significant patch and rollback state changes. This eliminates the need to monitor the screen while the update or rollback is in progress.
In order to send the email you need to specify values for the '-smtp_from' and '-smtp_to' flags. Example as follows:
./patchmgr -cells ~/cell_group -patch -rolling \ -smtp_from email@example.com \ -smtp_to firstname.lastname@example.org
Patchmgr will use the sendmail package which is installed by default on the Exadata Database Server. It will start sendmail if it's not already started and assumes it's configured to deliver email for the domains you specify. You will recognize the format of the alerts patchmgr sends as they have the same formatting as the ASR emails.
The email you will receive when you enable this option can have the following end states for a cell:
- Start Failed
- Rolling Back
- Not Attempted
The majority of the above states probably is self explanatory, however explaining 'Not Attempted' may help: 'Not Attempted' will be the final state of a cell when patching or rolling back (in a rolling fashion) of the current cell has failed. In that case the patching will stop and the remaining cells (which are not touched yet) are in the state 'Not Attempted'. So for example: imagine you are patching cel1,cel2 and cel3. When cel1 fails patching, then the end state for cel2 and cel3 will be 'Not Attempted'.
The following example will give you the idea: Patching starts in a rolling fashion from 126.96.36.199.0 to 188.8.131.52.0 for cel1,cel2 and cel3.
Note: this is an example of the type of state changes you will see, actual patch timings are not correct and not relevant for this example. Also actual states or formatting may change in your release.
1. patchmgr was started in a rolling fashion. Initial state for all cells is 'Started'. This should be seen as this initialization phase. You will receive an email as follows:
3. After some time patching of cel1 has completed. You will receive another status update in your inbox stating cel1 was updated successfully.
4. patchmgr continues with the next cell.
5. When succeeded (or failed) you will receive a state update via mail.
6. Last cell to be patched is cel3:
7. The last email you will receive will give an update stating patching was completed and lists the end state for all cells.