Chapter 3. Hardware
Assistance
In order to learn about the hardware characteristics of your system, you can use the following commands:
For example, if you need to list all the tapes on your system, use the lsdev -C -c tape command. If you want to list the disks on your system, use the lsdev -C -c disk command.
You can use the lsdev command to display information about devices in the device configuration database. You can use this command to display information from either the Customized Devices object class in ODM using the -C flag or the Predefined Devices object class in ODM using the -P flag.
The general command syntax of the lsdev command is as follows:
lsdev -C [ -c Class ] [ -s Subclass ] [ -t Type ] [ -f File ] [ -F Format | -r ColumnName ] [ -h ] [ -H ] [ -l Name ] [ -S State ] lsdev -P [-c Class ] [ -s Subclass ] [ -t Type ] [ -f File ] [ -F Format | -r ColumnName ] [ -h ] [ -H ]
Some of the most commonly used flags with the lsdev command are
given in Table 9.

Table 9: lsdev Command Flags
Following are some examples of using lsdev command to list different device information about a system.
To list all devices in the Predefined Devices object class with column headers, on the command line enter:
lsdev -P -H
The system displays an output similar to Figure 7.
Figure 7: Listing Devices from a Pre-Defined ODM Database
To list all the devices in the Customized Devices object class, enter:
lsdev -C -H
An output similar to Figure 8 is shown:
Figure 8: Listing Devices in the Customized ODM Database
To list the adapters that are in the Available state in the Customized Devices object class, on the command line enter:
lsdev -C -c adapter -S a
An output similar to Figure 9 is shown:
Figure 9: Listing Available Devices
To list all the classes of supported devices on your system, on the command line enter:
lsdev -P -r class
An output similar to Figure 10 is shown:
Figure 10: Listing Supported Devices
The lsdev command obtains general information about the devices installed on your system; however, you can find out specific information about your physical volumes using the lspv command.
If you do not use command flags with the lspv command, the default is to provide every known physical volume in the system along with its physical disk name, physical volume identifiers (PVIDs), and which volume group (if any) it belongs to. If you specify the lspv command with a physical volume name, it displays information about that physical volume only. The general syntax of the lspv command is as follows:
lspv [ -l | -p | -M ] [ -n DescriptorPhysicalVolume] [-vVolumeGroupID] PhysicalVolume
Two of the most commonly used flags with the lspv command are given
in Table 10.

Table 10: lspv Command Flags
For example, to display the physical volumes on your system, enter:
#lspv hdisk0 00615147ce54a7ee rootvg hdisk1 00615147a877976a rootvg
In order to display the status and characteristics of physical volume hdisk0, use the lspv command as follows:
lspv hdisk0
An output similar to Figure 11 is shown:
Figure 11: Listing Physical Volume Characteristics
In order to list the status and characteristics of physical volume hdisk0 by physical partition number, use the lspv command as follows:
lspv -p hdisk0
A screen similar to Figure 12 is shown:
Figure 12: Listing Physical Volume Characteristics by Physical
Partitions