# cfgadm pci
For example, if the device is an Ethernet card with a configured IP interface, remove the IP interface.
# ipadm delete-ip ip-interface
For a PCIe adapter card, use the auto-configuration method, such as pressing the slot's Attention Button as defined by your platform guide.
Issue the following command:
# cfgadm -c unconfigure pci-device
# cfgadm pci
# cfgadm -c disconnect pci-device
Refer to your platform guide for more information.
# cfgadm pci
In this example, the card on as pcie4 is removed.
# cfgadm pci Ap_Id Type Receptacle Occupant Condition pcie1 unknown empty unconfigured unknown pcie2 unknown empty unconfigured unknown pcie3 unknown empty unconfigured unknown pcie4 etherne/hp connected configured ok pcie5 pci-pci/hp connected configured ok pcie6 unknown disconnected unconfigured unknown # ipadm delete-ip net1 # cfgadm -c unconfigure pcie4 # cfgadm pci Ap_Id Type Receptacle Occupant Condition pcie1 unknown empty unconfigured unknown pcie2 unknown empty unconfigured unknown pcie3 unknown empty unconfigured unknown pcie4 unknown connected unconfigured unknownThe device is unconfigured. pcie5 pci-pci/hp connected configured ok pcie6 unknown disconnected unconfigured unknown # cfgadm -c disconnect pcie4 # cfgadm pci Ap_Id Type Receptacle Occupant Condition pcie1 unknown empty unconfigured unknown pcie2 unknown empty unconfigured unknown pcie3 unknown empty unconfigured unknown pcie4 unknown disconnected unconfigured unknownPower is disconnected. pcie5 pci-pci/hp connected configured ok pcie6 unknown disconnected unconfigured unknown
After the device is removed, the procedure continues.
# cfgadm pci Ap_Id Type Receptacle Occupant Condition pcie1 unknown empty unconfigured unknown pcie2 unknown empty unconfigured unknown pcie3 unknown empty unconfigured unknown pcie4 unknown empty unconfigured unknownThe receptacle is empty. pcie5 pci-pci/hp connected configured ok pcie6 unknown disconnected unconfigured unknown