When the ESN of a device changes (for example, the subrack is replaced), the ESN in the license file is different from the new device ESN. As a result, the activated license enters the Trial state. You can run the display license command to view the Expired date field, which indicates the license expiration date. Then apply for and install the license file that matches the new device ESN before the license expiration date.
To check whether the ESN in the license file is the same as the actual device ESN, run the display esn to obtain the device ESN, run the display license verbose command to obtain the License file ESN value, and then compare the two ESNs.
If the license you want to install next time is a Demo license or a commercial license of which the ESN is different from the switch's ESN, the license cannot be installed. You can only install a commercial license of which the ESN is the same as the switch's ESN.