Uninstalling IBM Spectrum LSF RTM

Instructions to uninstall the IBM Spectrum LSF RTM 10.2 packages and older versions of RTM.

About this task

To uninstall Platform RTM (version 9.1.4 and newer) and IBM Spectrum LSF RTM.

Procedure

  1. Run the following shell script:

    #!/bin/sh

  2. Stop related RTM services.

    For svcname in httpd, crond, lsfpollerd, licpollerd, rtmclientd, and advocate; enter:

    /sbin/service $svcname stop;

  3. Remove all rpm packages with the name prefixed by "rtm".

    rpm -ev `rpm -qa | grep -E '^rtm'`

  4. Remove php-json, cherrypy, and rrdtool by uncommenting the following line:

    #rpm -ev php-json python-simplejson python-cherrypy rrdtool

  5. Drop the cacti database:

    mysql -u root -e "drop database cacti;"

  6. Remove related directories:

    rm -rf /var/lib/mysql/cacti

    rm -rf /var/log/rtm.*.log

    rm -rf /opt/advocate /opt/cacti /opt/flexlm /opt/ioncube /opt/rtm

  7. Start the services stopped at the beginning.

    For svcname in httpd and crond; enter:

    /sbin/service $svcname start;

Example

The following is the complete uninstall script for RTM:
cat uninstall.sh
#!/bin/sh

#Stop the related services
for svcname in httpd crond lsfpollerd licpollerd advocate; do
/sbin/service $svcname stop;
done

#Remove all rpm packages with the name prefixed by "rtm"
rpm -ev `rpm -qa | grep -E '^rtm'`
#To remove the php-json, cherrypy, rrdtool by uncommenting the following line
#rpm -ev php-json python-simplejson python-cherrypy rrdtool
#Drop database cacti
mysql -u root -e "drop database cacti;"
#Remove related directories
rm -rf /var/lib/mysql/cacti
rm -rf /var/log/rtm.*.log
rm -rf /opt/advocate /opt/cacti /opt/flexlm /opt/ioncube /opt/rtm

#Start the services stopped at the beginning
for svcname in httpd crond; do
/sbin/service $svcname start;
done