I'm trying to run fastboot oem get_identifier_token on Mac OS X Yosemite but I get stuck on "< waiting for device >":
➜ platform-tools ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
➜ platform-tools sudo ./fastboot oem get_identifier_token
< waiting for device >
I have enabled USB debugging
I have tried both sudo and no sudo on fastboot
I have tried restarting, changing USB ports (although they are just two on my Mac Book Pro Mid-2012).
The SDK is the latest one, downloaded today from http://developer.android.com/ together with Android Studio
I also tried downloading just fastboot-mac from HTC dev site, same happens there.
adbis recognizing your device then fastboot won't be able to communicate with it, because it is not running on the device's side. Try
adb reboot bootloaderbefore issuing the fastboot commands.