Configure & Administer USB Devices in Solaris



Share this article :

1. Lists the status of all USB devices on the system.

# cfgadm
Ap_Id       Type          Receptacle   Occupant    Condition
usb0/1      USB-hub       connected    configured    ok
usb0/2      unknown       empty        unconfigured  ok
usb0/1.1    USB-storage   connected    configured    ok
usb0/1.2    unknown       empty        unconfigured  ok
usb0/1.3    unknown       empty        unconfigured  ok
usb0/1.4    USB-device    connected    configured    ok

2. Lists the status of a port with no device plugged in.

# cfgadm -l usb0/1.3
Ap_Id        Type         Receptacle  Occupant     Condition
usb0/1.3     unknown      empty       unconfigured ok

3. Lists the status of the same port after physically plugging in a device that configures without problems

# cfgadm -l usb0/1.3
Ap_Id       Type       Receptacle   Occupant    Condition
usb0/1.3    USB-hub    connected    configured  ok

4. Unconfiguring an existing USB device

# cfgadm -c unconfigure usb0/1.3
Unconfigure the device: /devices/pci@0,0/pci8086,7112@7,2/hub@2:2.3
This operation suspends activity on the USB device
Continue (yes/no)?
# cfgadm -l usb0/1.3
Ap_Id        Type       Receptacle   Occupant     Condition
usb0/1.3     unknown    connected    unconfigured ok

5. Unconfiguring and logically  disconnecting an  existing  USB device.

# cfgadm -c disconnect usb0/1.3
Disconnect the device: /devices/pci@0,0/pci8086,7112@7,2/hub@2:2.3
This operation suspends activity on the USB device
Continue (yes/no)?
# cfgadm -l usb0/1.3
Ap_Id           Type        Receptacle       Occupant       Condition
usb0/1.3      unknown        disconnected   unconfigured    ok

Additional note:
A disconnect implies that cfgadm does an unconfigure first. The receptacle status now shows disconnected, even though the device is still physically connected. In this case, a physical hotplug or using the cfgadm -c configure on the ap_id brings it back on-line.

6. Configuring a previously unconfigured USB device.

# cfgadm -yc configure usb0/1.3
# cfgadm -l usb0/1.3
Ap_Id        Type         Receptacle   Occupant    Condition
usb0/1.3     unknown      connected    configured  ok

7. Resetting a USB device.

# cfgadm -x usb_reset usb0/1.3
Reset the device: /devices/pci@0,0/pci8086,7112@7,2/hub@2:2.3
This operation suspends activity on the USB device
Continue (yes/no)?

8. Displaying detailed information about a USB device.

# cfgadm -lv  usb0/1.5
Ap_Id               Receptacle   Occupant     Condition  Information
When          Type       Busy     Phys_Id
usb0/1.5     connected    configured    ok       Mfg:"Io
mega"    Product:"USB Zip 250"  NConfigs:1  Config:0 : Default
# cfgadm -l -s "cols=ap_id:info" usb0/1.5
Ap_Id                   Information
usb0/1.5               Mfg:"Iomega"  Product:"USB Zip 250"
NConfigs:1  Config:0 : Default

Related posts

Clear Faults in ALOM
Check Chasis Serial Number in Solaris
Determine Solaris System Bit Count
Bypass Solaris Timed Out Waiting for NIS to Come Up
© 2017 ITsiti. All Rights Reserved
Powered by KEEM