Return all device tokens or sample based on alias. Output to file