Created On: 11 February 2011
Problem:
There is no uninstall script to remove the Server Express development product. How is this done?
Resolution:
Depending upon the version of the Server Express (SE) products, the default path to these subfolders could be different and also some of the earlier versions of Server Express does not have ESLM and MFDS components.
- Logon as the ES Admin user and stop any running Enterprise Servers either via the ES Admin webpage or the "casstop" command:
casstop -rESNAME or casstop /rESNAME where ESNAME is the name of the enterprise /to stop.
- Logon as root and stop the License Manager, the "mflm_manager" process, by running the command:
./lmfgetpv k
The "lmfgetpv" command is located in the "mflmf" directory (part of the License Management Facility installation).
The default "mflmf" directory for the LMF installation varies between versions of Server Express:
From SE 1.0 to SE 2.0.11 SP1, the default "mflmf" directory is
AIX: /usr/lib/mflmf
Other systems: /opt/lib/mflmf
From SE 2.2 to 4.0, the default "mflmf" directory is
AIX: /usr/lib/mflmf
HP-UX: /opt/cobol/mflmf
Other systems: /opt/lib/mflmf
From SE 4.0 SP1 onwards, the default "mflmf" directory is /opt/microfocus/mflmf (for all systems)
- Delete the Development License Management Facility, see above for the default "mflmf" directory.
- Cd to the $COBDIR/bin directory and run the command to stop the Enterprise Server License Manager (eslm): ./eslmfgetpv k
Or stop the "eslm" process by using the "ps -ef | grep eslm" command to locate this process and use the "kill -9" command to remove this process. Use the "kill -9" command with caution and only if you are unable to stop the Enterprise Server License Manager using the "eslmfgetpv k" command.
Note: the COBDIR environment variable is set to the location of the "cobol" installation, see below the default "cobol" directory, unless the user customized the installation path.
- Shut down MFDS using the 'Shut Down' link on the left hand side menu of the Enterprise Server Admin webpage. Or stop the "mfds" process by using the "ps -ef | grep mfds" command to locate this process and use the "kill -9" command to remove this process. Again, use the "kill -9" command with caution and only if you are unable to stop the MFDS vis the 'Shut Down' link.
- Delete the $COBDIR product directory and its subdirectories.
The default directory for the "cobol" installation varies between versions of Server Express:
From SE 1.0 to SE 2.2 SP1, the default COBOL directory is
AIX: /usr/lpp/cobol
Other systems: /opt/lib/cobol
From SE 4.0 onwards, the default COBOL directory is /opt/microfocus/cobol (for all systems)
- Delete the Enterprise Server regions and log directories (default: /var/mfcobol/es and
/var/mfcobol/logs)
- Delete the apptrack licensing system sub-directory (/var/mfaslmf) and the "aslmfsem" file located in
/var directory
- Delete any startup scripts created to start up mfds or eslm at boot time from the /etc directory
(e.g. the "mfdsrcscript" and "mfeslmrcscript" files)
- Remove any references to these startup scripts in the "inittab" file located in the /etc directory:
E.g.
mF:2345:wait:sh /etc/mflmrcscript > /dev/null 2>&1
mFds:2345:wait:sh /etc/mfdsrcscript > /dev/null 2>&1
mFes:2345:wait:sh /etc/mfeslmrcscript > /dev/null 2>&1
- Remove any references to the COBOL installation from the PATH and LD_LIBRARY_PATH/LIBPATH/SHLIB_PATH environment variables in any users scripts or ".profile",
as well as any COBOL environment variables such as COBCPY, COBDATA, COBDIR, COBIDY, COBMODE, COBPATH, etc
- Remove the ES Admin user and group, if these are specifically setup for ES use only.
- Logon as the ES Admin user and stop any running Enterprise Servers either via the ES Admin webpage or the "casstop" command:
casstop -rESNAME or casstop /rESNAME where ESNAME is the name of the enterprise /to stop.
- Logon as root and stop the License Manager, the "mflm_manager" process, by running the command:
./lmfgetpv k
The "lmfgetpv" command is located in the "mflmf" directory (part of the License Management Facility installation).
The default "mflmf" directory for the LMF installation varies between versions of Server Express:
From SE 1.0 to SE 2.0.11 SP1, the default "mflmf" directory is
AIX: /usr/lib/mflmf
Other systems: /opt/lib/mflmf
From SE 2.2 to 4.0, the default "mflmf" directory is
AIX: /usr/lib/mflmf
HP-UX: /opt/cobol/mflmf
Other systems: /opt/lib/mflmf
From SE 4.0 SP1 onwards, the default "mflmf" directory is /opt/microfocus/mflmf (for all systems)
- Delete the Development License Management Facility, see above for the default "mflmf" directory.
- Cd to the $COBDIR/bin directory and run the command to stop the Enterprise Server License Manager (eslm): ./eslmfgetpv k
Or stop the "eslm" process by using the "ps -ef | grep eslm" command to locate this process and use the "kill -9" command to remove this process. Use the "kill -9" command with caution and only if you are unable to stop the Enterprise Server License Manager using the "eslmfgetpv k" command.
Note: the COBDIR environment variable is set to the location of the "cobol" installation, see below the default "cobol" directory, unless the user customized the installation path.
- Shut down MFDS using the 'Shut Down' link on the left hand side menu of the Enterprise Server Admin webpage. Or stop the "mfds" process by using the "ps -ef | grep mfds" command to locate this process and use the "kill -9" command to remove this process. Again, use the "kill -9" command with caution and only if you are unable to stop the MFDS vis the 'Shut Down' link.
- Delete the $COBDIR product directory and its subdirectories.
The default directory for the "cobol" installation varies between versions of Server Express:
From SE 1.0 to SE 2.2 SP1, the default COBOL directory is
AIX: /usr/lpp/cobol
Other systems: /opt/lib/cobol
From SE 4.0 onwards, the default COBOL directory is /opt/microfocus/cobol (for all systems)
- Delete the Enterprise Server regions and log directories (default: /var/mfcobol/es and
/var/mfcobol/logs)
- Delete the apptrack licensing system sub-directory (/var/mfaslmf) and the "aslmfsem" file located in
/var directory
- Delete any startup scripts created to start up mfds or eslm at boot time from the /etc directory
(e.g. the "mfdsrcscript" and "mfeslmrcscript" files)
- Remove any references to these startup scripts in the "inittab" file located in the /etc directory:
E.g.
mF:2345:wait:sh /etc/mflmrcscript > /dev/null 2>&1
mFds:2345:wait:sh /etc/mfdsrcscript > /dev/null 2>&1
mFes:2345:wait:sh /etc/mfeslmrcscript > /dev/null 2>&1
- Remove any references to the COBOL installation from the PATH and LD_LIBRARY_PATH/LIBPATH/SHLIB_PATH environment variables in any users scripts or ".profile",
as well as any COBOL environment variables such as COBCPY, COBDATA, COBDIR, COBIDY, COBMODE, COBPATH, etc
- Remove the ES Admin user and group, if these are specifically setup for ES use only.
Old KB# 33654



