id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,fix_version,see_also 817,Athinfo query for USB HIDs,jdreed,jdreed,"A common problem in the clusters is mice and keyboards walking off. It might be helpful to hotline if they could check remotely what was missing so they had the necessary components with them when they visited clusters. In our modern USB world, this is trivial. I propose an athinfo ""usb-hid"" query (I'd also be fine with a generic `lsusb`, but whatever). If we install python-usb in the clusters, this Python snippet should do what we want: {{{ #!/usr/bin/python # import usb protocols = { 1: 'keyboard', 2: 'mouse'} found = { 'keyboard' : 'no', 'mouse' : 'no' } for b in usb.busses(): for d in b.devices: i = d.configurations[0].interfaces[0][0] if i.interfaceClass == 3 and \ i.interfaceProtocol in protocols.keys(): found[protocols[i.interfaceProtocol]] = 'yes' print found }}}",enhancement,closed,normal,Natty Release,--,fixed,,,,