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
Example
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