diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/admin/account/usage.rst | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/admin/account/usage.rst b/doc/admin/account/usage.rst index f8a5e89..6d55851 100644 --- a/doc/admin/account/usage.rst +++ b/doc/admin/account/usage.rst @@ -205,13 +205,15 @@ The following example creates filter, handler and subscription (lmi shell do it :: # Notify when a user is created - c.root.interop.create_indication( + c.subscribe_indication( FilterCreationClassName="CIM_IndicationFilter", FilterSystemCreationClassName="CIM_ComputerSystem", FilterSourceNamespace="root/cimv2", - QueryLanguage="WQL", + QueryLanguage="DMTF:CQL", Query='SELECT * FROM LMI_AccountInstanceCreationIndication WHERE SOURCEINSTANCE ISA LMI_Account', Name="account_creation", + CreationNamespace="root/interop", + SubscriptionCreationClassName="CIM_IndicationSubscription", HandlerCreationClassName="CIM_IndicationHandlerCIMXML", HandlerSystemCreationClassName="CIM_ComputerSystem", Destination="http://192.168.122.1:5988" # this is the destination computer, where all the indications will be delivered @@ -225,13 +227,15 @@ Client can be notified when instance is deleted. The same rules like in `Creatio :: # Notify when a user is deleted - c.root.interop.create_indication( + c.subscribe_indication( FilterCreationClassName="CIM_IndicationFilter", FilterSystemCreationClassName="CIM_ComputerSystem", FilterSourceNamespace="root/cimv2", - QueryLanguage="WQL", + QueryLanguage="DMTF:CQL", Query='SELECT * FROM LMI_AccountInstanceDeletionIndication WHERE SOURCEINSTANCE ISA LMI_Account', - Name="account_creation", + Name="account_deletion", + CreationNamespace="root/interop", + SubscriptionCreationClassName="CIM_IndicationSubscription", HandlerCreationClassName="CIM_IndicationHandlerCIMXML", HandlerSystemCreationClassName="CIM_ComputerSystem", Destination="http://192.168.122.1:5988" # this is the destination computer, where all the indications will be delivered |