answered 2019-11-21 05:07:57 -0500
Interesting. Psse has some api to obtain data (such as gen, line) per subsystem basis. After that, it is easy to count the number of devices by looking at length of the array.