lsslot 명령어 (AIX 5.3·6.1)

핵심 정리

  • 동적으로 재구성할 수 있는 슬롯(핫 플러그 PCI 슬롯, LPAR의 논리 슬롯 등)과 거기 연결된 장치를 보여 줍니다. -c 커넥터종류가 꼭 필요합니다.
  • lsslot -c pci(모든 PCI 핫 플러그 슬롯), -a(빈 슬롯), -o(장치가 꽂힌 슬롯), -l scsi1(그 장치가 꽂힌 슬롯).
  • LPAR에서는 lsslot -c slot(파티션에 할당된 논리 슬롯과 DRC 이름), -c phb(PCI 호스트 브리지), -c port(논리 HEA 포트)를 씁니다.
  • 연결 장치가 unknown이면 장치는 꽂혀 있지만 ODM에 없는 것으로, 새로 꽂고 구성하지 않았거나 rmdev -d로 지웠거나 장치 소프트웨어가 없습니다.
  • 핫 플러그 교체는 drslot이나 diag(PCI Hot Plug Manager)로 합니다. 슬롯 이름(DRC 이름)은 cfgmgr -u(6.1)에도 씁니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (두 버전의 내용이 거의 같음)
원문 IBM Commands Reference — 5.3 Volume 3, 6.1 Volume 3
파일 /usr/sbin/lsslot
관련 명령어 drslot, lsdev, rmdev, cfgmgr, diag

목적

핫 플러그 슬롯처럼 동적으로 재구성할 수 있는 슬롯과 그 특성을 보여 줍니다.

영어 원문

Displays dynamically reconfigurable slots, such as hot plug slots, and their characteristics.

구문

text
lsslot -c ConnectorType [ -a | -o | -l DeviceName | -s Slot ] [ -F Delimiter ]

설명

lsslot 명령은 지정한 핫 플러그 슬롯과 그 특성을 모두 보여 줍니다. 핫 플러그 슬롯은 시스템 전원을 끄거나 운영 체제를 다시 시작하지 않고 더하고 뺄 수 있는 장치를 연결하는 곳입니다. -c는 꼭 줘야 하며 핫 플러그 커넥터 종류를 정합니다(예: 핫 플러그 PCI 어댑터는 pci). -a로 빈(쓸 수 있는) 슬롯만, -o로 장치가 꽂힌 슬롯만, -s로 특정 슬롯만 볼 수 있습니다. -l은 lsdev가 보여 주는 DeviceName이 꽂힌 슬롯을 찾습니다.

lsslot은 PCI 어댑터 같은 물리 개체나, 논리 슬롯·논리 HEA(host-Ethernet adapter) 포트 같은 논리 개체가 연결되는 커넥터를 나열합니다. 나열할 수 있는 커넥터 종류는 다음과 같습니다.

  • pci: 물리 커넥터
  • slot: 논리 커넥터
  • phb: 논리 커넥터
  • port: 논리 커넥터

논리 커넥터에는 -a와 -o를 무시합니다. 논리 커넥터에 대해서는 지정한 종류에 따라 지금 파티션에 할당된 논리 개체를 보여 줍니다. PHB 아래 슬롯이 여럿이면 논리 슬롯 개체는 논리 슬롯 커넥터와, 아니면 논리 PHB 커넥터와 연결될 수 있습니다. 모든 논리 슬롯 개체는 lsslot -c slot과 lsslot -c phb로 봅니다.

출력은 커넥터 종류와 명령을 실행하는 플랫폼에 따라 다릅니다. 슬롯의 특성에는 다음이 들어갈 수 있습니다.

  • 슬롯 이름이나 식별자
  • 커넥터 종류나 슬롯 설명(예: PCI 핫 플러그 슬롯)
  • 연결된 장치 이름(예: scsi0, ent0)

PHB를 나열하면 Device(s) Connected 열에 PHB의 ODM 이름이 나오고, 그 아래 줄마다 PHB 아래 논리 슬롯에 해당하는 장치의 ODM 이름이 나옵니다. PHB의 ODM 이름이 없으면 빈 줄이 나옵니다.

영어 원문

The lsslot command displays all the specified hot plug slots and their characteristics. Hot plug slots are the plug-in points for connecting entities that can be added and removed from the system without turning the system power off or rebooting the operating system. The -c flag is required. It specifies the type of hot plug connector, for example, pci for hot pluggable PCI adapters. You can display only the empty, that is, available, hot plug slots with the -a flag, the occupied slots with the -o flag, or a specific slot by using the -s flag. The -l flag can be used to locate the slot associated with specified DeviceName, as listed by the lsdev command.

