(file) Return to cimsub.1 CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm / manLinux / man1.Z

File: [Pegasus] / pegasus / rpm / manLinux / man1.Z / cimsub.1 (download)
Revision: 1.4, Mon Jun 11 09:48:34 2012 UTC (12 years ago) by ajay.rao
Branch: MAIN
CVS Tags: preBug9676, postBug9676, TASK-TASK_PEP362_RestfulService_branch-root, TASK-TASK_PEP362_RestfulService_branch-merged_out_from_trunk, TASK-TASK_PEP362_RestfulService_branch-merged_in_to_trunk, TASK-TASK_PEP362_RestfulService_branch-merged_in_from_branch, TASK-TASK_PEP362_RestfulService_branch-branch, TASK-PEP362_RestfulService-root, TASK-PEP362_RestfulService-merged_out_to_branch, TASK-PEP362_RestfulService-merged_out_from_trunk, TASK-PEP362_RestfulService-merged_in_to_trunk, TASK-PEP362_RestfulService-merged_in_from_branch, TASK-PEP362_RestfulService-branch, TASK-PEP317_pullop-merged_out_from_trunk, TASK-PEP317_pullop-merged_in_to_trunk, RELEASE_2_14_1, RELEASE_2_14_0-RC2, RELEASE_2_14_0-RC1, RELEASE_2_14_0, RELEASE_2_14-root, RELEASE_2_14-branch, RELEASE_2_13_0-RC2, RELEASE_2_13_0-RC1, RELEASE_2_13_0-FC, RELEASE_2_13_0, RELEASE_2_13-root, RELEASE_2_13-branch, RELEASE_2_12_1-RC1, RELEASE_2_12_1, RELEASE_2_12_0-RC1, RELEASE_2_12_0-FC, RELEASE_2_12_0, RELEASE_2_12-root, RELEASE_2_12-branch, HEAD, CIMRS_WORK_20130824
Changes since 1.3: +75 -4 lines
BUG#: 9235
TITLE: Man page update for the cimsub command

DESCRIPTION:

.\" .TA c \" lowercase initial letter of .TH name
.TH "cimsub" "1" "" "" ""
.SH "NAME"
cimsub \- list, enable, disable,remove or create CIM indication subscriptions
.SH "SYNOPSIS"

\fBcimsub\fP \fB\-l\fP \fBs\fP|\fBf\fP|\f\h\fP [\fB\-v\fP][\fB\-n\fP namespace][\fB\-F\fP [fnamespace:]filtername][\fB\-H\fP [hnamespace:][hclassname.]handlername]

\fBcimsub\fP \fB\-e\fP [\fB\-n\fP namespace] \fB\-F\fP [fnamespace:]filtername \fB\-H\fP [hnamespace:][hclassname.]handlername

\fBcimsub\fP \fB\-d\fP [\fB\-n\fP namespace] \fB\-F\fP [fnamespace:]filtername \fB\-H\fP [hnamespace:][hclassname.]handlername

\fBcimsub\fP \fB\-r\fP \fBs\fP|\fBf\fP|\f\h\fP|\fBa\fP [\fB\-n\fP namespace][\fB\-F\fP [fnamespace:]filtername][\fB\-H\fP [hnamespace:][hclassname.]handlername]

\fBcimsub\fP \fB\-c\fP \fBf\fP [fnamespace:]filtername \fB\-Q\fP query [\fB\-L\fP querylanguage] [\fB\-N\fP sourcenamespace(s)]

\fBcimsub\fP \fB\-c\fP \fBh\fP [hnamespace:][hclassname.]handlername [\fB\-D\fP destination]|
            [\fB\-M\fP mailto [\fB\-C\fP mailcc] \fB\-S\fP mailsubject]|
            [\fB\-T\fP snmptargethost [\fB\-P\fP snmpportnumber] \fB\-V\fP snmpversion] [\fB\-U\fP snmpsecurityname] [\fB\-E\fP snmpengineid]]

\fBcimsub\fP \fB\-c\fP \fBs\fP [\fB\-n\fP namespace] \fB\-F\fP [fnamespace:]filtername \fB\-H\fP [hnamespace:][hclassname.]handlername


\fBcimsub\fP \fB\-\-help\fP

\fBcimsub\fP \fB\-\-version\fP

.SH "DESCRIPTION"
The 
.B cimsub 
command provides a command line interface to manage CIM indication subscriptions on the local CIM Server.
.PP 
The first form of 
.B cimsub 
lists all or selected indication subscriptions, filters, or handlers, and displays the requested information about the instance(s). 
.PP 
The second form of 
.B 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. 
.PP 
The third form of 
.B 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. 
.PP 
The fourth form of 
.B 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.
.PP
The fifth form of
.B 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). 

