Pages

Tuesday, 28 June 2011

hardware devices


Listing hardware devices:
To learn about the hardware characteristics of your system, you can use the following commands:

·         lsdev    Displays devices on the system and their characteristics.
·         lspv      Displays information about a physical volume within a volume group.
·         lsattr    Displays information about the attributes of a given device or kind of
device.

For example:

·         To list the tapes on your system, use the lsdev -C -c tape command.
·         To list the disks on your system, use the lsdev -C -c disk command.

Using the lsdev 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.

Listing devices in the predefined ODM database

lsdev -P –H

Listing devices in customized ODM database

lsdev -C –H

To list the adapters that are in the Available state in the Customized Devices object class, enter:

lsdev -C -c adapter -S a

To list all the classes of supported devices on your system, on the command line enter:

lsdev -P -r class


Using the lspv command:

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.

For example, to display the physical volumes on your system, enter:

#lspv

hdisk0 00615147ce54a7ee rootvg
hdisk1 00615147a877976a rootvg

To display the status and characteristics of physical volume hdisk0, use the lspv command as follows:

lspv hdisk0

To list the status and characteristics of physical volume hdisk0 by physical partition number, use the lspv command as follows:

lspv -p hdisk0


No comments:

Post a Comment

Twitter Bird Gadget