Performs hardware problem determination.
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 ]
The diag command is the starting point to run a wide choice of tasks and service aids. Most of the tasks/service aids are platform specific. The following tasks and service aids are available:
You can use the Devices application in Web-based System Manager (wsm) to change device characteristics. You could also use the System Management Interface Tool (SMIT) smit diag fast path to run this command.
Note: Most users do not need to use any flags since the diag command is a menu driven program.
Item | Description |
---|---|
-A | Specifies Advanced mode. Must also specify a device using the -d flag. |
-a | Processes any changes in the hardware configuration by asking if missing resources have been removed, turned off, and so on. In AIX 5.2 and higher, missing resources (indicated by an 'M') and missing resource paths (indicated by a 'P') are integrated into the diagnostic resource selection list. |
-B | Instructs diagnostics to run the base system test. Error log analysis are also done on areas in the base system that supports error log analysis. |
-c | Indicates that the machine will not be attended. No questions will be asked. Results are written to standard output. Must also use an optional flag that specifies a device to be tested, (d, B, s). |
-d Device | Specifies the device to run diagnostics on. |
-E Days | Specifies the number of days to use when searching the error log during Run Error Log Analysis. This flag works with any other flag. |
-e | Performs error log analysis if supported on the selected device. No tests are performed. Must be used with the -d flag, otherwise the resource selection menu displays. If used with the -v flag, -v takes precedence and the -e flag is ignored. . |
-S testsuite | Indicates a particular Test Suite of devices to test:
|
-L pending | complete | Log Repair Action for a resource specified with the -d and -c options. 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 | Runs diagnostics on all resources. |
-T taskname | Fastpath to specific task to run. Current fastpath tasks are the
following:
Note: Tasks are platform and device dependent. Some
tasks may not be available on the system.
|
-v | Runs diagnostics in System Verification Mode, no error log analysis performed. The default is Problem Determination mode that tests the device and runs error log analysis. If used with the -e flag, the -v flag takes precedence and the -e flag is ignored. Must be used with the -d flag to specify a device to run diagnostics on. |
Access Control: Only the root user can run this command.
Privilege Control: System group.
To run diagnostics on the scdisk0 device, without questions, enter:
diag -d scdisk0 -c
Item | Description |
---|---|
/usr/sbin/diag | Contains the diag command. |