cimsub(1)
π cimsub(1) π
okay bestie, gather round, because this is the manual page for cimsub and it is lowkey a whole lifestyle. it's a section 1 command, it lives in your terminal, and it is about to become your main character.
β¨ NAME β¨
cimsub β list, enable, disable, remove or create CIM indication subscriptions
πΈ SYNOPSIS πΈ
okay so here's the vibe, in the exact shape you gotta type it:
cimsub -l s|f|h [-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|h|a [-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]|
[-M mailto [-C mailcc] -S mailsubject]|
[-T snmptargethost [-P snmpportnumber] -V snmpversion] [-U
snmpsecurityname] [-E snmpengineid]]
cimsub -c s [-n namespace] -F [fnamespace:]filtername -H
[hnamespace:][hclassname.]handlername
cimsub --help
cimsub --version
π¦ DESCRIPTION π¦
so basically, the cimsub command hands you a command line interface for managing CIM indication subscriptions on the local CIM Server. that's the whole job. that's the assignment. π
here's the tea on the five forms, in order:
- the first form of
cimsublists all or selected indication subscriptions, filters, or handlers, and displays the requested information about the instance(s). - the second form of
cimsubenables the specified subscription, i.e. the subscription instance is modified to set the value of theSubscriptionStateproperty toEnabled. When a subscription is enabled, the CIM Server attempts to process the subscription if at least one provider is available to serve the subscription. periodt. - the third form of
cimsubdisables the specified subscription, i.e. the subscription instance is modified to set the value of theSubscriptionStateproperty toDisabled. 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. she's on do-not-disturb, fr fr. - the fourth form of
cimsubremoves 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. π«Ά (no orphan energy allowed) - the fifth form of
cimsubcommand 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). new instance just dropped β¨
π Options π
the cimsub command recognizes the following options:
-lβ List and display information about all or selected indication subscriptions (s), filters (f), or handlers (h). It is an error to specify the-Foption with-lh. It is an error to specify the-Hoption with-lf. With the-lfor-lhoption,fnamespaceorhnamespacetakes precedence over the-nnamespace option if both are specified.-eβ Enable the specified subscription (set theSubscriptionStatetoEnabled).-dβ Disable the specified subscription (set theSubscriptionStatetoDisabled).-rβ Remove the specified subscription (s), filter (f), handler (h), or subscription and its referenced filter and handler (a) (delete the instance(s) from the repository). The-Fand-Hoptions are required with-rsor-ra. It is an error to specify the-Foption with-rh. It is an error to specify the-Hoption with-rf. With the-rfor-rhoption,fnamespaceorhnamespacetakes precedence over the-nnamespace option if both are specified.-cβ Create the specified subscription (s), filter (f) or handler (h). The-Ffilter and-Hhandler options are required with-cs. The Filtername and-QQuery are required with-cf. The Handler Name is required with-ch. With the-cfor-choption,fnamespaceorhnamespacetakes precedence over the-nnamespace option if both are specified.-vβ Include verbose information in the information displayed for each listed instance. she's giving detail, and we're obsessed. π₯-nnamespace β Specify the namespace. For the-lforms of the command, if no namespace is specified, instances in all namespaces are listed. For all other forms of the command, if no namespace is specified, the command operates on an instance in the namespaceroot/PG_InterOp.-F[fnamespace:]filternameβ Specify the Filter Name. Omission of the filter namespace specifies that it is the same as that of the subscription.-H[hnamespace:][classname.]handlernameβ Specify the Handler Name. Omission of the handler namespace specifies that it is the same as that of the subscription. Omission of the handler classname specifies that it isCIM_ListenerDestinationCIMXML.-Qβ Specify the Query Expression for the Filter.-Lβ Specify the Query Language for the Filter.-Nβ To Use SourceNamespaces property, Specify multiple SourceNamespaces with coma separated or append comma to the single SourceNamespace. By default SourceNamespace property is populated if the single SourceNamespace is specified.-Dβ Specify Destination of aCIM_IndicationHandlerCIMXMLHandler. Required option forCIM_IndicationHandlerCIMXMLorCIM_ListenerDestinationCIMXMLHandler.-Mβ Specify Mailto of aPG_ListenerDestinationEmailHandler.-Cβ Specify Mailcc of aPG_ListenerDestinationEmailHandler.-Sβ Specify Subject of aPG_ListenerDestinationEmailHandler.-Tβ Specify Target Host ofPG_IndicationHandlerSNMPMapperHandler. Required option for SNMPMapper handler.-Uβ Specify Security Name ofPG_IndicationHandlerSNMPMapperHandler.-Pβ Specify Port Number of aPG_IndicationHandlerSNMPMapperHandler. (default162)-Vβ Specify SNMPVersion of aPG_IndicationHandlerSNMPMapperHandler.2: SNMPv1 Trap3: SNMPv2C Trap4: SNMPv2C Inform5: SNMPv3 Trap6: SNMPv3 Inform- Required option for SNMPMapper Handler
-Eβ Specify Engine ID of aPG_IndicationHandlerSNMPMapperHandler.--helpβ Display command usage information.--versionβ Display the CIM Server version.
π EXIT STATUS π
When an error occurs, an error message is written to stderr and an error value is returned. The following return values are returned:
0β Successful completion1β General error2β Connection failed3β Connection timed out4β Access was denied5β Namespace does not exist6β Object could not be found7β Operation is not supported
π USAGE NOTES π
The cimsub command requires the CIM Server to be running. like, no server, no slay. that's the vibe check. π§
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. bestie. read that twice. the delete is real and the regret is forever. π
πΈ EXAMPLES πΈ
okay bestie, this is the part you actually came for β real commands, real vibes, copy-paste energy β¨ Every single one below works against your local CIM Server unless it says otherwise, and yes, the flags are exactly the ones from the sections above, no cap.
List all indication subscriptions in all namespaces on the local CIM Server:
cimsub -ls
List all indication subscriptions referencing the Filter with Name TestFilter in all namespaces on the local CIM Server:
cimsub -ls -F TestFilter
List all indication subscriptions referencing the CIM_ListenerDestinationCIMXML Handler with Name TestHandler in all namespaces on the local CIM Server:
cimsub -ls -H TestHandler
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):
cimsub -ls -v -n root/cimv2
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):
cimsub -ls -v -n root/PG_InterOp -F TestFilter -H TestHandler
Display information about the Filter with Name TestFilter in the root/cimv2 namespace (verbose listing output):
cimsub -lf -v -F root/cimv2:TestFilter
List all handlers in all namespaces on the local CIM Server:
cimsub -lh
Enable the subscription referencing Filter with Name TestFilter and referencing CIM_ListenerDestinationCIMXML Handler with Name TestHandler (all in namespace root/PG_InterOp):
cimsub -e -F TestFilter -H TestHandler
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:
cimsub -d -n root/cimv2 -F test1/cimv2:TestFilter -H
test2/cimv2:PG_ListenerDestinationSystemLog.TestHandler
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):
cimsub -ra -n root/cimv2 -F TestFilter -H TestHandler
π«Ά that -ra is doing a lot of heavy lifting there β it's out here deleting the filter and handler too, but only if nothing else is still holding onto them. Just so you know what you're signing up for, bestie.
Create filter with Name filteraa with the Query select * from IndicationStressTestClass with SourceNamespaces test/TestProvider and test/testIndSrcNS1.
cimsub -c f filteraa -Q select * from IndicationStressTestClass
-N test/TestProvider,test/testIndSrcNS1
Create handler with Name handler01 and Destination /Pegasus_IndicationStressTestConsumer.
cimsub -c h handler01 -D /Pegasus_IndicationStressTestConsumer
Create Subscription with referencing Filter with Name TestFilter, and referencing CIM_ListenerDestinationCIMXML Handler with Name TestHandler
cimsub -c s -F filteraa -H handler01
and that's the whole tour, no notes π you went from "what even is an indication subscription" to creating filters, handlers and subscriptions like it's nothing. main character energy fr fr.
π SEE ALSO π
cimserver(1)cimconfig(1M)
okay that's a wrap on this lil manual page π this was cimsub(1), and if you're scrolling to the very bottom, that footer is literally just cimsub(1) β the section name, holding it down as the source/version-and-date line, iconic of it honestly. go forth and subscribe to things responsibly, bestie πβ¨
π¦ where this page comes from
- centos-stream 10: tog-pegasus 2:2.14.1-79.el10 Β· MIT
- centos-stream 9: tog-pegasus 2:2.14.1-68.el9 Β· MIT
- fedora 43: tog-pegasus 2:2.14.1-86.fc43 Β· MIT
- fedora 44: tog-pegasus 2:2.14.1-89.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms