Open TawfikDaim opened 1 month ago
create file: find_usb.sh
for sysdevpath in $(find /sys/bus/usb/devices/usb/ -name dev); do ( syspath="${sysdevpath%/dev}" devname="$(udevadm info -q name -p $syspath)" [[ "$devname" == "bus/" ]] && exit eval "$(udevadm info -q property --export -p $syspath)" [[ -z "$ID_SERIAL" ]] && exit echo "/dev/$devname - $ID_SERIAL" ) done
sudo chmod +x find_usb.sh
run the file by typing: ./find_usb.sh
results: /dev/ttyUSB0 - Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001 /dev/sdb1 - Generic_Flash_Disk_0745592A-0:0 /dev/ttyACM0 - ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221134927 /dev/sda2 - AI_Mass_Storage-0:0
This is a complex process but is repeatable and hence documenting the steps I did today,
Before I started I have 2 different servers: 1) 10.195.1.51 is an ubuntu bare metal server that has docker installed on it with containers for:
2) 192.168.1.14, is a QNAP hardware without any containers
Steps: