Solaris · Pre Post Check

Solaris · Lesson 25

Pre-Check & Post-Check in Solaris

Pre-check ensures the system is healthy before patching or reboot. Post-check validates the server is stable after patching, SRU updates, migrations, or maintenance work. This is a mandatory skill for every Solaris administrator.

What is Pre-Check & Post-Check?

A **pre-check** verifies that the system is in a stable and supportable state *before* making changes such as:

  • Patching (SRU upgrades)
  • Critical changes
  • Reboot / kernel updates
  • Application upgrades

A **post-check** confirms that everything is working correctly *after* the patch or reboot.

What

A structured list of health checks done before & after changes.

Why

To catch issues early and avoid failed boot or broken apps.

How

Using standard Solaris commands for system validation.

Pre-Check — Detailed Before Patching / Reboot

1. OS Version

pre-check
solaris-lab
uname -a

2. Boot Environments

pre-check
solaris-lab
beadm list

3. IPS Image Version

pre-check
solaris-lab
pkg list -v entire

4. Repository / Publisher

pre-check
solaris-lab
pkg publisher

5. Failed Services

pre-check
solaris-lab
svcs -xv

6. System Logs

pre-check
solaris-lab
tail -100 /var/adm/messages

7. Disk Space

pre-check
solaris-lab
df -h

8. CPU / Memory Load

pre-check
solaris-lab
prstat -a

9. Network Interfaces

pre-check
solaris-lab
ipadm show-if; dladm show-link

10. ZFS Pool Health

pre-check
solaris-lab
zpool status -xv

11. ZFS Filesystem Status

pre-check
solaris-lab
zfs list

Post-Check — After Patching / Reboot

1. Confirm OS Level

post-check
solaris-lab
uname -a

2. Confirm Active Boot Environment

post-check
solaris-lab
beadm list

3. Confirm Entire Package Level

post-check
solaris-lab
pkg list -v entire

4. Check failed services

post-check
solaris-lab
svcs -xv

5. Confirm Application Status

post-check
solaris-lab
svcs -a | grep app

6. Verify /var/adm/messages

post-check
solaris-lab
tail -100 /var/adm/messages

7. Check Pool & Filesystem Health

post-check
solaris-lab
zpool status -xv; zfs list

8. Check Network Reachability

post-check
solaris-lab
ping <gateway>; netstat -rn

9. Check system load

post-check
solaris-lab
prstat -a

Summary — Must Do Before & After Any Change

  • Collect OS, BE, repo, service health before patching.
  • Confirm no failed services in pre-check.
  • After patching, verify OS level + BE has changed.
  • Check apps, network, disk space, pools, logs.
  • Document pre & post check results for compliance.