Removing the Rational License Server software from UNIX systems

Steps for removing Rational® License Server software from the server.

Before you remove the IBM Rational License Server software

Return the license keys to your IBM Rational account through the IBM Rational License Key Center, the online license management tool. For more information about moving or returning licenses, see Moving or removing license keys on a UNIX system server.

Removing the Rational License Server software

You have three options to shut down the license server. Try shutting down the license server using the first option. If that option does not work, proceed to the next option until the license server is shut down or you have used the last option.
  1. Use the script start_lmgrd_on_server located in the rational_dir/config directory. For the server variable, use the host name of the license server machine.
    cd /opt/rational/config
    ./start_lmgrd_on_server stop
  2. If the script start_lmgrd_on_server is not available, use the lmdown command. The lmdown command is installed in the rational_dir/base/cots/flexlm.version/platform directory.
    Note: You can use the lmdown command if it is on the command search path. When the command is not on the command search path, you receive an error from the shell indicating that the command is not found.
    rational_dir/base/cots/flexlm.version/platform/lmdown -c [port@host |licnse-file]

    Examples of the lmdown command using /opt/rational for rational-dir, 7.0f for version, and sun4_solaris2 for platform:

    # lmdown specifying port@host:

    /opt/rational/base/cots/flexlm.7.0f/sun4_solaris2/lmdown -c 27000@pluto

    # lmdown specifying the license file:

    /opt/rational/base/cots/flexlm.7.0f/sun4_solaris2/lmdown -c /opt/rational/config/rational.dat

  3. If the lmdown command does not work, use the UNIX system kill command. First, find the lmgrd process using the ps -e command. Then use the kill pid command. If kill pid does not work, use the kill -9 pid command.
    Attention: The kill -9 pid command leaves a lock file in /usr/tmp/lock* that you must remove.
    Example:

    % ps -e | grep lmgrd #

    Returns: 331 ? 0:15 lmgrd

    % kill 311 where 311 is the process ID of lmgrd.

    % ps -e | grep lmgrd #

    Returns: 331 ? 0:15 lmgrd

    Assuming the lmgrd process is still running:

    % kill -9 311

    To remove the lock and control files created by the kill -9 pid command:

    rm -fr /usr/tmp/lock* /usr/tmp/.flexlm

To remove the license server and utilities:
  1. Switch to directory:
    cd rational-dir/base/cots/flexlm.version/platform
  2. To delete the license server from one platform:
    rm -fr rational_dir/base/cots/flexlm.version/platform
  3. To delete the license server from all platforms:
    rm -fr rational_dir/base/cots/flexlm.version

    Examples using /opt/rational for rational-dir, 7.0f for version, and sun4_solaris2 for platform:

    One platform: rm -fr /opt/rational/base/cots/flexlm.7.0f/sun4_solaris2

    All platforms: rm -fr /opt/rational/base/cots/flexlm.7.0f

    All versions and platforms: rm -fr /opt/rational/base/cots/flexlm.*


Feedback