.SS Options
The 
.B cimsub 
command recognizes the following options:
.RS
.TP 15
.B \-l
List and display information about all or selected indication subscriptions ("s"), filters ("f"), or handlers ("h"). It is an error to specify the -F option with -lh. It is an error to specify the -H option with -lf. With the -lf or -lh option, fnamespace or hnamespace takes precedence over the -n namespace option if both are specified. 
.TP 
.B \-e
Enable the specified subscription (set the SubscriptionState to Enabled).
.TP 
.B \-d
Disable the specified subscription (set the SubscriptionState to Disabled).
.TP 
.B \-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 -F and -H options are required with -rs or -ra. It is an error to specify the -F option with -rh. It is an error to specify the -H option with -rf. With the -rf or -rh option, fnamespace or hnamespace takes precedence over the -n namespace option if both are specified. 
.TP 
.B \-c
Create the specified subscription ("s"), filter ("f") or  handler ("h"). The -F filter and -H handler options are required with -cs. The Filtername and -Q Query are required with -cf. The Handler Name is required with -ch.With the -cf or -ch option, fnamespace or hnamespace takes precedence over the -n namespace option if both are specified.
.TP  
.B \-v
Include verbose information in the information displayed for each listed instance.
.TP 
.B \-n \fInamespace\fP
Specify the namespace. For the -l forms 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 namespace root/PG_InterOp. 
.TP 
.B \-F \fI[fnamespace:]filtername\fP
Specify the Filter Name. Omission of the filter namespace specifies that it is the same as that of the subscription. 
.TP 
.B \-H \fI[hnamespace:][classname.]handlername\fP
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 is CIM_ListenerDestinationCIMXML. 
.TP
.B \-Q
Specify the Query Expression for the Filter.
.TP
.B \-L
Specify the Query Language for the Filter.
.TP
.B \-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.
.TP
.B \-D        
Specify Destination of a CIM_IndicationHandlerCIMXML Handler. Required option for CIM_IndicationHandlerCIMXML or CIM_ListenerDestinationCIMXML Handler.
.TP
.B \-M      
Specify Mailto of a  PG_ListenerDestinationEmail Handler.
.TP
.B \-C     
Specify Mailcc of a PG_ListenerDestinationEmail Handler.
.TP
.B \-S     
Specify Subject of a PG_ListenerDestinationEmail Handler.
.TP
.B \-T 
Specify Target Host of PG_IndicationHandlerSNMPMapper Handler. Required option for SNMPMapper handler.
.TP
.B \-U       
Specify Security Name of PG_IndicationHandlerSNMPMapper Handler.
.TP
.B \-P      
Specify Port Number of a PG_IndicationHandlerSNMPMapper Handler.(default 162)
.TP
.B \-V   
Specify SNMPVersion of a PG_IndicationHandlerSNMPMapper Handler.
                   2 : SNMPv1 Trap
                   3 : SNMPv2C Trap
                   4 : SNMPv2C Inform
                   5 : SNMPv3 Trap
                   6 : SNMPv3 Inform
                   Required option for SNMPMapper Handler
.TP
.B \-E  
Specify Engine ID of a PG_IndicationHandlerSNMPMapper Handler.
.TP 
.B \-\-help
Display command usage information.
.TP 
.B \-\-version
Display the CIM Server version.
.SH "EXIT STATUS"
.PP 
When an error occurs, an error message is written to stderr and an
error value is returned.  The following return values are returned:
.RS
.TP 
.B 0
Successful completion
.PD 0
.TP 
.B 1
General error
.PD 0
.TP 
.B 2
Connection failed
.PD 0
.TP 
.B 3
Connection timed out
.PD 0
.TP 
.B 4
Access was denied
.PD 0
.TP 
.B 5
Namespace does not exist
.PD 0
.TP 
.B 6
Object could not be found
.PD 0
.TP 
.B 7
Operation is not supported  
.PD
.RE
.SH "USAGE NOTES"
.PP 
The 
.B cimsub 
command requires the CIM Server to be running.
.PP 
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.
.PP
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. 
.SH "EXAMPLES "
.PP 
List all indication subscriptions in all namespaces on the local CIM Server: 
.IP 
.B cimsub \-ls
.PP 
List all indication subscriptions referencing the Filter with Name 'TestFilter' in all namespaces on the local CIM Server: 
.IP 
.B cimsub \-ls \-F TestFilter
.PP
List all indication subscriptions referencing the CIM_ListenerDestinationCIMXML Handler with Name 'TestHandler' in all namespaces on the local CIM Server: 
.IP
.B cimsub \-ls \-H TestHandler
.PP 
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): 
.IP 
.B cimsub \-ls \-v \-n root/cimv2
.PP
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): 
.IP 
.B cimsub \-ls \-v \-n root/PG_InterOp \-F TestFilter \-H TestHandler 
.PP 
Display information about the Filter with Name 'TestFilter' in the root/cimv2 namespace (verbose listing output): 
.IP 
.B cimsub \-lf \-v \-F root/cimv2:TestFilter
.PP
List all handlers in all namespaces on the local CIM Server:
.IP 
.B cimsub \-lh
.PP 
Enable the subscription referencing Filter with Name 'TestFilter' and referencing CIM_ListenerDestinationCIMXML Handler with Name 'TestHandler' (all in namespace root/PG_InterOp): 
.IP 
.B cimsub \-e \-F TestFilter \-H TestHandler
.PP
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:
.IP 
.B cimsub \-d \-n root/cimv2 \-F test1/cimv2:TestFilter \-H test2/cimv2:PG_ListenerDestinationSystemLog.TestHandler
.PP
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): 
.IP
.B cimsub \-ra \-n root/cimv2 \-F TestFilter \-H TestHandler
.PP
Create filter with Name 'filteraa' with the Query 'select * from IndicationStressTestClass' with SourceNamespaces test/TestProvider and test/testIndSrcNS1.
.IP
.B cimsub \-c f filteraa \-Q "select * from IndicationStressTestClass" \-N test/TestProvider,test/testIndSrcNS1
.PP
Create handler with Name 'handler01' and Destination '/Pegasus_IndicationStressTestConsumer'.
.IP
.B cimsub \-c h handler01 \-D /Pegasus_IndicationStressTestConsumer
.PP
Create Subscription with referencing Filter with Name 'TestFilter', and referencing CIM_ListenerDestinationCIMXML Handler with Name 'TestHandler' 
.IP
.B cimsub \-c s \-F filteraa \-H handler01 
.SH "SEE ALSO"
.PP 
cimserver(1), cimconfig(1M).

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2