The lsslot command is used to list the connectors which are connection points for either physical entities like PCI adapters or logical entities like logical slots or logical host-Ethernet adapter ports. The command can list the following types of connectors:

  • pci: a physical connector

  • slot: a logical connector

  • phb: a logical connector

  • port: a logical connector

The -a and the -o flags will be ignored for the logical connectors. The lsslot command in the case of the logical connectors displays the logical entities that are currently assigned to the partition, depending upon the connector type specified. When there are multiple slots under a PHB, a logical slot entity can be associated with a logical slot connector. Otherwise, it can be associated with a logical PHB connector. You can run the lsslot -c slot command and the lsslot -c phb command to view all logical slot entities.

The output of the lsslot command is dependent on the ConnectorType and the platform on which the command is executed. The characteristics of a slot may include the following:

  • Slot name or identification

  • Connector type or slot description, for example, a PCI hot plug slot

  • Connected device name(s), for example, scsi0, ent0

When the PHBs are listed using the lsslot command, the Device(s) Connected column will display the ODM name of the PHB followed by the ODM names of the devices corresponding to the logical slots underneath the PHB, with all the ODM devices associated with each logical slot displayed on each

separate line under the ODM name of the PHB. In case there is no ODM name for the PHB, a blank line will be displayed.

플래그

플래그 설명
-a 쓸 수 있는(장치가 연결되지 않은) 핫 플러그 슬롯과 특성을 보여 줍니다. 커넥터 종류가 slot, phb면 무시합니다.
-c ConnectorType 그 커넥터 종류의 슬롯을 보여 줍니다. 핫 플러그 PCI 슬롯은 pci, 논리 슬롯은 slot, PHB는 phb입니다. 꼭 줘야 합니다.
-F Delimiter 출력을 나눌 한 글자. 머리글을 보여 주지 않고 열을 그 글자로 나눕니다.
-l DeviceName 그 장치가 연결된 슬롯의 특성을 보여 줍니다. DeviceName은 lsdev가 보여 주는 논리 장치 이름입니다.
-o 장치가 꽂힌 슬롯의 특성을 보여 줍니다. 커넥터 종류가 slot, phb면 무시합니다.
-s Slot 지정한 슬롯의 특성을 보여 줍니다. Slot 형식은 플랫폼과 커넥터 종류에 따라 다릅니다.
영어 원문
  • -a — Displays available hot plug slots and their characteristics. Available slots are those slots that do not have a hot plug device connected. This flag is ignored for connector types of slot and phb.
  • -c ConnectorType — Displays the slots of the specified ConnectorType. ConnectorType identifies the type of connector. For example, the ConnectorType for a hot plug PCI slot is pci, for logical slots, it is slot and for PHBs, it is phb. This flag is required.
  • -F Delimiter — Specifies a single character to delimit the output. The heading is not displayed and the columns are delimited by the Delimiter character.
  • -l DeviceName — Displays the characteristics of the slot to which DeviceName is associated. The DeviceName is the logical device name of the device connected to the slot, as listed by the lsdev command.
  • -o — Displays the characteristics of the occupied slots. Occupied slots have a hot plug device connected. This flag is ignored for connector types of slot and phb.
  • -s Slot — Displays characteristics for the specified Slot. The format of Slot is platform/connector_type dependent.

예제

  1. 빈 PCI 핫 플러그 슬롯을 봅니다.
bash
lsslot -c pci -a
Slot name Description Device(s) Connected
U0.4-P1-I1 PCI 64 bit, 66MHz, 3.3 volt slot empty
U0.4-P1-I2 PCI 64 bit, 66MHz, 3.3 volt slot empty
  1. SCSI 어댑터 scsi1이 꽂힌 PCI 핫 플러그 슬롯을 봅니다.
bash
lsslot -c pci -l scsi1
Slot name Description Device(s) Connected
U0.4-P1-I1 PCI 64 bit, 33MHz, 5 volt slot scsi1
  1. 모든 PCI 핫 플러그 슬롯을 봅니다. unknown은 장치가 꽂혀 있지만 ODM 사용자 정의 장치(CuDv)에 없는 것입니다. 새로 더하고 아직 구성하지 않았거나, rmdev -d로 지웠거나, 장치 소프트웨어 패키지가 설치되지 않았을 수 있습니다.
bash
lsslot -c pci
Slot name Description Device(s) Connected
U0.4-P1-I1 PCI 64 bit, 33MHz, 3.3 volt slot empty
U0.4-P1-I2 PCI 64 bit, 33MHz, 3.3 volt slot scsi0
U0.4-P1-I3 PCI 64 bit, 33MHz, 3.3 volt slot unknown
  1. 파티션에 할당된 PCI 호스트 브리지(PHB)를 봅니다. PHB마다 PHB의 ODM 이름(pci0) 아래에 논리 슬롯의 장치(pci2 scsi1)가 나옵니다. PHB가 할당됐지만 ODM 정보가 없으면 연결 장치 열이 비어 있습니다.
