HP Systems Insight Manager 7.3 Installation and Configuration Guide for Linux

6 Uninstalling HP SIM
Uninstalling HP SIM from a Linux system
CAUTION: Removing HP SIM permanently deletes the information in the database unless you
back it up before removing the software.
Procedure 6 Removing HP SIM
1. Stop the HP SIM daemons:
/opt/mx/bin/mxstop
2. Verify that the daemons are no longer running:
ps -ef | grep mx
If any of the HP SIM daemons are running, record the PID and kill the process:
kill -9 pid
where pid is the PID of the daemon. For example,
kill -9 3456
3. Remove the HP SIM software:
NOTE: If a registered plug-in is installed and dependant on HP SIM. If any registered plug-ins
with dependencies on HP SIM are installed, uninstall them first.
rpm -qa | grep hpsim | xargs rpm -e
4. Stop hpsmdb:
For Red Hat:
/etc/rc.d/init.d/hpsmdb stop
For SUSE:
/etc/init.d/hpsmdb stop
5. Now remove the hpsmdb database:
rpm -qa | grep hpsmdb | xargs rpm -e
If any packages with dependencies on hpsmdb are installed, uninstall them first. Alternatively,
you can run rpm with the following options:
rpm -qa | grep postgresql | xargs rpm -e --nodeps
Run the following command to remove the HP SIM and PostgreSQL directories:
rm -rf /var/opt/mx /etc/opt/mx /opt/mx /var/opt/hpsmdb/opt/hpsmdb
6. Restart the system.
46 Uninstalling HP SIM