Solved How to have fixed node for any device (not disk)

I have learned to assign label could get fixed node for disk.

I am curious is there similar way to get fixed node for other devices?

I have one UPS which offer power supply to FreeBSD 11. The UPS monitor service is running in FreeBSD well.

The node is being monitored: /dev/ugen0.5.

A potential problem is that once somebody plug in USB hub or similar device and restart, the UPS USB port will be changed to another ugen number. For example /dev/ugen0.7.

In that case the UPS monitoring will be failed.

is there a way (like disk label) to assign fixed "label" to USB device, then I could use that fixed label for monitoring service.
 
Back
Top