PREIN
/bin/sh
if [ $1 -gt 1 ]
then
/usr/share/sblim-gather/provider-register.sh -t pegasus -d \
-r /usr/share/sblim-gather/Linux_IPProtocolEndpointMetric.registration /usr/share/sblim-gather/Linux_LocalFileSystemMetric.registration /usr/share/sblim-gather/Linux_Metric.registration /usr/share/sblim-gather/Linux_NetworkPortMetric.registration /usr/share/sblim-gather/Linux_OperatingSystemMetric.registration /usr/share/sblim-gather/Linux_ProcessorMetric.registration /usr/share/sblim-gather/Linux_UnixProcessMetric.registration -m /usr/share/sblim-gather/Linux_Metric.mof /usr/share/sblim-gather/Linux_IPProtocolEndpointMetric.mof /usr/share/sblim-gather/Linux_LocalFileSystemMetric.mof /usr/share/sblim-gather/Linux_NetworkPortMetric.mof /usr/share/sblim-gather/Linux_OperatingSystemMetric.mof /usr/share/sblim-gather/Linux_ProcessorMetric.mof /usr/share/sblim-gather/Linux_UnixProcessMetric.mof > /dev/null 2>&1 || :;
/usr/share/sblim-gather/provider-register.sh -t pegasus -d -n root/interop \
-r /usr/share/sblim-gather/Linux_MetricProfile.registration -m /usr/share/sblim-gather/Linux_MetricProfile.mof > /dev/null 2>&1 || :;
# don't let registration failure when server not running fail upgrade!
fi
PREUN
/bin/sh
# Deregister only if not upgrading
if [ $1 -eq 0 ]
then
/usr/share/sblim-gather/provider-register.sh -t pegasus -d \
-r /usr/share/sblim-gather/Linux_IPProtocolEndpointMetric.registration /usr/share/sblim-gather/Linux_LocalFileSystemMetric.registration /usr/share/sblim-gather/Linux_Metric.registration /usr/share/sblim-gather/Linux_NetworkPortMetric.registration /usr/share/sblim-gather/Linux_OperatingSystemMetric.registration /usr/share/sblim-gather/Linux_ProcessorMetric.registration /usr/share/sblim-gather/Linux_UnixProcessMetric.registration -m /usr/share/sblim-gather/Linux_Metric.mof /usr/share/sblim-gather/Linux_IPProtocolEndpointMetric.mof /usr/share/sblim-gather/Linux_LocalFileSystemMetric.mof /usr/share/sblim-gather/Linux_NetworkPortMetric.mof /usr/share/sblim-gather/Linux_OperatingSystemMetric.mof /usr/share/sblim-gather/Linux_ProcessorMetric.mof /usr/share/sblim-gather/Linux_UnixProcessMetric.mof > /dev/null 2>&1 || :;
/usr/share/sblim-gather/provider-register.sh -t pegasus -d -n root/interop \
-r /usr/share/sblim-gather/Linux_MetricProfile.registration -m /usr/share/sblim-gather/Linux_MetricProfile.mof > /dev/null 2>&1 || :;
# don't let registration failure when server not running fail erase!
fi
POSTIN
/bin/sh
/sbin/ldconfig
if [ $1 -ge 1 ]
then
/usr/share/sblim-gather/provider-register.sh -t pegasus \
-r /usr/share/sblim-gather/Linux_IPProtocolEndpointMetric.registration /usr/share/sblim-gather/Linux_LocalFileSystemMetric.registration /usr/share/sblim-gather/Linux_Metric.registration /usr/share/sblim-gather/Linux_NetworkPortMetric.registration /usr/share/sblim-gather/Linux_OperatingSystemMetric.registration /usr/share/sblim-gather/Linux_ProcessorMetric.registration /usr/share/sblim-gather/Linux_UnixProcessMetric.registration -m /usr/share/sblim-gather/Linux_Metric.mof /usr/share/sblim-gather/Linux_IPProtocolEndpointMetric.mof /usr/share/sblim-gather/Linux_LocalFileSystemMetric.mof /usr/share/sblim-gather/Linux_NetworkPortMetric.mof /usr/share/sblim-gather/Linux_OperatingSystemMetric.mof /usr/share/sblim-gather/Linux_ProcessorMetric.mof /usr/share/sblim-gather/Linux_UnixProcessMetric.mof > /dev/null 2>&1 || :;
/usr/share/sblim-gather/provider-register.sh -t pegasus -n root/interop \
-r /usr/share/sblim-gather/Linux_MetricProfile.registration -m /usr/share/sblim-gather/Linux_MetricProfile.mof > /dev/null 2>&1 || :;
# don't let registration failure when server not running fail install!
fi
POSTUN
/bin/sh
/sbin/ldconfig