Installing licenses silently

Note: Micro Focus recommends that you use the Micro Focus License Administration tool to install the licenses. You may only need to install licenses silently in some specific scenarios - for example, as part of a silent installation when you are distributing COBOL server with your applications.

After the application installation is complete you can install the license silently by executing the following commands:

Windows

  • If you have access to the Internet and an authorization code, execute the following commands:

    For 32-bit Windows environments:

    start /wait "" "C:\Program Files\Common Files\SafeNet Sentinel\Sentinel RMS License Manager\WinNT\cesadmintool" -term activate AuthorizationCode

    For 64-bit Windows environments:

    start /wait "" "C:\Program Files (x86)\Common Files\SafeNet Sentinel\Sentinel RMS License Manager\WinNT\cesadmintool" -term activate AuthorizationCode
  • If you don't have access to the Internet but have a file from Micro Focus that contains the license string:

    For 32-bit Windows environments:

    start /wait "" "C:\Program Files\Common Files\SafeNet Sentinel\Sentinel RMS License Manager\WinNT\cesadmintool" -term install -f FileName

    For 64-bit Windows environments:

    start /wait "" "C:\Program Files (x86)\Common Files\SafeNet Sentinel\Sentinel RMS License Manager\WinNT\cesadmintool" -term install -f FileName

    where FileName is the name of the text file that contains all the license strings to be used.

UNIX

  • If you have access to the Internet and an authorization code, run the following as root:
    cd /var/microfocuslicensing/bin
    ./cesadmintool.sh -authorize AuthorizationCode
  • If you don't have access to the Internet but have a file from Micro Focus that contains the license string, run the following as root:
    cd /var/microfocuslicensing/bin
    ./cesadmintool.sh -install FileName

    where FileName is the name of the text file that contains all the license strings to be used.

Note: The cesadmintool.sh tool requires Java to be present on the machine. Java enables the tool to install the licenses without having to interrupt the running license daemons.

If there are any restrictions that prevent you from installing Java on your machine, you can run the following commands to manually install the license file:

cd /var/microfocuslicensing/bin 
./stopboth.sh 
cat /full-path-to/license-file.mflic >> lservrc.net 
./startboth.sh 

This procedure stops and restarts the daemons and helps avoid the requirement to install Java.