diag command
The diag command performs hardware problem determination. When you suspect there is a problem, diag assists you in finding it.
The command has the following syntax:
diag [ -a ] | [ -s [ -c ] ] [ -E days ] [ -e ] | [ -d Device [ -c ] [ -v ] [ -e ] [ -A ] ] | [ -B [ -c ] ] | [ -T taskname ] | [ -S testsuite ] | [ -c -d Device -L pending | complete ]
Most users should enter the diag command without any flags. The following flags perform various actions:
| Item | Description |
|---|---|
| -A | Advanced mode. Default is non-advanced mode. |
| -a | Processes the changes in the hardware configuration. For example, missing and/or new resources. |
| -B | Tests the base system devices, such as planar, memory, processor. |
| -c | Indicates that the machine will not be attended. No questions will be asked. Results are written to standard output. Normally used by shell scripts. |
| -d Device | Names the resource that should be tested. The Device parameter is a resource name displayed by the lscfg command. |
| -E Days | Number of days used to search the error log. |
| -e | Causes the device's Diagnostic Application to be run in Error Log Analysis mode. |
| -L pending | complete | Log Repair Action for a resource specified with the -d and -c flags. Use pending if the part has been replaced, but it is not yet known if this part will remain in the system. Use complete if the part has been replaced and it is known that this part will remain in the system. |
| -S testsuite | Tests the Test Suite Group:
|
| -s | Causes the system to be tested in System Checkout mode. |
| -T taskstring | Specifies a particular Task to execute. The taskstring depends on the particular task to be executed. SeeTasks for more information. |
| -v | System Verification Mode. Default is Problem Determination mode. |