Generate a license .XML file on the support portal using a valid voucher ID and match against the switch base MAC address and serial number (type show sys-info command).
Copy .XML file to /intflash and then type load-license command from configuration mode. This will install the premier license. Type show license command to confirm license is in place and type save config.
On the portal the license files can be seen against the customer and switch type under assets. In the event of a replacement switch the license file can be edited with a new base MAC and serial number.