lsdev 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-lsdev
핵심 정리
- ODM(장치 구성 데이터베이스)에서 장치를 보여 줍니다.
-C(사용자 정의 장치, 기본)는 시스템에 실제로 구성된 장치,-P(사전 정의 장치)는 지원하는 장치 종류입니다. - 기본 출력은 이름, 상태(Available·Defined·Stopped), 위치 코드, 설명입니다.
- 자주 쓰는 형태:
lsdev -Cc disk(디스크),lsdev -Cc adapter(어댑터),lsdev -Cc processor,lsdev -p fcs0(자식 장치),lsdev -Cl hdisk0(하나). -F "name status location physloc"처럼 출력 열을 고르고,-S d(Defined)·-S a(Available)로 상태를 거릅니다.- Defined는 ODM에는 있지만 사용할 수 없는 상태(장치를 뺐거나 구성이 안 됨)이고,
cfgmgr나mkdev -l로 Available로 만듭니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 -x(WPAR로 내보낸 장치 표시)가 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 3, 6.1 Volume 3 |
| 파일 | /usr/sbin/lsdev, /etc/objrepos/CuDv, /usr/lib/objrepos/PdDv |
| 관련 명령어 | lsattr, lscfg, mkdev, chdev, rmdev, cfgmgr, lspath |
목적
시스템의 장치와 그 특성을 보여 줍니다.
영어 원문
Displays devices in the system and their characteristics.
구문
lsdev [ -C ] [ -c Class ] [ -s Subclass ] [ -t Type ] [ -f File ] [ -F Format | -r ColumnName ] [ -h ]
[ -H ] [ -l { Name | - } ] [ -p Parent ] [ -S State ] [ -x ]
lsdev -P [ -c Class ] [ -s Subclass ] [ -t Type ] [ -f File ] [ -F Format | -r ColumnName ] [ -h ] [ -H ] [ -x ]
-x는 6.1 구문에만 있습니다.
설명
lsdev 명령은 장치 구성 데이터베이스의 장치 정보를 보여 줍니다. -C로 사용자 정의 장치(Customized Devices) 객체 클래스의 모든 장치를 볼 수 있고, -c Class, -s Subclass, -t Type, -l Name, -p Parent, -S State를 조합해 그 일부를 고릅니다. -P로 사전 정의 장치(Predefined Devices) 객체 클래스의 모든 장치를 볼 수 있고, -c, -s, -t를 조합해 일부를 고릅니다.
기본 출력은 다음 두 가지입니다.
-C: 사용자 정의 장치 객체 클래스에서-P: 사전 정의 장치 객체 클래스에서
기본 출력 대신 -F Format으로 원하는 형식을 줄 수 있습니다. Format은 영숫자가 아닌 문자나 공백으로 나눈(끝에도 올 수 있는) 열 이름 목록을 따옴표로 감싼 것입니다.
lsdev는 사용자 정의 장치(CuDv)나 사전 정의 장치(PdDv) 객체 클래스의 정보에 바탕을 둔 장치만 보여 줍니다. 사용자 정의 경로(CuPath) 같은 다른 객체 클래스는 보지 않으므로 장치가 보이지 않을 때가 있습니다. 예를 들어 -p Parent를 주었는데 장치의 사용자 정의 장치 객체에 적힌 부모가 그 Parent와 다르면 그 장치는 보이지 않습니다. 하지만 그 장치는 사용자 정의 경로 객체 클래스에 그 Parent로 가는 경로를 가질 수 있습니다. 지정한 부모의 MPIO 자식 장치를 모두 보려면 lspath를 씁니다.
Web-based System Manager의 Devices 응용 프로그램이나 SMIT 빠른 경로 smit lsdev로도 장치 특성을 볼 수 있습니다.
영어 원문
The lsdev command displays information about devices in the Device Configuration database. You can display information about all devices in the Customized Devices object class using the -C flag. Any combination of the -c Class, -s Subclass, -t Type, -l Name, -p Parent, and -S State flags selects a subset of the customized devices. You can display information about all devices in the Predefined Devices object class using the -P flag. Any combination of the -c Class, -s Subclass, and -t Type flags selects a subset of the predefined devices.
You can display the default output one of the following ways:
From the Customized Devices object class by using the
-CflagFrom the Predefined Devices object class by using the
-Pflag
To override these two default outputs, use the -F Format flag to display the output in a format that you specify by using the Format parameter. The Format parameter is a quoted list of column names that are separated and possibly ended by non-alphanumeric characters or white space.
The lsdev command shows information only about devices that are based upon information in the Customized Devices (Cudv) object class or the Predefined Devices (PdDv) object class. Other object classes (such as the Customized Path (CuPath) object class) are not examined. This situation means that there might be conditions where a device might not be displayed. For example, if the -p Parent flag is used, but the parent that is identified in the Customized Devices object for a device does not match the Parent that is specified through the -p flag, the device is not displayed. However, the device might have a path to thespecified Parent that is defined in the Customized Paths object class. Use the lspath command to show all MPIO-capable child devices of the specified parent.
You can also use the Devices application in Web-based System Manager, or the System Management Interface Tool (SMIT) smit lsdev fast path to change device characteristics.
플래그
| 플래그 | 설명 |
|---|---|
-C |
사용자 정의 장치 객체 클래스의 장치 정보를 나열합니다. 기본으로 이름, 상태, 위치, 설명을 보여 줍니다. 호환성 때문에 남아 있으며 없어도 됩니다. -P와 함께 쓸 수 없고, 둘 다 없으면 -C를 준 것처럼 동작합니다. |
-c Class |
장치 클래스 이름. 그 클래스의 장치로 출력을 제한합니다. |
-f File |
필요한 플래그를 File에서 읽습니다. |
-F Format |
사용자가 정한 형식으로 출력합니다. Format은 사전 정의·사용자 정의 장치 객체 클래스의 열 이름 목록입니다. 구분자가 공백이면 열을 맞춰 보여 줍니다. -C와 함께면 두 객체 클래스의 열을, -P와 함께면 사전 정의 장치의 열만 쓸 수 있습니다. 특수 이름 description은 장치 설명을, physloc은 물리 위치 코드를 보여 줍니다. -r과 함께 쓸 수 없습니다. |
-H |
열 위에 머리글을 보여 줍니다. |
-h |
사용법을 보여 줍니다. |
-l Name |
정보를 볼 장치의 논리 이름(사용자 정의 장치). odmget에서 쓰는 와일드카드를 쓸 수 있습니다. -면 표준 입력에서 이름을 읽으며, 이름은 쉼표, 탭, 공백, 줄바꿈으로 나누고 와일드카드는 쓸 수 없습니다. -P와 함께 쓸 수 없습니다. |
-p Parent |
보여 줄 장치들의 부모 장치 논리 이름. 그 부모의 자식 장치를 보여 줍니다. 와일드카드를 쓸 수 있고 -P와 함께 쓸 수 없습니다. |
-P |
사전 정의 장치 객체 클래스의 장치 정보를 나열합니다. 기본으로 클래스, 유형, 하위 클래스, 설명을 보여 줍니다. -C, -l, -S와 함께 쓸 수 없습니다. |
-r ColumnName |
한 열의 값 집합을 보여 줍니다. 예를 들어 class를 주면 모든 클래스를 나열합니다. -C·-P와의 관계는 -F와 같고, -F와 함께 쓸 수 없습니다. |
-S State |
그 상태의 장치를 모두 나열합니다. Defined는 d, D, 0, defined, Available은 a, A, 1, available, Stopped는 s, S, 2, stopped로 줍니다. -P와 함께 쓸 수 없습니다. |
-s Subclass |
장치 하위 클래스 이름. |
-t Type |
장치 유형 이름. |
-x |
WPAR로 내보낸 장치의 내보냄 상태를 보여 줍니다. 6.1부터 |
영어 원문
-C— Lists information about a device that is in the Customized Devices object class. The default information that is displayed is name, status, location, and description. The-Cflag is not required, but is maintained for compatibility reasons. The-Cflag cannot be specified with the-Pflag. If neither is specified, the lsdev command behaves as if the-Cflag was specified.-cClass — Specifies a device class name. This flag can be used to restrict output to devices in a specified class.-fFile — Reads the necessary flags from the File parameter.-FFormat — Displays the output in a user-specified format, where the Format parameter is a quoted list of column names from the Predefined or Customized Devices object class, separated and possibly ended by nonalphanumeric characters or white space. If white space is used as the separator, the lsdev command displays the output in aligned columns. If you specify the-FFormat flag with the-Cflag, you can specify column names from both the Customized and Predefined Devices object classes. If you specify the-FFormat flag with the-Pflag, you can specify only column names from the Predefined Devices object class. In addition to the column names, the special purpose name description can be used to obtain a display of device descriptions. This flag cannot be used with the-rColumnName flag. Also, the physloc special purpose name can be used to display a physical location code of the device.-H— Displays headers above the column output.-h— Displays the command usage message.-lName — Specifies the device logical name from the Customized Devices object class of the device for which information is listed. The Name argument to the-lflag can contain the same wildcard characters that can be used with the odmget command. If the Name argument is a dash, names are read from STDIN. Names on STDIN must be separated by a comma, a tab, a space, or a "newline" character. Names cannot contain wildcard characters. This flag cannot be used with the-Pflag.-pParent — Specifies the device logical name from the Customized Devices object class for the parent of devices to be displayed. The-pParent flag can be used to show the child devices of the specified Parent. The Parent argument to the-pflag might contain the same wildcard characters that can be used with the odmget command. This flag cannot be used with the-Pflag.-P— Lists information about a device that is in the Predefined Devices object class. The default information that is displayed is class, type, subclass, and description. This flag cannot be used with the-C,-l, or-Sflags.-rColumnName — Displays the set of values in a column. For example, the ColumnName parameter takes the value of the Class parameter to list all of the classes. If you specify the-rColumnName flag with the-Cflag, you can specify column names from both the Customized and Predefined Devices object classes. If you specify the-rColumnName flag with the-Pflag, you can specify only column names from the Predefined Devices object class. This flag cannot be used with the-FFormat flag.-SState — Lists all devices in a specified state as named by the State parameter. The State parameter can have one of the following values: • d, D, 0 or defined for the Defined state • a, A, 1, or available for the Available state • s, S, 2, or stopped for the Stopped state This flag can be used to restrict output to devices in a specified state. This flag cannot be used with the-Pflag.-sSubclass — Specifies a device subclass name. This flag can be used to restrict output to devices in a specified subclass.-tType — Specifies a device type name. This flag can be used to restrict output to devices of a specified type.-x— Displays the exported status for devices that are exported to a Workload Partition (WPAR).
종료 상태
| 값 | 뜻 |
|---|---|
| 0 | 성공 |
| 0보다 큼 | 오류 |
영어 원문
This command returns the following exit values:
- 0 — Successful completion.
>0— An error occurred.
보안
RBAC 사용자와 Trusted AIX 사용자는 주의하세요. 이 명령은 특권 작업을 할 수 있으며, 특권 작업은 특권 사용자만 할 수 있습니다. 특권과 권한 목록은 lssecattr 명령이나 getcmdattr 하위 명령으로 봅니다(6.1 문서에만 있음).
영어 원문
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
예제
| 명령 | 하는 일 |
|---|---|
lsdev -P -H |
사전 정의 장치를 머리글과 함께 모두 나열(클래스, 유형, 하위 클래스, 설명) |
lsdev -C |
사용자 정의 장치를 모두 나열(이름, 상태, 위치, 설명) |
lsdev -C -c adapter -S a |
Available 상태인 어댑터 |
lsdev -P -c tape |
사전 정의된 테이프 장치 종류 |
lsdev -P -r class |
지원하는 장치 클래스 목록 |
lsdev -P -c disk -r subclass |
disk 클래스의 하위 클래스(dar, fcp, fdar, ide, iscsi, scraid, scsi, vscsi 등) |
lsdev -C -H -S a -F 'name class subclass type' |
Available 장치의 이름, 클래스, 하위 클래스, 유형을 머리글과 함께 |
lsdev -C -c adapter -F 'name class location physloc' |
어댑터의 이름, 클래스, 위치, 물리 위치 코드 |
lsdev -p pci0 |
pci0 버스의 자식 장치 |
cat /tmp/f | lsdev -l - |
파일 /tmp/f에 이름이 있는 장치 |
lsdev -c disk -x |
(6.1) WPAR로 내보낸 디스크는 상태가 Exported로 보임 |
lsdev -C의 출력 예(일부):
sys0 Available System Object
proc0 Available 00-00 Processor
scsi0 Available 10-60 Wide/Ultra-2 SCSI I/O Controller
ent0 Available 10-80 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
hd3 Defined Logical volume
en0 Available 10-80 Standard Ethernet Network Interface
et0 Defined 10-80 IEEE 802.3 Ethernet Network Interface
tty0 Available 01-S1-00-00 Asynchronous Terminal
-F 'name class location physloc' 출력 예:
ent0 adapter 02-08 UTMP0.02F.00004BA-P1-C3-T1
scsi0 adapter 01-08 UTMP0.02F.00004BA-P1-C2-T1
vscsi0 adapter U9111.520.10004BA-V4-C2
자주 쓰는 형태:
lsdev -Cc disk # 디스크
lsdev -Cc adapter | grep -i fcs # FC 어댑터
lsdev -Cc processor | wc -l # 프로세서 수
lsdev -C -S d # Defined 상태(정리 대상)
lsdev -p fscsi0 # FC 어댑터 아래 디스크
영어 원문
- To list all of the devices in the Predefined Devices object class with column headers, type the following command:
lsdev -P -H
The system displays a message similar to the following output:
class type subclass description
logical_volume vgtype vgsubclass Volume group
logical_volume lvtype lvsubclass Logical volume
lvm lvdd lvm LVM Device Driver
posix_aio posix_aio node Posix Asynchronous I/O
aio aio node Asynchronous I/O (Legacy)
pty pty pty Asynchronous Pseudo-Terminal
mouse 030102 usbif USB mouse
keyboard 030101 usbif USB keyboard
.
.
.
disk 540mb2 scsi 540 MB SCSI Disk Drive
disk 540mb3 scsi 540 MB SCSI Disk Drive
disk 540mb4 scsi 540 MB SCSI Disk Drive
disk 540mb5 scsi 540 MB SCSI Disk Drive
disk 730mb2 scsi 730 MB SCSI Disk Drive
disk 810mb scsi 810 MB SCSI Disk Drive
disk 810mb2 scsi 810 MB SCSI Disk Drive
bus pcic pci PCI Bus
bus isac pci ISA Bus
adapter df1000f9 pci FC Adapter
adapter df1000f7 pci FC Adapter
driver efscsi iocb FC SCSI I/O Controller Protocol Device
adapter c1110358 pci USB OHCI Adapter (c1110358)
adapter ad100501 pci ATA/IDE Controller Device
adapter 4f111100 pci IBM 8-Port EIA-232/RS-422A (PCI) Adapter
adapter ccm pci Name of the Common Character Mode device driver
driver hdlc 331121b9 IBM HDLC Network Device Driver
adapter 331121b9 pci IBM 2-Port Multiprotocol Adapter (331121b9)
adapter 2b102005 pci GXT130P Graphics Adapter
adapter 2b101a05 pci GXT120P Graphics Adapter
adapter 23100020 pci IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
.
.
.
if tr TR Token Ring Network Interface
if vi VI Virtual IP Address Network Interface
if xt XT X.25 Network Interface
tcpip inet TCPIP Internet Network Extension
swap paging nfs NFS Swap DEVICE
drawer media1 media SCSI Device Drawer
drawer scsi1 dasd SCSI DASD Drawer
adapter 4f111b00 pci IBM 128-Port Async (PCI) Adapter
concentrator 16c232 sync_pci 16-Port RAN EIA-232 for 128-Port Adapter
concentrator 16e232 sync_pci 16-Port Enhanced RAN EIA-232 for 128-Port Adapter
concentrator 16e422 sync_pci 16-Port Enhanced RAN RS-422 for 128-Port Adapter
if at AT ATM Network Interface
adapter 14105300 pci IBM PCI 25MBPS ATM Adapter (14105300)
- To list all of the devices in the Customized Devices object class, type the following command:
lsdev -C
The system displays a message similar to the following output:
sys0 Available System Object
sysplanar0 Available System Planar
mem0 Available Memory
L2cache0 Available L2 Cache
proc0 Available 00-00 Processor
pci0 Available PCI Bus
pci1 Available PCI Bus
isa0 Available 10-58 ISA Bus
siota0 Available 01-Q1 Tablet Adapter
ppa0 Available 01-R1 CHRP IEEE1284 (ECP) Parallel Port Adapter
sa0 Available 01-S1 Standard I/O Serial Port
sa1 Available 01-S2 Standard I/O Serial Port
paud0 Available 01-Q2 Ultimedia Integrated Audio
siokma0 Available 01-K1 Keyboard/Mouse Adapter
fda0 Available 01-D1 Standard I/O Diskette Adapter
scsi0 Available 10-60 Wide/Ultra-2 SCSI I/O Controller
scsi1 Available 10-61 Wide/Ultra-2 SCSI I/O Controller
sa2 Available 10-68 IBM 8-Port EIA-232/RS-422A (PCI) Adapter
sa3 Available 10-70 IBM 8-Port EIA-232/RS-422A (PCI) Adapter
sa4 Available 10-78 IBM 8-Port EIA-232/RS-422A (PCI) Adapter
.
.
hd3 Defined Logical volume
hd1 Defined Logical volume
hd10opt Defined Logical volume
inet0 Available Internet Network Extension
en0 Available 10-80 Standard Ethernet Network Interface
et0 Defined 10-80 IEEE 802.3 Ethernet Network Interface
lo0 Available Loopback Network Interface
pty0 Available Asynchronous Pseudo-Terminal
gxme0 Defined Graphics Data Transfer Assist Subsystem
rcm0 Available Rendering Context Manager Subsystem
aio0 Defined Asynchronous I/O (Legacy)
posix_aio0 Defined Posix Asynchronous I/O
tty0 Available 01-S1-00-00 Asynchronous Terminal
tty1 Available 01-S2-00-00 Asynchronous Terminal
- To list the adapters that are in the Available state in the Customized Devices object class, type the following command:
lsdev -C -c adapter -S a
The system displays a message similar to the following output:
sa0 Available 01-S1 Standard I/O Serial Port
sa1 Available 01-S2 Standard I/O Serial Port
siokma0 Available 01-K1 Keyboard/Mouse Adapter
fda0 Available 01-D1 Standard I/O Diskette Adapter
scsi0 Available 10-60 Wide/Fast-20 SCSI I/O Controller
fcs0 Available 10-68 FC Adapter
scsi1 Available 10-88 Wide/Ultra-2 SCSI I/O Controller
fcs1 Available 20-60 FC Adapter
sioka0 Available 01-K1-00 Keyboard Adapter
siota0 Available 01-Q1 Tablet Adapter
ppa0 Available 01-R1 CHRP IEEE1284 (ECP) Parallel Port Adapter
paud0 Available 01-Q2 Ultimedia Integrated Audio
tok0 Available 10-70 IBM PCI Tokenring Adapter (14101800)
ent0 Available 10-80 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
sioma0 Available 01-K1-01 Mouse Adapter
- To list all of the tape devices in the Predefined Devices object class, type the following command:
lsdev -P -c tape
The system displays a message similar to the following output:
tape ost fcp Other FC SCSI Tape Drive
tape scsd fcp FC SCSI Tape Drive
tape ost iscsi Other iSCSI Tape Drive
tape scsd iscsi iSCSI Tape Drive
tape 1200mb-c scsi 1.2 GB 1/4-Inch Tape Drive
tape 150mb scsi 150 MB 1/4-Inch Tape Drive
tape 3490e scsi 3490E Autoloading Tape Drive
tape 4mm2gb scsi 2.0 GB 4mm Tape Drive
tape 4mm4gb scsi 4.0 GB 4mm Tape Drive
tape 525mb scsi 525 MB 1/4-Inch Tape Drive
tape 8mm scsi 2.3 GB 8mm Tape Drive
tape 8mm5gb scsi 5.0 GB 8mm Tape Drive
tape 8mm7gb scsi 7.0 GB 8mm Tape Drive
tape 9trk scsi 1/2-inch 9-Track Tape Drive
tape ost scsi Other SCSI Tape Drive
tape scsd scsi SCSI Tape Drive
tape 4mm2gb2 scsi 2.0 GB 4mm Tape Drive
- To list the supported device classes from the Predefined Devices object class, type the following command:
lsdev -P -r class
The system displays a message similar to the following output:
PCM
adapter
aio
array
bus
cdrom
concentrator
container
dial
disk
diskette
drawer
driver
gxme
if
keyboard
lft
logical_volume
lpfk
lvm
memory
mouse
pdisk
planar
port
posix_aio
printer
processor
pseudo
pty
rcm
rwoptical
swap
sys
tablet
tape
tcpip
tmscsi
tty
- To list the supported subclasses in the Predefined Devices object class for the disk class, type the following command:
lsdev -P -c disk -r subclass
The system displays a message similar to the following output:
dar
fcp
fdar
ide
iscsi
scraid
scsi
vscsi
- To list the name, class, subclass, and type of every device in the Available state in the Customized Devices object class with column headers, type the following command:
lsdev -C -H -S a -F ’name class subclass type’
The system displays a message similar to the following output:
name class subclass type
sys0 sys node chrp
sysplanar0 planar sys sysplanar_rspc
mem0 memory sys totmem
L2cache0 memory sys L2cache_rspc
proc0 processor sys proc_rspc
pci0 bus chrp pci
pci1 bus chrp pci
isa0 bus pci isac
siota0 adapter isa_sio isa_tablet
ppa0 adapter isa_sio chrp_ecp
sa0 adapter isa_sio pnp501
sa1 adapter isa_sio pnp501
paud0 adapter isa_sio baud4232
siokma0 adapter isa_sio kma_chrp
fda0 adapter isa_sio pnp700
scsi0 adapter pci sym896
scsi1 adapter pci sym896
sa2 adapter pci 4f111100
sa3 adapter pci 4f111100
sa4 adapter pci 4f111100
ent0 adapter pci 23100020
mg20 adapter pci 2b102005
sa5 adapter pci 4f111100
sioka0 adapter kma_chrp keyboard
sioma0 adapter kma_chrp mouse
fd0 diskette siofd fd
cd0 cdrom scsi scsd
hdisk0 disk scsi scsd
kbd0 keyboard std_k ps2
mouse0 mouse std_m mse_3b
lvdd lvm lvm lvdd
lft0 lft node lft
inet0 tcpip TCPIP inet
en0 if EN en
lo0 if LO lo
pty0 pty pty pty
rcm0 rcm node rcm
tty0 tty rs232 tty
tty1 tty rs232 tty
- To list the name, class, location, and physloc of all adapter devices in the Customized Devices object class with column headers, type the following command:
lsdev -C -c adapter -F ’name class location physloc’
The system displays a message similar to the following output:
ent0 adapter 02-08 UTMP0.02F.00004BA-P1-C3-T1
scsi0 adapter 01-08 UTMP0.02F.00004BA-P1-C2-T1
scsi1 adapter 01-09 UTMP0.02F.00004BA-P1-C2-T2
scsi2 adapter 03-08 UTMP0.02F.00004BA-P1-C4-T1
scsi3 adapter 03-09 UTMP0.02F.00004BA-P1-C4-T2
vsa0 adapter U9111.520.10004BA-V4-C0
vscsi0 adapter U9111.520.10004BA-V4-C2
vscsi1 adapter U9111.520.10004BA-V4-C3
- To list all of the children of the
pci0bus, type the following command:
lsdev -p pci0
The system displays a message similar to the following output:
ent0 Available 10-80 IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
isa0 Available 10-58 ISA Bus
scsi0 Available 10-60 Wide/Fast-20 SCSI I/O Controller
scsi1 Available 10-88 Wide/Ultra-2 SCSI I/O Controller
tok0 Available 10-70 IBM PCI Tokenring Adapter (14103e00)
- To list the devices whose names are contained in the file
/tmp/f, type:
cat /tmp/f | lsdev -l -
The system displays a message similar to the following output:
pci0 Available PCI Bus
scsi0 Available 10-60 Wide/Fast-20 SCSI I/O Controller
hdisk0 Available 10-60-00-8,0 16 Bit SCSI Disk Drive
- To display the status of the devices that are exported to a WPAR as Exported, enter the following command:
# lsdev -c disk -x
The system displays a message similar to the following output:
hdisk0 Available 01-08-00-1,0 16 Bit LVD SCSI Disk Drive
hdisk1 Exported 01-08-00-2,0 Other SCSI Disk Drive
where the hdisk1 device is exported to a WPAR.
파일
| 파일 | 설명 |
|---|---|
/usr/sbin/lsdev |
lsdev 명령 |
영어 원문
- /usr/sbin/lsdev — Contains the lsdev command.
Related reference:
- lsattr Command
- mkdev Command
Related information:
- chdev command
- rmdev command
리눅스(GNU)와 다른 점
리눅스에는 ODM 같은 장치 구성 데이터베이스가 없고, 장치는 커널과 udev가 자동으로 인식합니다. 장치 목록은 lspci, lsusb, lsblk, lshw, ip link로, 속성은 /sys 아래 파일이나 udevadm info로 봅니다. 장치 다시 찾기는 echo "- - -" > /sys/class/scsi_host/host0/scan이나 rescan-scsi-bus.sh가 cfgmgr에 가깝습니다.