Subject: Fun with Device Locations
Audience: Administrators
Date: August 23, 2004
Here are a few commands to locate physical devices. These
commands are useful in a partitioned environment where locations
are virtual.
- lsdev -Cc adapter -s pci - list all adapter slots
- lsdev -p adapter - lists devices owned by an adapter
- lsdev -Cl adapter -F parent lists the parent adapter for a device (like a disk drive)
- lsdev -Cl adapter - virtual device location (for LPARs)
- lscfg -vl adapter - actual device location
So, for example, to locate the physical adapter connected to hdisk0:
- # Identify the parent adapter
lsdev -Cl hdisk0 -F parent
- # Locate the parent adapter
lscfg -vl parent
Bruce Spencer,
baspence@us.ibm.com
August 23, 2004