cimsub (1) - Linux Manuals
cimsub: list, enable, disable,remove or create CIM indication subscriptions
NAME
cimsub - list, enable, disable,remove or create CIM indication subscriptionsSYNOPSIS
cimsub -l s|f|fB-v][-n namespace][-F [fnamespace:]filtername][-H [hnamespace:][hclassname.]handlername]
cimsub -e [-n namespace] -F [fnamespace:]filtername -H [hnamespace:][hclassname.]handlername
cimsub -d [-n namespace] -F [fnamespace:]filtername -H [hnamespace:][hclassname.]handlername
cimsub -r s|f|fBa [-n namespace][-F [fnamespace:]filtername][-H [hnamespace:][hclassname.]handlername]
cimsub -c f [fnamespace:]filtername -Q query [-L querylanguage] [-N sourcenamespace(s)]
cimsub -c h [hnamespace:][hclassname.]handlername [-D destination]|
cimsub -c s [-n namespace] -F [fnamespace:]filtername -H [hnamespace:][hclassname.]handlername
cimsub --help
cimsub --version
The first form of
cimsub
lists all or selected indication subscriptions, filters, or handlers, and displays the requested information about the instance(s).
The second form of
cimsub
enables the specified subscription, i.e. the subscription instance is modified to set the value of the SubscriptionState property to Enabled. When a subscription is enabled, the CIM Server attempts to process the subscription if at least one provider is available to serve the subscription.
The third form of
cimsub
disables the specified subscription, i.e. the subscription instance is modified to set the value of the SubscriptionState property to Disabled. When a subscription is disabled, the CIM Server does not attempt to process the subscription, regardless of whether any providers are available to serve the subscription.
The fourth form of
cimsub
removes the specified subscription, filter, handler, or subscription and its referenced filter and handler, i.e. each instance is deleted from the repository, and the CIM Server will no longer have any information about the instance(s). A filter or handler may not be removed if it is referenced by any other subscription.
The fifth form of
cimsub
command creates the specified Subscription, filter, or handler. i.e each instance is created into the repository and CIM Server will get the new information about the created Instance(s).
When an error occurs, an error message is written to stderr and an
error value is returned. The following return values are returned:
The
cimsub
command requires the CIM Server to be running.
If the enableSubscriptionsForNonprivilegedUsers configuration property is set to false, only a privileged user may list, enable, disable, remove or create a subscription, filter, or handler. If the enableSubscriptionsForNonprivilegedUsers configuration property is set to true, even a non privileged user or the instance creator may enable, disable, remove or create a subscription, filter or handler.
Caution should be used when specifying the -r option, since subscriptions, filters or handlers removed may not be easily re-created, and may not be re-created using this command.
List all indication subscriptions in all namespaces on the local CIM Server:
List all indication subscriptions referencing the Filter with Name 'TestFilter' in all namespaces on the local CIM Server:
List all indication subscriptions referencing the CIM_ListenerDestinationCIMXML Handler with Name 'TestHandler' in all namespaces on the local CIM Server:
List all indication subscriptions in the root/cimv2 namespace on the local CIM Server, including subscription state, filter query and handler destination (verbose listing output):
Display information about the subscription referencing Filter with Name 'TestFilter' and referencing CIM_ListenerDestinationCIMXML Handler with Name 'TestHandler' (all in namespace root/PG_InterOp), including subscription state, filter query and handler destination (verbose listing output):
Display information about the Filter with Name 'TestFilter' in the root/cimv2 namespace (verbose listing output):
List all handlers in all namespaces on the local CIM Server:
Enable the subscription referencing Filter with Name 'TestFilter' and referencing CIM_ListenerDestinationCIMXML Handler with Name 'TestHandler' (all in namespace root/PG_InterOp):
Disable the subscription in namespace root/cimv2, referencing Filter with Name 'TestFilter' in namespace test1/cimv2, and referencing PG_ListenerDestinationSystemLog Handler with Name 'TestHandler' in namespace test2/cimv2:
Remove the subscription referencing Filter with Name 'TestFilter', and referencing CIM_ListenerDestinationCIMXML Handler with Name 'TestHandler' (all in namespace root/cimv2), also removing the filter and handler instances (if not referenced by any other subscription):
Create filter with Name 'filteraa' with the Query 'select * from IndicationStressTestClass' with SourceNamespaces test/TestProvider and test/testIndSrcNS1.
Create handler with Name 'handler01' and Destination '/Pegasus_IndicationStressTestConsumer'.
Create Subscription with referencing Filter with Name 'TestFilter', and referencing CIM_ListenerDestinationCIMXML Handler with Name 'TestHandler'
DESCRIPTION
The
cimsub
command provides a command line interface to manage CIM indication subscriptions on the local CIM Server.
Options
The
cimsub
command recognizes the following options:
EXIT STATUS
USAGE NOTES
EXAMPLES