How do I move the license data when migrating to V5.0?

Use the lmf issue command, make sure that you read the man page.

Before you do this it makes sense to take a backup of the lmf
license database, the easiest way to do this is to tar up /var/adm/lmf.
Suggest a Site