Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit da1632c53f7f614ce9db3174c76daaba72140cd5 Author: Peter Hatina phatina@redhat.com Date: Tue Oct 22 15:18:56 2013 +0200
doc, fix indication subscription
doc/src/indications.rst | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/doc/src/indications.rst b/doc/src/indications.rst index 75e9426..585f82e 100644 --- a/doc/src/indications.rst +++ b/doc/src/indications.rst @@ -14,17 +14,16 @@ How to subscribe to an indication, please, follow the next example:
.. code-block:: python
- > # When connecting to CIMOM, ensure, that the user account can create - > # objects in the namespace root/PG_InterOp > c = connect("host", "privileged_user", "password") - > # Create an indication - > c.root.PG_InterOp.create_indication( - ... FilterCreationClassName="CIM_IndicationFilter", - ... FilterSystemCreationClassName="CIM_ComputerSystem", - ... FilterSourceNamespace="root/cimv2", + > c.subscribe_indication( ... QueryLanguage="WQL", ... Query='SELECT * FROM CIM_InstModification', ... Name="cpu", + ... CreationNamespace="root/interop", + ... SubscriptionCreationClassName="CIM_IndicationSubscription", + ... FilterCreationClassName="CIM_IndicationFilter", + ... FilterSystemCreationClassName="CIM_ComputerSystem", + ... FilterSourceNamespace="root/cimv2", ... HandlerCreationClassName="CIM_IndicationHandlerCIMXML", ... HandlerSystemCreationClassName="CIM_ComputerSystem", ... # destination computer, where the indications will be delivered @@ -33,6 +32,9 @@ How to subscribe to an indication, please, follow the next example: LMIReturnValue(rval=True, rparams={}, errorstr="") >
+**NOTE:** Make sure, that you are logged-in with an account, which has write +privileges in the *root/interop* namespace. + In this state, we have a indication subscription created.
Auto-delete subscriptions
cura-tools-devel@lists.fedorahosted.org