Stop the HP Systems Insight Manager daemons:
/opt/mx/bin/mxstop
Verify that the daemons are no longer running:
ps -ef | grep mx
If any of the HP Systems Insight Manager 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
Remove the HP Systems Insight Manager software:
rpm -qa | grep hpsim | xargs rpm -e
(Optional) If other applications are not using PostgreSQL, you can remove it:
Verify that the daemons are no longer running:
ps –ef | grep post
If any of the Postmaster/Postgres daemons are running, record the PID and kill all the process:
kill -9 pid
where pid is the PID of the daemon. For example,
kill -9 3456
Now remove the PostgreSQL database:
rpm -qa | grep postgresql | xargs rpm -e
To remove the HP SIM and PostgreSQL folder:
rm -rf /var/opt/mx /etc/opt/mx /opt/mx /var/lib/pgsql /usr/lib/pgsql /etc/sysconfig/postgresql
Restart the system.