bash
lsslot -c phb
text
PHB Name   Description                Device(s) Connected
PHB 1      Logical PCI Host Bridge    pci0
                                      pci2 scsi1
PHB 2      Logical PCI Host Bridge    pci1
                                      pci3
                                      pci4 scsi2
  1. 파티션에 할당된 논리 HEA 포트를 봅니다. 할당됐지만 ODM 정보가 없으면 Unknown이 나옵니다.
bash
lsslot -c port
LHEA port name Description Device(s) Connected
Port 1 Logical HEA Port ent4
Port 2 Logical HEA Port ent7

자주 쓰는 형태:

bash
lsslot -c slot                     # LPAR의 논리 슬롯과 DRC 이름(DLPAR 작업 전 확인)
lsslot -c pci -o                   # 장치가 꽂힌 핫 플러그 슬롯
drslot -R -c pci -s U0.4-P1-I3     # 어댑터 교체(rmdev로 먼저 장치를 지움)
영어 원문
  1. To list the available PCI hot plug slots, enter:
lsslot -c pci -a

The system displays a message similar to the following:

Slot name Description Device(s) Connected
U0.4-P1-I1 PCI 64 bit, 66MHz, 3.3 volt slot empty
U0.4-P1-I2 PCI 64 bit, 66MHz, 3.3 volt slot empty
U0.4-P1-I3 PCI 64 bit, 66MHz, 3.3 volt slot empty
  1. To list the PCI hot plug slot associated with a scsi adapter named scsi1, enter:
lsslot -c pci -l scsi1

The system displays a message similar to the following:

Slot name Description Device(s) Connected
U0.4-P1-I1 PCI 64 bit, 33MHz, 5 volt slot scsi1
  1. To list all the PCI hot plug slots, enter:
lsslot -c pci

The system displays a message similar to the following:

Slot name Description Device(s) Connected
U0.4-P1-I1 PCI 64 bit, 33MHz, 3.3 volt slot empty
U0.4-P1-I2 PCI 64 bit, 33MHz, 3.3 volt slot scsi0
U0.4-P1-I3 PCI 64 bit, 33MHz, 3.3 volt slot unknown
U0.4-P1-I5 PCI 64 bit, 33MHz, 3.3 volt slot empty

Slots that have unknown in the Device(s) Connected column have a device connected to the slot, but the device isn't in the ODM customized device (CuDv) database. This can be due to the device having been newly added but not configured yet, deleted with the rmdev -d command, or the system may not be installed with the software packages associated with the device.

  1. To list all the PCI Host Bridges that are assigned to the partition, enter:
lsslot -c phb

This displays output similar to the following: PHB Name Description Device(s) Connected PHB 1 Logical PCI Host Bridge pci0

pci2 scsi1

PHB 2 Logical PCI Host Bridge pci1

pci3
pci4 scsi2
  1. In case the PCI Host Bridge is assigned to the partition but has no ODM data, column will show blank as shown in this example. For example, when you enter: lsslot -c phb

The output will look similar to the following: PHB Name Description Device(s) Connected PHB 4 Logical PCI Host Bridge PHB 5 Logical PCI Host Bridge

  1. To list all the logical host-Ethernet adapter-port devices that are assigned to the partition, enter: lsslot -c port
LHEA port name Description Device(s) Connected
Port 1 Logical HEA Port ent4
Port 2 Logical HEA Port ent7

When the logical host-Ethernet adapter port is assigned to the partition but has no ODM data, the column shows Unknown as shown in the example: lsslot -c port

LHEA port name Description Device(s) Connected
Port 4 Logical HEA Port Unknown
Port 5 Logical HEA Port Unknown

파일

파일 설명
/usr/sbin/lsslot lsslot 명령
영어 원문
  • /usr/sbin/lsslot — Contains the lsslot command.

Related reference:

  • lsdev Command

Related information:

  • drslot command
  • PCI hot plug management

리눅스(GNU)와 다른 점

리눅스에서는 핫 플러그 슬롯을 /sys/bus/pci/slots/(슬롯마다 power, adapter 파일)로 보고, lspci -vv의 Physical Slot 항목으로 장치와 슬롯을 맞춥니다. Power 리눅스 LPAR에서는 IBM의 lsslot(powerpc-utils 패키지)을 같은 방식으로 쓸 수 있습니다.