How to discover devices from PAM