How to Use the IBM AIX Check Script (aix-check)
aix-check-v1.8.0.sh is ITCheckAI's read-only health check collector for IBM AIX and VIOS, supporting AIX 5.3 / 6.1 / 7.1 / 7.2 / 7.3 and VIOS on standalone IBM Power servers or LPARs. It executes built-in query commands sequentially and writes each simulated prompt, redacted command output, return code, item status, and elapsed time into a single plain-text .log file (by default /tmp/healthcheck/<hostname>_<time>.log), appending a lightweight JSON check manifest (schema itcheck.aix.check/1) with no archiving or multi-file splitting. Runtime depends mainly on the number of disks and adapters and the size of the error log; by default, no new commands are started once the 30-minute run deadline (-T 1800) is reached.
Script Overview
The downloaded file is named aix-check-v1.8.0.sh, with internal version 1.8.0, schema itcheck.aix.check/1, and interpreter /usr/bin/ksh. Download link: Download AIX Check Script. Scripts for other platforms are available on the OS Check Toolkit page.
Design principles implemented in the script:
- Strictly read-only: Only query and display forms of commands are used, with no raw disk reads.
entstatruns only on EtherChannel / IEEE 802.3ad link aggregation adapters without-dand never with-r(ordinary LPAR Virtual I/O Ethernet adapters use read-only ODMlsattr -Elonly);lsmpionever uses-z(which resets statistics) or-q; internal SAS RAID checks use only the two display forms; andlsvg/lslvrun with-Lso they do not wait on volume group locks held bymirrorvg,syncvg, or C-SPOC. - Plain-text and auditable: Delivered as a single
kshtext script so every command can be audited line by line before execution. - Built-in commands only: Relies primarily on standard AIX / VIOS utilities; optional component commands for SDDPCM (
pcmpath), PowerPath (powermt), HDLM (dlnkmgr), PowerHA, and GPFS run only when those components are detected on the host. - Per-command timeout and circuit breaker: Each command has a 120-second timeout by default; if exceeded, the watchdog terminates the command's entire process tree (
TERMfollowed byKILL). Three consecutive timeouts in one section skip the remaining commands in that section, and 8 timeouts in total or reaching the-Tdeadline skips the rest of the run. Individual command failures never abort the check. - Disk space protection: Requires at least 300 MB of free space in the output filesystem before starting, and re-checks free space at the start of every section and immediately after
errpt -a, stopping further collection if free space drops below 150 MB. - Network filesystem avoidance:
dfqueries only localjfs/jfs2mounts to avoid hanging on unresponsive NFS shares, and-orejects paths located onnfs,cifs,smbfs, orautofsfilesystems. - Lightweight metadata and non-root tagging: Preserves original host timezone timestamps (
START_RAW,TIMEZONE,DATE_RAW,FINISHED_AT_RAWwithout fabricating timezone suffixes), records execution identity (RUN_AS,is_root,privilege_mode) and per-item status trailers (#@ rc=N sec=N status=... redacted=0|1), and appends an embeddeditcheck.aix.check/1JSON manifest; non-root runs remain supported with restricted commands classified aspermission_denied. - 20-class credential redaction and additional safeguards: Never reads
/etc/security/passwd,shadow, SNMP configs, or private keys; process listings usecommbasenames only (no raw args),crontab -lemits schedule plus executable basename only ([args omitted]), and all logged outputs pass through a streaming POSIX awk redactor. Also enforcesumask 077,set -f, fixed cwd/, whitelist checks on device/VG/mount names,renice -n 10, and</dev/null.
What Is Collected
The log is organized into numbered sections with headers such as # 01. System & Device Overview. Before running sections, the script probes for VIOS (/usr/ios/cli/ioscli), PowerHA (clmgr or clshowsrv), GPFS (/usr/lpp/mmfs/bin/mmgetstate), and multipath drivers, executing component-specific commands only when present.
| Section | Collected Information | Primary Commands / Files |
|---|---|---|
| Log Header | Schema, hostname, start time and raw timezone, execution identity and privilege mode, OS technology level, machine model and system ID, VIOS level, detected components, redaction declaration, active options | oslevel -s, /usr/ios/cli/ioscli ioslevel, uname -uM, date '+%Z %z', id |
| 00. VIOS Mappings (VIOS only) | VIOS level, vSCSI / NPIV / virtual Ethernet mappings, NPIV ports, viosbr backup inventory, read-only vioshc status probe (marked command_missing if unavailable) | /usr/ios/cli/ioscli lsmap -all, lsmap -npiv -all, lsmap -all -net, lsnports, viosbr -view -list, vioshc (read-only status) |
| 01. System & Device Overview | Machine type/serial, OS level, LPAR configuration, sys0 attributes, FLRTVC fileset and interim-fix inventory (ifix), all devices, devices in Defined state | uname -uM, oslevel -s, lparstat -i, lsattr -El sys0, lslpp -Lqc, emgr -lv3 (falls back to emgr -l only if -lv3 is unsupported), lsdev, lsdev -C -S d |
| 02. Error Report | Error log summary, detailed error entries for the last 100 days by default, top 20 combinations by IDENTIFIER / type / class / resource, errdemon settings, console log | errpt, errpt -a -s <start_time>, /usr/lib/errdemon -l, alog -o -t console |
| 03. Disks & Bootlist | Disk and PV inventory, disk attributes (full per-disk attributes for up to 10 disks; summary table plus representative samples when over 10 disks), normal bootlist, boot device, hd5 placement | lsdev -Cc disk, lspv, lsattr -El hdiskN, bootlist -m normal -o, getconf BOOT_DEVICE, lslv -L -m hd5 |
| 04. Adapters, Multipath & FC | Adapter list, MPIO paths and non-Enabled paths, multipath driver status, FC protocol and port attributes, statistics on FC ports with a live link, vSCSI attributes, internal SAS RAID status | lsdev -Cc adapter, lspath, lsmpio, lsmpio -are, pcmpath query adapter, pcmpath query device, powermt display, powermt display dev=all, dlnkmgr view -sys / -path / -lu, lsattr -El fscsiN, fcstat fcsN, lsattr -El fcsN, lsattr -El vscsiN, sissasraidmgr -L -j1 -l sissasN, sissasraidmgr -M -l sissasN -o0 |
| 05. LVM & Filesystems | PV and VG lists, properties / LVs / PVs of each active VG, mount table, local jfs / jfs2 space usage, filesystems marked AutoMount that are currently unmounted | lsvg, lsvg -L -o, lsvg -L <vg>, lsvg -L -l <vg>, lsvg -L -p <vg>, mount, df -g, lsfs -c |
| 06. Network | Interface counters and routing table, inet0 attributes, IP configuration, /etc/hosts, read-only ODM attributes of EtherChannel / 802.3ad / SEA and ordinary Virtual I/O Ethernet adapters (mtu_bypass, min_buf_* / max_buf_*, capped at 32), EtherChannel statistics | netstat -in, netstat -rn, lsattr -El inet0, ifconfig -a, cat /etc/hosts, lsattr -El entN, entstat entN (EtherChannel only) |
| 07. Resources & Tuning | Short CPU / memory / I/O sampling (3 samples at 1-second intervals), VMM counters, memory usage, paging space, vmo / no (IBM PIQS network baseline) / ioo / schedo tuning parameters, ulimit -a and redacted resource stanzas from /etc/security/limits | vmstat 1 3, vmstat -v, svmon -G, lsps -s, lsps -a, iostat 1 3, lparstat 1 3, vmo -a, no -a, ioo -a, schedo -a, ulimit -a, /etc/security/limits (resource limits only) |
| 08. Uptime, Processes & Cron | Uptime and load average, process count, top 10 processes by CPU and memory and full process table (comm basenames only, args omitted), redacted crontab summary, SRC subsystem status, NTP status | uptime, ps -eo user,pid,ppid,pcpu,pmem,vsz,tty,time,comm, crontab -l (schedule & basename only), lssrc -a, lssrc -ls xntpd |
| 09. System Dump | Estimated dump size, dump device configuration, most recent dump record, dump space verification | sysdumpdev -e, sysdumpdev -l, sysdumpdev -L, /usr/lib/ras/dumpcheck -p |
| 10. PowerHA Cluster | Cluster subsystems, PowerHA packages, cluster manager state, topology and resource groups; CAA status when caavg_private exists; GPFS node state and mounts when GPFS is installed | lssrc -g cluster, lslpp -l 'cluster.*', lssrc -ls clstrmgrES | grep -i state, clshowsrv -v, clmgr query cluster, cltopinfo, clRGinfo, lscluster -c / -m / -i / -d, /usr/lpp/mmfs/bin/mmgetstate -a, /usr/lpp/mmfs/bin/mmlsmount all -L |
| 11. Hardware VPD & Microcode | Hardware Vital Product Data (part numbers, serial numbers, location codes), system and device microcode levels | lscfg -vp, lsmcode -c |
| Log Trailer & Manifest | Timeout, skipped, error, permission-denied, missing-command, and redacted item counts, raw finish time, and embedded JSON manifest | TIMEOUT_COUNT, SKIPPED_COUNT, ERROR_COUNT, BEGIN CHECK MANIFEST JSON |
Several conditional checks behave as follows: fcstat runs only on FC ports determined to have an active link (an Enabled path through its fscsi child in lspath; fabric=1 in lsnports on VIOS; or an inferred link with a shorter 30-second timeout when fscsi has attach!=none, a fabric-assigned hex scsi_id, and Available tape/changer devices or non-MPIO disks underneath), while other FC ports record a *** SKIP line explaining why; lspath -F "status:name:path_id:parent:connection" runs only when non-Enabled paths exist; and lslpp -l 'cluster.*' runs only on PowerHA nodes.
Prerequisites
- Privileges: Running as
rootis recommended (on VIOS, log in aspadminfirst and runoem_setup_env). Starting with 1.7.0, non-root execution is also permitted in degraded mode: the header and manifest markis_root=falseandPRIV_NOTE, and restricted items are classified aspermission_denied. The script still checksuname -sand exits with code2on non-AIX systems. - Shell: Run with
ksh(installed by default on AIX and VIOS). - Output directory: Defaults to
/tmp/healthcheckand is created automatically if missing. The directory must be owned by the running user (rootwhen invoked as root), not writable by group or others, not a symbolic link, and on a local filesystem. Consequently, passing-o /tmpdirectly is rejected because/tmpis world-writable; always use a dedicated subdirectory such as-o /tmp/healthcheck. - Free disk space: At least 300 MB of free space is required in the filesystem hosting the output directory, or the script refuses to start. Because
/tmpis often small on AIX, verify free space withdf -m /tmpbeforehand and expand it per site policy or point-oto another local directory if needed. - System clock: The
errptdate window is calculated from the current system date. If the year is earlier than 2020,CLOCK_NOTE : WARNINGappears in the log header; if the current or computed year falls outside 1971-2037, the script falls back to a line-capped fullerrpt -a. - Execution window: Although read-only and reniced, commands such as
lscfg -vp,errpt -a, multipath queries, and cluster checks still incur some overhead on large LPARs. Schedule execution during off-peak hours, and run node by node rather than simultaneously on PowerHA clusters.
Step-by-Step Usage
- Download the script from the toolkit page and verify version and schema (
1.8.0/itcheck.aix.check/1):
ksh aix-check-v1.8.0.sh -V- Upload the script to the target host (using
/tmpas an example) and check available free space:
scp aix-check-v1.8.0.sh root@192.168.1.10:/tmp/
ssh root@192.168.1.10 "df -m /tmp"- Execute the script as
root. The terminal prints the target log path at startup and the saved path upon completion (see Output Reference below for exit codes):
ssh root@192.168.1.10
ksh /tmp/aix-check-v1.8.0.sh
echo $?
# On VIOS: log in as padmin first, then switch to the root environment
oem_setup_env
ksh /tmp/aix-check-v1.8.0.sh- Fetch the generated
.logfile back to your admin workstation:
mkdir -p results
scp root@192.168.1.10:/tmp/healthcheck/host01_*.log ./results/- After verifying the downloaded log, remove the script and log file from the host (the script automatically cleans up its own temporary directory
.tmp_<PID>on exit):
ssh root@192.168.1.10 "rm -f /tmp/aix-check-v1.8.0.sh /tmp/healthcheck/host01_*.log"Command-Line Options
All options are optional and follow getopts "o:sAt:d:T:EVh" in the script:
| Option | Default | Description |
|---|---|---|
-o PATH | /tmp/healthcheck | Output directory, or full log file path when ending with .log. Must be an absolute path on a local filesystem; the directory must be owned by the running user and not writable by group/others. Refuses to overwrite an existing file. |
-s | Off | Also prints the complete log to standard output upon completion (for remote collection over SSH) while still saving a copy in the output directory; suppresses startup/completion banners and terminal WARNING lines. |
-A | Off | Runs full lsattr -El on every hdisk. By default, hosts with 10 or fewer disks already get full per-disk output; hosts with more than 10 disks get a key-attribute summary table (VG, PCM, algorithm, reserve_policy, queue_depth, hcheck_interval, hcheck_mode, unique_id) across all disks plus full lsattr -El on the first rootvg disk and one sample disk per PCM. |
-t SEC | 120 | Per-command timeout in seconds (must be a positive integer). Commands with built-in long timeouts (>= 120s) receive at least SEC, whereas intentionally shorter timeouts (such as 30s or 60s) remain unchanged. |
-T SEC | 1800 | Whole-run deadline in seconds; 0 disables the deadline. Commands not yet started when the deadline expires are skipped. |
-d DAYS | 100 | Limits errpt -a to the last DAYS days; 0 collects the entire error log. If the date window cannot be used, the automatic full errpt -a fallback is capped at 200000 lines; only -d 0 produces an uncapped history. |
-E | Off | Also exits with code 3 when any core command returns a non-zero status (ERROR_COUNT > 0). |
-V / --version | - | Prints script version and schema identifier, then exits with code 0. |
-h / --help | - | Displays usage help and exits with code 0. |
Invalid option arguments (such as a non-positive integer for -t or a relative path for -o) terminate immediately with exit code 2. Common examples:
ksh /tmp/aix-check-v1.8.0.sh -o /tmp/healthcheck
ksh /tmp/aix-check-v1.8.0.sh -o /tmp/healthcheck/host01_q3.log
ksh /tmp/aix-check-v1.8.0.sh -A -d 0 -T 0Output Reference
Output file: Produces a single uncompressed text file named <hostname>_<YYYY-MM-DD_HH-MM-SS>.log by default (using the short hostname). When the hostname is localhost and a machine serial number is available, the serial number is inserted: <hostname>_<serial>_<time>.log. Governed by umask 077, the file is readable only by the executing user.
Log layout:
- Header block: Starts with
AIX CHECK LOGfollowed bySCHEMA,HOSTNAME,START_TIME,START_RAW,DATE_RAW,CLOCK_NOTE(only when abnormal),TIMEZONE,RUN_AS,PRIV_NOTE(only when non-root),OS_LEVEL,MACHINE,VIOS_LEVEL(VIOS only),COMPONENTS,REDACTION,COLLECTOR, andOPTIONS. - Sections: Each section begins with an
===divider and# NN. Section Name, numbered00through11as listed in the table above. - Command entries: Each entry starts with a simulated prompt
[YYYY-MM-DD HH:MM:SS] <user>@<host>:/> <command>, followed by redacted command output and a trailer line#@ rc=N sec=N status=STATE redacted=0|1. - Trailer block & Manifest: Records
TIMEOUT_COUNT,SKIPPED_COUNT,ERROR_COUNT,PERMISSION_DENIED_COUNT,COMMAND_MISSING_COUNT,REDACTED_ITEM_COUNT,COLLECTION_STATUS,FINISHED_AT_RAW, the closing line, and a machine-readable JSON manifest delimited byBEGIN CHECK MANIFEST JSONandEND CHECK MANIFEST JSON.
Return codes and log markers:
| Marker | Meaning |
|---|---|
#@ rc=124 ... status=timeout | Command timed out and was terminated; preceded by *** TIMEOUT: command exceeded N seconds: <command>. |
#@ rc=125 ... status=skipped | Command was skipped; preceded by *** SKIPPED (reason): <command> due to 3 consecutive timeouts in the section, 8 total timeouts in the run, reaching the -T deadline, or output filesystem free space dropping below 150 MB. |
#@ rc=127 ... status=command_missing | Target command was not found in the active PATH. |
status=permission_denied | Non-root or insufficient permissions prevented running the check. |
#@ rc=1 (... | grep) | A grep filter matched no lines, which simply means no matching items were found rather than an error. |
*** SKIP | A conditional check was intentionally not run, with the reason stated (for example, an FC port with no live link or an unusable prerequisite output); timed-out or skipped cached commands also append *** SKIP follow-up checks based on the output above. |
*** NOTE | The check ran in a modified or reduced form (for example, errpt falling back to capped full output, or FC link state inferred for non-MPIO devices). |
*** TRUNCATED | An automatic fallback full errpt -a exceeded the 200000-line safety cap. |
*** INTERRUPTED by signal | Execution was interrupted by HUP, INT, or TERM (such as an SSH disconnect or Ctrl-C), ending the log at that point. |
Sample log excerpt (serial numbers replaced with placeholders)
================================================================================
AIX CHECK LOG
SCHEMA : itcheck.aix.check/1
HOSTNAME : host01
START_TIME : 2026-11-30 10:00:00
START_RAW : 2026-11-30T10:00:00+08:00
DATE_RAW : Mon Nov 30 10:00:00 CST 2026
TIMEZONE : CST +0800
RUN_AS : root (uid=0, is_root=true, privilege_mode=root)
OS_LEVEL : 7300-02-01-2346
MACHINE : IBM,02XXXXXXX IBM,9009-42A
COMPONENTS : PowerHA SDDPCM
REDACTION : applied (collector_default; ps_comm_only, crontab_metadata_only, streaming_secret_mask)
COLLECTOR : aix-check-v1.8.0.sh 1.8.0 (cmd timeout 120s, run deadline 1800s, errpt -a last 100 days)
OPTIONS : t=120 T=1800 d=100 A=0 s=0 E=0
================================================================================
================================================================================
# 01. System & Device Overview
================================================================================
[2026-11-30 10:00:02] root@host01:/> uname -uM
IBM,02XXXXXXX IBM,9009-42A
#@ rc=0 sec=0 status=ok redacted=0
[2026-11-30 10:03:10] root@host01:/> fcstat fcs0
*** TIMEOUT: command exceeded 60 seconds: fcstat fcs0
#@ rc=124 sec=60 status=timeout redacted=0
*** SKIP fcstat fcs1: no Enabled path via fscsi1 in lspath (attach=none)
================================================================================
TIMEOUT_COUNT : 1
SKIPPED_COUNT : 0
ERROR_COUNT : 0
PERMISSION_DENIED_COUNT : 0
COMMAND_MISSING_COUNT : 0
REDACTED_ITEM_COUNT : 5
COLLECTION_STATUS : partial
FINISHED_AT_RAW : 2026-11-30T10:08:30+08:00
END OF AIX CHECK LOG : host01 (Finished at 2026-11-30 10:08:30)
================================================================================
Terminal output: In normal mode, the script prints [aix-check-v1.8.0.sh] Collecting check output on host01 -> /tmp/healthcheck/host01_...log ... at startup and [aix-check-v1.8.0.sh] Done. Output saved to: ... when finished. If non-root privileges, timeouts, skipped commands, core command errors, or clock anomalies occurred, corresponding WARNING lines are printed. Argument and environment errors are written to standard error prefixed with ERROR:.
Exit codes:
0: Completed with no timeouts and no skipped commands (non-zero returns from core commands do not change the exit code unless-Eis specified).3: Completed with warnings, meaning one or more commands timed out (*** TIMEOUT) or were skipped (*** SKIPPED), or-Ewas set andERROR_COUNT> 0. The generated log remains usable.2: Argument or environment error (not AIX, unsafe or network-mounted output directory, under 300 MB free space, or output file already exists).130: Interrupted by signal.
Key Points for Reviewing Results
- Check trailer counters and manifest first: If
TIMEOUT_COUNTorSKIPPED_COUNTis non-zero, search for*** TIMEOUT,*** SKIPPED, and*** SKIPto see what data is missing; repeated timeouts on commands such asfcstator multipath queries are themselves strong indicators of SAN link or device issues. CheckPERMISSION_DENIED_COUNTif run as non-root. - Error report: Start with the top-20 summary in Section 02, prioritizing entries with type
P(Permanent) and classH(Hardware), then review matchingIDENTIFIERrecords inerrpt -afor detailed descriptions, location codes, and recommended actions; also note any*** NOTElines indicating window changes. - Devices and multipathing: Investigate devices in Defined state from
lsdev -C -S d, Failed or Missing paths inlspath | grep -vw Enabled, and dead/offline paths reported by multipath drivers; verify thatbootlistincludes all mirroredrootvgdisks. - LVM and filesystems:
STALE PVsandSTALE PPsinlsvg -L <vg>should be 0,lsvg -L -lshould show nostaleLVs, andlsvg -L -pshould show nomissingorremovedPVs. As a general industry guideline, consider warning at 80%-90%%Usedor%Iusedindf -g, and verify whether any unmounted filesystems flagged by the AutoMount check are expected. - Resources, tuning, and patch baseline: In
vmstat 1 3andiostat 1 3, discard the first data row (boot-time average) and examine rows 2-3 for current load; as a general guideline, investigate paging space usage above 70% inlsps -sand growingpbuf/fsbufblocked counters invmstat -v. Cross-checkno -a(ipqmaxlen,rfc1323,sb_max,tcp_*,udp_*),ioo -a,schedo -a, virtual Ethernetlsattr -El entN(mtu_bypassand buffer counts), and/etc/security/limitsagainst IBM PIQS recommendations, and feedlslpp -Lqcandemgr -lv3into IBM FLRTVC for security and HIPER APAR auditing. - Subsystems and time sync: Check
lssrc -afor critical subsystems stuck ininoperativestate, verify NTP synchronization inlssrc -ls xntpd, and review anyCLOCK_NOTEin the header. - System dump: Compare estimated dump size (
sysdumpdev -e) against dump device capacity, and review the last dump status (sysdumpdev -L) alongsidedumpcheck -pwarnings. - Cluster and Fibre Channel: On PowerHA nodes, check that
clstrmgrESis inST_STABLEstate and resource groups inclRGinfoareONLINErather thanERROR; on GPFS nodes, checkmmgetstate -aforactivestatus across nodes; infcstat, watch for Link Failure, Loss of Sync, Error Frames, and No DMA Resource counters.
All numeric thresholds above are general industry recommendations; the script only collects raw outputs without making pass/fail judgments. ITCheckAI does not currently generate automated diagnostic reports from AIX check logs, so review the output manually or against your organization's baseline.
Batch Check
List target hosts in hosts.txt (one IP or hostname per line, preferably with SSH key authentication). Using -s streams each host's log directly to a local file. Because exit code 3 indicates "completed with warnings" and still produces a valid log, do not chain execution and log handling with &&:
mkdir -p results
while read h; do
scp aix-check-v1.8.0.sh root@$h:/tmp/ || continue
ssh -n root@$h "ksh /tmp/aix-check-v1.8.0.sh -s" > results/$h.log
echo "$h exit=$?"
done < hosts.txtIn -s mode, a copy of the log is still written to /tmp/healthcheck on the remote host; clean it up afterward as shown in Step 5. You can also pipe the script over SSH via ksh -s without uploading a file first (uses default options and still requires fetching the log from /tmp/healthcheck):
ssh root@192.168.1.10 "ksh -s" < aix-check-v1.8.0.sh
scp root@192.168.1.10:/tmp/healthcheck/host01_*.log ./results/If you use Ansible, the script module pushes and executes the script without requiring Python on the AIX target. Note that Ansible treats exit code 3 as failed, so check the output before discarding results:
ansible aix -i hosts.txt -m script -a "aix-check-v1.8.0.sh" --become
# then fetch /tmp/healthcheck/*.log with the scp loop aboveVIOS normally disables direct root SSH login and requires logging in as padmin followed by oem_setup_env, so run VIOS checks interactively. Because dropping an SSH session sends SIGHUP and aborts the run (*** INTERRUPTED, exit code 130), consider wrapping remote execution with nohup over unstable network links.
Notes and Caveats
Note: The check log contains hostnames, IP addresses, routing tables,
/etc/hosts, process names, machine serial numbers, hardware VPD, and system error logs. Store and transmit it according to your organization's security policies and avoid sharing in uncontrolled environments.
- Credential redaction boundary: The script never reads
/etc/security/passwd,shadow, SNMP configs, or private key files. Process collection usescommbasenames only (no raw command arguments),crontab -lemits schedule and executable basenames only (dropping env vars, comments, and args), and all command outputs pass through a built-in POSIX awk streaming redactor covering 20 credential classes (private keys, password hashes, URL credentials, Auth/Cookie/API-key headers, Bearer/JWT/cloud tokens, SNMP communities, CLI/SQL/mount/CHAP/lsattr secrets). - Short performance sampling:
vmstat 1 3,iostat 1 3, andlparstat 1 3each sample for roughly 3 seconds, capturing only point-in-time load rather than continuous trend monitoring (such asnmon). - Error log window: Detailed
errpt -aoutput defaults to the last 100 days; pass-d 0when full error history is needed and ensure sufficient free space in the output directory. - Difference from IBM
snap: This script produces a single human-readable text log with an embedded manifest tailored for routine health checks, whereas IBM Support cases require an officialsnapdiagnostic archive; the two do not replace each other. - Zero state changes: The script modifies no system settings and resets no device counters; if interrupted mid-run, partial log output remains in the output directory while the temporary directory is cleaned up automatically.