You can run either of the following commands to obtain the UDID of the device:
hdc shell bm get -u hdc shell bm get --udid