I Removing RUEI From Systems

This appendix describes the procedure for uninstalling RUEI from Reporter, Collector, and Processing Engine systems.

Do the following for each Reporter, Collector, and Processing Engine system unless indicated otherwise:

  1. Logon to required system as the RUEI_USER user, and clear all crontab entries by issuing the following command:

    echo "" | crontab
    
  2. Stop all processing on the Reporter and Processing Engine systems by issuing the following command as the RUEI_USER user:

    project -stop
    

    In the case of Collector systems, stop data collection by issuing the following command:

    appsensor stop wg
    
  3. Remove the installed RUEI RPMs by issuing the following command as the root user:

    rpm -qa | grep ^ux- | xargs rpm -e
    

    If parts of the installed RPMs were removed manually or corrupted, errors might be encountered in the above step. In this case, you should issue the following command:

    rpm -qa | grep ^ux- | xargs rpm -e --noscripts
    

    Note that part of the installation may remain after issuing the above command.

  4. On the Reporter system, unistall the php-oci8 module, Oracle database Instant client, PHP configuration, and SQLplus extension by issuing the following commands as the root user:

    rm /etc/php.d/ruei.ini
    rpm -e php-oci8-11gR2
    rpm -e oracle-instantclient11.2-sqlplus
    rpm -e oracle-instantclient11.2-basic
    
  5. Ensure that all RUEI daemons are deactivated by executing the following commands as the root user:

    . /etc/ruei.conf
    killall -u $RUEI_USER
    
  6. Remove all RUEI data files by executing the following commands at the root user:

    rm -rf $RUEI_HOME
    rm -rf $RUEI_DATA
    
  7. Remove each database instance by logging onto the required database server(s) as the oracle user, and executing the following commands:

    . /etc/ruei.conf
    . oraenv
    dbca -silent -deleteDatabase -sourceDB ${RUEI_DB_INST}
    

    Note that when prompted for the Oracle SID, you should specify the same value as that for the RUEI_DB_INST setting in the /etc/ruei.conf file.

  8. For Reporter and Collector systems, remove the Java Runtime Environment (JRE) by executing the following commands as the root user:

    rm /usr/java/jre1.7.0_09
    rm /usr/java/jre
    
  9. On the Reporter system, edit the /etc/sysconfig/httpd file, and remove the following line that loads the RUEI environment:

    source /etc/ruei.conf
    
  10. On the Reporter system, restore the original Zend Optimizer configuration file /etc/php.ini by executing the following commands as the root user:

    cd /etc/
    cp php.ini-zend_optimizer.bak php.ini
    

    Remove the Zend Optimizer installation directory by executing the following command:

    rm -rf /usr/local/Zend
    

    Restart the Apache web server using the following command:

    /etc/init.d/httpd restart
    
  11. Revert the changes made to user and group settings by executing the following commands as the root user:

    . /etc/ruei.conf
    userdel $RUEI_USER
    groupdel $RUEI_GROUP
    usermod -G apache apache
    
  12. Remove the RUEI configuration file /etc/ruei.conf using the following command as the root user:

    rm /etc/ruei.conf
    
  13. Note that during the installation procedure, you may have installed several additional RPMs. Which of these can safely be removed depends on the original Linux installation.

  14. Be aware that a database installation will remain on each database server. The procedure for uninstalling the Oracle database is fully described in the product documentation.