Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-1012143.1
Update Date:2009-09-23
Keywords:

Solution Type  Problem Resolution Sure

Solution  1012143.1 :   Is there a way to reset a Non-SunRay USB device without physically hotplugging?  


Related Items
  • Sun Blade 2000 Workstation
  •  
  • Sun Fire V240 Server
  •  
  • Sun Fire V250 Server
  •  
  • Sun Fire V440 Server
  •  
  • Sun Fire V480 Server
  •  
  • Sun Fire V60x Server
  •  
  • Sun Fire V65x Server
  •  
  • Sun Fire 280R Server
  •  
  • Sun Blade 150 Workstation
  •  
  • Sun Fire V210 Server
  •  
  • Sun Fire V890 Server
  •  
  • Sun Netra 440 Server
  •  
  • Sun Fire V880 Server
  •  
  • Sun Blade 1500 Workstation
  •  
  • Sun Blade 1000 Workstation
  •  
  • Sun Fire V490 Server
  •  
Related Categories
  • GCS>Sun Microsystems>Servers>x64 Servers
  •  

PreviouslyPublishedAs
216726


Symptoms
The reliability of my USB device has become very unstable. Sometimes it
works and sometimes it doesn't. Normally, physically hotplugging
(disconnect/connect)the device helps but this isn't always possible if you
are remote. Is there a way to simulate a hotplug session using CLI

Resolution
The premier command for administering a USB device under Solaris is
cfgadm(1M). This command is run as 'root' only.

To reset a USB device you first need to identify the location of the device
using cfgadm(1M). The output below shows sample locations of each USB
device on this particular USB topology tree. Note. USB topologies will
vary.
# cfgadm
Ap_Id                       Type         	Receptacle   	Occupant
Condition
usb0/4.5                    usb-hub      	connected    	configured  	ok
usb0/4.5.1                  usb-device   	connected    	configured  	ok
usb0/4.5.2                  usb-printer 	connected    	configured   	ok
usb0/4.5.3                  usb-mouse   	connected    	configured   	ok
usb0/4.5.4                  usb-device   	connected    	configured   	ok
usb0/4.5.5                  usb-storage  	connected    	configured   	ok
usb0/4.5.6                  usb-communi  	connected    	configured   	ok
usb0/4.5.7                  unknown      	empty        	unconfigured 	ok
usb0/4.6                    usb-storage  	connected    	configured   	ok
usb0/4.7                    usb-storage  	connected    	unconfigured 	ok
Resetting a USB Device Procedure.
===========================-
Command: 	cfgadm -x usb_reset -y <location>
-x <function>	Invoke hardware specific functions
-y <location>   Suppresses any  interactive  confirmation  and  assume that
the answer is yes.
From cfgadm output.
Steps to reset a USB device.
1.) Become Superuser (ROOT).
2.) Make sure device is not in use ( Ie. not printing ).
3.) Identify USB device location using cfgadm(1M).
4.) Reset device using cfgadm command.
5.) Confirm device is configured and connected using cfgadm.
Examples.
To reset the mouse in the above output.
# cfgadm -x usb_reset -y usb0/4.5.3
# cfgadm | grep usb0/4.5.3
usb0/4.5.3                  usb-mouse   	connected    	configured   	ok
#
To reset the printer in the above output.
# cfgadm -x usb_reset -y usb0/4.5.2
# cfgadm | grep usb0/4.5.2
usb0/4.5.2                  usb-printer 	connected    	configured   	ok
#


Product
Netra 240 Server
Sun Fire V880 Server
Sun Fire V65x Server
Sun Fire V60x Server
Sun Fire V480 Server
Sun Fire V440R Server
Sun Fire V440 Server
Sun Fire V250 Server
Sun Fire V240 Server
Sun Fire V210 Server
Sun Fire 280R Server

usb, cfgadm, hotplug, hotplugging, configure, CLI, session, physically, reset, device
Previously Published As
72820

Change History
Date: 2004-11-22
User Name: 25440
Action: Approved
Comment: Thanks for the clarification. Publishing.
Version: 4

Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback