The best practice is to display information about the system devices before and after the actual hot-plugging action. You can first properly identify the bus or device to dynamically reconfigure, and then verify from the state of the bus or device that the reconfiguration completed successfully.
To display device information, use the cfgadm -l[a] command. You can choose to display only the attachment point information or include other information such as the controllers and attached devices.
The following examples show how to display SCSI device information.
Show the state and condition of attachment points on the system:
# cfgadm -l Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c3 scsi-sas connected configured unknown
Show the state and condition of controllers and attached devices:
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown