File: wbemcli.1.pre.in

package info (click to toggle)
sblim-wbemcli 1.6.3-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,080 kB
  • ctags: 2,944
  • sloc: cpp: 28,424; sh: 3,892; python: 2,094; makefile: 110
file content (601 lines) | stat: -rw-r--r-- 10,127 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
.ig
(C) Copyright IBM Corp. 2002, 2004, 2005, 2009

Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.

Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
..

.TH wbemcli 1 "June 2009" "wbemcli Version @PACKAGE_VERSION@"

.SH NAME
wbemcli \- independent command line CIM Client
.SH SYNOPSIS
.B wbemcli
.BR gc|gcd|dc|ec|ecn|gi|ci|mi|di|ei|ein|ai|ain|ri|rin|gp|sp|cm|cmx
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-cte]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
[\c
.BR \-noverify ]
[\c
.BR \-cacert \ file\fr]
[\c
.BR \-clientcert \ file\fr]
[\c
.BR \-clientkey \ file\fr]
[\c
.BI \-ac \ assocClass\fr]
[\c
.BI \-arc \ resultClass\fr]
[\c
.BI \-ar \ role\fr]
[\c
.BI -arr \ resultRole\fr]
.I objectPath
[\c
.I prop=value[,...]]
[\c
.I prop[,...]]
.SH Alternate formats:
(These symlinks are not installed by the Debian package, but
work if created manually.)
.LP
.B wbemgc\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
[\c
.I prop[,...]]
.LP
.B wbemgcd\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
.LP
.B wbemdc\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
.LP
.B wbemec\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-cte]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
[\c
.I prop[,...]]
.LP
.B wbemecn\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
.LP
.B wbemgi\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
[\c
.I prop[,...]]
.LP
.B wbemci\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
[\c
.I prop=value[,...]]
.LP
.B wbemmi\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
[\c
.I prop=value[,...]]
.LP
.B wbemdi\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
.LP
.B wbemei\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-cte]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
[\c
.I prop[,...]]
.LP
.B wbemein\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
.LP
.B wbemai\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-cte]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
[\c
.BI \-ac \ assocClass\fr]
[\c
.BI \-arc \ resultClass\fr]
[\c
.BI \-ar \ role\fr]
[\c
.BI -arr \ resultRole\fr]
.I objectPath
[\c
.I prop[,...]]
.LP
.B wbemain\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
[\c
.BI \-ac \ assocClass\fr]
[\c
.BI \-arc \ resultClass\fr]
[\c
.BI \-ar \ role\fr]
[\c
.BI -arr \ resultRole\fr]
.I objectPath
.LP
.B wbemri\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-cte]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
[\c
.BI \-arc \ resultClass\fr]
[\c
.BI \-ar \ role\fr]
.I objectPath
[\c
.I prop[,...]]
.LP
.B wbemrin\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
[\c
.BI \-arc \ resultClass\fr]
[\c
.BI \-ar \ role\fr]
.I objectPath
.LP
.B wbemgp\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
\c
.I prop
.LP
.B wbemsp\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
\c
.I prop=value
.LP
.B wbemcm\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
.I method[.param=value[,...]]
.LP
.B wbemcmx\t
[\c
.BR \-nl ]
[\c
.BR \-h ]
[\c
.BR \-t ]
[\c
.BR \-dx ]
[\c
.BR \-dr ]
.I objectPath
.I method[.param=value[,...]]
.SH DESCRIPTION
.I wbemcli
is a command line based CIM Client. It uses one of the
\fIgc|gcd|dc|ec|ecn|gi|ci|mi|di|ei|ein|ai|ain|ri|rin|gp|sp|cm|cmx\fP
operations and the
fully qualified path to the CIM Object to get to the host and
execute the specified operation.
This implementation is CIMOM library independent and can be used
with all WBEM compliant CIMOM implementations.
The \fIobjectPath\fP parameter is used to locate the CIM object and
has the following format:
.LP
.nf
.B \t<scheme>://[user:pwd@]<host>:<port>/<namespace[/..]>:<classname>[.<key=value[,..]>]
.fi
.TP
The \fIobjectPath\fP should be enclosed in single quotes so that double quoted
strings are perserved by the command line shell. Refer to the examples section.
.TP
The only scheme supported is http. Example:
.nf
.B \thttp://krz:xyz@localhost:5988/root/cimv2:rpm_package.name=glibc
.fi
.LP
The \fIprop=value[,...]\fP parameter is used to specify <Property>=<Value>
pairs for the ci, mi and sp operations.
Only one <Property>=<Value> pair must be specified for the sp operation.
.TP
Example:
.B stringProp="a string",booleanProp=true,numericProp=25
.TP
Arrays of property values are supported by specifying additional values
separated by commas
.TP
Example:
.B stringProp="a string","another string",numericProp=25,49,12
.LP
The \fIprop[,...]\fP parameter specifies the properties to be returned.
One \fIprop\fP must be specified for the gp operation. For other operations
this parameter is optional, if none are specified all properties will be
returned.
.TP
Example:
.B stringProp,booleanProp,numericProp
.LP
The \fImethod[.param=value[,...]\fP parameter is used to specify
<Parameter>=<Value> pairs for the cm operation.
.TP
Example:
.B Method2Execute.stringParam="a string",booleanParam=true,numericParam=25
.TP
Arrays of property values are supported by specifying additional values
separated by commas
.TP
Example:
.B Method2Execute.stringParam="a string","another string",numericParam=25,49,12
.SH OPERATIONS:
Supported operations are:
.TP
.B gc
\tget class
.TP
.B gcd
\tget class definition
.TP
.B dc
\tdelete class
.TP
.B ec
\tenumerate classes
.TP
.B ecn
\tenumerate class names
.TP
.B gi
\tget instance
.TP
.B ci
\tcreate instance
.TP
.B mi
\tmodify instance
.TP
.B di
\tdelete instance
.TP
.B ei
\tenumerate instances
.TP
.B ein
\tenumerate instance names
.TP
.B ai
\tenumerate association instances
.TP
.B ain
\tenumerate association instance names
.TP
.B ri
\tenumerate reference instances
.TP
.B rin
\tenumerate reference instance names
.TP
.B gp
\tget property
.TP
.B sp
\tset property
.TP
.B cm
\tcall method
.TP
.B cmx
\tcall method (return XML)
.SH OPTIONS
.TP
.B \-h
Print a help message
.TP
.B \-nl
Start a new line for every property returned
.TP
.B \-t
Append array ([]), reference (&) and key property (#) indicators to property names
.TP
.B \-cte
Enable support for chunked responses from CIMOM
.TP
.B \-v
Show version information
.TP
.B \-dx
Show XML messages payload as received from CIMOM
.TP
.B \-dr
Delineate references with { } pairs
.TP
.B \-noverify
Do not verify the server certificate for https URLs (useful for testing)
.TP
.B \-cacert
CA certificate file (required for https URLS unless \-noverify 
is specified)
.TP
.B \-clientcert
Client certificate file (if the CIM server requires client certificates)
.TP
.B \-clientkey
Client private key file (required if \-clientcert is specified)
.TP
.B \-ac
\tassociation class name (ai, ain only)
.TP
.B \-arc
\tresult class name (ai, ain, rin, ri only)
.TP
.B \-ar
\trole name (ai, ain, rin, ri only)
.TP
.B \-arr
\tresult role name (ai, ain only)
.SH LIBRARIES
.B wbemcli
requires either libghttp, libwww, or winhttp, depending on build options used.
.SH Example
To get all instances of rpm_packages, i.e. all installed rpm packages on
the local system, the following command can be used:
.IP "" 1
.B wbemcli ei 'http://localhost:5988/root/cimv2:rpm_package'
.PP
The get instance operation can be specified to get more information about
a certain package:
.IP "" 1
.B wbemcli gi 'http://localhost:5988/root/cimv2:rpm_package.name="glibc"'
.PP
The create instance (ci) operation can be called using the following format example.  Property values can also be specified/add to the sytax.
.IP "" 1
.B wbemcli ci 'http://localhost:5988/root/cimv2:TST_InstanceProperties.CreationClassName="TST_InstanceProperties",Id="Instance #2"' 'CreationClassName="TST_InstanceProperties",Id="Instance #2",Property_string2="This is instance#2",Property_uint8=250'
.IP "" 1
.PP
More command line examples can be found from the wbemcli/samples directory.  
.IP "" 1
.SH Host indirection support
The scheme and host specification in the object path can be replaced by an
arbitrary token that
will be used to locate the proper scheme and host specification
in ./wbemcli.ind
or any file specified via the WBEMCLI_IND environment variable.
The format of this file is as follows:
.TP
.B
	<token>: <scheme>://[user:pwd@]<host>:<port>
.TP
Assuming the following entry in ./wbemcli.ind:
.TP
.B
	myCimom: http://localhost:5988
.TP
The example in the previous section can then be specified as:
.IP "" 1
.B
	wbemcli gi 'myCimom/root/cimv2:rpm_package.name="glibc"'
.PP

.SH ENVIRONMENT
.TP
.B WBEMCLI_CURL_SSLVERSION
Specifies the SSL protocol that will be used.
Valid values are SSLv2, SSLv3, TLSv1, TLSv1.0 (TLSv1_0), TLSv1.1 (TLSv1_1)
or TLSv1.2 (TLSv1_2).
If this variable is not set, wbemcli will attempt to figure out the
remote SSL protocol version.
.SH FILES
.TP
.I @CACERT@
The default CA certificate file. Can be overridden with \-cacert.
.SH EXIT CODES
.IP 0
Normal termination.
.IP 16
Abnormal termination, see diagnostics printed to the standard error.
.SH AUTHOR
Adrian Schuur <schuur@de.ibm.com>
.SH BUGS
The SBLIM project maintains a mailing list to which you should direct all
questions regarding sfcb, sfcc, wbemcli, or any of the SBLIM providers.
To subscribe to this mailing list visit
.IP
http://lists.sourceforge.net/lists/listinfo/sblim-issues
.PP
The SBLIM Project Bug tracking page can be found at
.IP
http://sourceforge.net/tracker/?group_id=128809&atid=712784
.SH COPYRIGHT
(C) Copyright IBM Corp. 2002, 2004, 2005, 2009
.SH AVAILABILITY
wbemcli is a part of the SBLIM project. The most recent version is
available on the web at
.IP
http://sblim.sourceforge.net/
.SH "SEE ALSO"
.BR cimserver (1)