Displays Virtual I/O Server devices and their characteristics.
To list devices:
lsdev [ -type DeviceType... ] [ -virtual ] [ -field FieldName... ] [ -fmt Delimiter ] [-state State ]
To display information about a specific device:
lsdev { -dev DeviceName | -plc PhysicalLocationCode } [ -child ] [ -field FieldName... ] [ -fmt Delimiter ]
lsdev { -dev DeviceName | -plc PhysicalLocationCode } [ -attr [ Attribute ] | -range Attribute | -slot | -vpd | -parent]
lsdev -vpd
lsdev -slots
The lsdev command displays information about devices in the Virtual I/O Server. If no flags are specified, a list of all devices, both physical and virtual, in the Virtual I/O Server is displayed. To list devices, both physical and virtual, of a specific type use the -type DeviceType flag. Use the -virtual flag to list only virtual devices. Combining both the -type and -virtual flags will list the virtual devices of the specified type.
To display information about a specific device, use the -dev DeviceName or -plc PhysicalLocationCode. Use either the -child, -parent, -attr, -range, -slot, or -vpd flag to specify what type of information is displayed. If none of these flags are used, the name, status, and description of the device will be displayed.
Using the -vpd flag, without specifying a device, displays platform-specific information for all devices.
If the -fmt Delimiter flag is specified the lsdev command returns all output in a delimiter separated format. The -state State flag limits the output to devices in the indicated state. The -slots flag produces a list of I/O slot information for built-in adapters that are not hot-pluggable but can have dynamic LPAR operations performed on them.
The lsdev output will be truncated to 80 characters per line, unless the -fmt flag is used. If the -fmt flag is used, the output lines will not be truncated and line wrap may occur, based on what the terminal window line length is set to.
Return code | Description |
12 | Specified logical volume belongs to the operating system. |
13 | Specified physical or logical volume is not valid physical or logical volume |
lsdev -type adapter -virtual -field name statusThe system displays a message similar to the following:
name status vhost0 Available vhost1 Available vhost2 Available ent6 Available ent7 Available ent8 Available ent9 Available
lsdev -type disk -field name physlocThe system displays a message similar to the following:
name physloc hdisk0 U9111.520.10004BA-T15-L5-L0 hdisk1 U9111.520.10004BA-T15-L8-L0 hdisk2 U9111.520.10004BA-T16-L5-L0 hdisk3 U9111.520.10004BA-T16-L8-L0 hdisk4 UTMP0.02E.00004BA-P1-C4-T1-L8-L0 hdisk5 UTMP0.02E.00004BA-P1-C4-T2-L8-L0 hdisk6 UTMP0.02F.00004BA-P1-C8-T2-L8-L0 hdisk7 UTMP0.02F.00004BA-P1-C4-T2-L8-L0 hdisk8 UTMP0.02F.00004BA-P1-C4-T2-L11-L0 vtscsi0 U9111.520.10004BA-V1-C2-L1 vtscsi1 U9111.520.10004BA-V1-C3-L1 vtscsi2 U9111.520.10004BA-V1-C3-L2 vtscsi3 U9111.520.10004BA-V1-C4-L1 vtscsi4 U9111.520.10004BA-V1-C4-L2 vtscsi5 U9111.520.10004BA-V1-C5-L1
lsdev -dev hdisk0 -parentThe system displays a message similar to the following:
parent scsi0
lsdev -slotsThe system displays a message similar to the following:
U787A.001.DNZ00Y1-P1-C1 Logical I/O Slot pci4 sisscsia0 U787A.001.DNZ00Y1-P1-T5 Logical I/O Slot pci3 ent0 ent1 U787A.001.DNZ00Y1-P1-T7 Logical I/O Slot pci2 usbhc0 usbhc1 U9111.520.10DFD8C-V2-C0 Virtual I/O Slot vsa0 U9111.520.10DFD8C-V2-C2 Virtual I/O Slot vhost0 U9111.520.10DFD8C-V2-C4 Virtual I/O Slot Unknown