We have been tasked to write a test application for a raspberry pi IOT device running Raspian, one of the requirements for the application is to determine if the USB hub connected to the pi is working correctly due to the fact our supplier had to modify the pi by unsoldering and resoldering a connection to the pi for the USB hub.
Via Debian Linux CLI command, or via node (test app currently running in Node on the pi), what could we use to let us know if or when something/anything USB has been plugged into the USB ports and possibly which port was used.