Insight Remote Support
cancel
Showing results for 
Search instead for 
Did you mean: 

How to "unsubscribe" event from IRSS to HP-UX

worasit
Occasional Advisor

How to "unsubscribe" event from IRSS to HP-UX

Since there are no "sunscribe" and "unsubscribe" in IRSS Admin. Please advice how manual subscribe/unsubscribe event to HP-UX managed node? thanks
5 REPLIES
Olivier Masse
Honored Contributor

Re: How to "unsubscribe" event from IRSS to HP-UX

WEBES eventually subscribes by itself, but it can take a while. From what I've seen until now, it does so as soon as it notices a new managed entity. If you restart the service, it will scan the whole list of entities, in alphabetical order, and try to subscribe on all the systems, 15 seconds apart or so. That can take hours depending on how many systems you have.

To unsubscribe, my guess is you'll have to use evweb on the HP-UX server. But as soon as WEBES is restarted, if your server is still configured as a managed entity, it will get resubscribed.
worasit
Occasional Advisor

Re: How to "unsubscribe" event from IRSS to HP-UX

Thanks Oliver, Can you advice evweb syntax on HP-UX to unsubscribe external, thanks.
worasit
Occasional Advisor

Re: How to "unsubscribe" event from IRSS to HP-UX

When I try "evweb" on HP-UX to unsubscribe IRSS Host Device, it cannot delete with return message:

# evweb subscribe -D -f -n HPSIM_simxx_0

Deletion of external subscriptions is not supported

Please advice...
Olivier Masse
Honored Contributor

Re: How to "unsubscribe" event from IRSS to HP-UX

To delete the HPSIM_* subscriptions, go on your CMS and type "mxwbemsub -r -n [hostname]"

As it seems that evweb doesn't support removing external subscriptions, if you have any WEBES subs I don't know how they can be removed without actually deleting the evweb DB.
Brad Cunningham
Trusted Contributor

Re: How to "unsubscribe" event from IRSS to HP-UX

At WBEM 02.07.02 the command cimsub was released. This command can be used on the local HPUX node to delete subscriptions.

The System Fault Manager (SFM) evweb command does not allow to remove external subscriptions created on a CMS.
WBEM version A.02.07.02 (March 2008) and later added the cimsub command:

"Indication Subscription Management (cimsub) - Provides a command line interface to manage CIM indication subscriptions on the local CIM Server. Refer to the man page for more information.
The new command would support enabling, disabling, or removing a subscription, display of selected subscription information, as well as removal and display of filters and handlers."


Use cimsub to list the subscriptions. Look for an entry with the hostname of the original CMS:
[formatted]
# cimsub -ls
root/cimv2 root/cimv2:HPSIM_cms_0 root/cimv2:CIM_IndicationHandlerCIMXML.HPSIM_cms Enabled

# cimsub -lf
root/cimv2:HPSIM_cms_0 "select * from HP_DeviceIndication"

# cimsub -lh
root/cimv2:CIM_IndicationHandlerCIMXML.HPSIM_cms https://ip:50004/cimom/listen1
[unformatted]
The name space is always â root/cimv2â . The second entry listed by cimsub -ls is the filter. Use this values for the -F option.
The first entry listed by cimsub -lh is the handler. Use this value for the -H option.
Then remove the subscription. Example:
[formatted]
# cimsub -ra -n root/cimv2 -F root/cimv2:HPSIM_cms_0 -H root/cimv2:CIM_IndicationHandlerCIMXML.HPSIM_cms
[unformatted]
Repeat for all subscriptions for the original CMS. Then verify with cimsub and evweb that the subscriptions were removed:
[formatted]
# cimsub -ls
# cimsub -lf
# cimsub -lh
# evweb subscribe -L -b external


Regards
brad