If you're using an appliance, the license shouldn't get moved over. At a technical level, it will work, but at a license agreement level, the license is only valid for the exact hardware. The replacement box comes with a replacement license which you should use. I think the faulty box may need to be returned before the replacement device is added to your User Center account.
Using the replacement box's license will involve either activating it from inside the device's web UI (I don't know of a command-line way to do this) or generating it as either a local or central license in your User Center account, then applying it with the directions provided when you generate the license.