1 karl 1.1 We have modified the CIMClient code so that while keeping the current interfaces for the
2 Pegasus client, the user can choose to use wsman or cimxml interfaces.
3
4 CLI is one of the test tools for the CLient WSMAN translator. It now operates in two modes:
5
6 a. using cimxml adapter
7 b. using wsman adapter
8
9 Both use exactly the same standard Pegasu Client interface so that another
10 application should work normally with the client interface.
11
12 Note that to make this work we had to modify the pegasus CLient
13 functionality (src/Pegasus/Client) so we did that and put it into the wsm
14 src/Pegasus directory. This means we are committed to a particular
15 version of Pegasus (2.7) for the client to work.
16
17 Compiling wsm automatically compiles this new client library and overlays the Pegasus client.
18
19 This is the best we could do for the demo and should be considered
20 temporary functionality for the demo.
21
22 karl 1.1 In any case, within the CIMClient functionality we control use of wsm vs
23 the cimxml encoding for the client by the RUNTIME environment variable
24 WSM_USE_WSMAN. Set this to environment variable (ex set WSM_USE_WSMAN=1)
25 and the client uses wsman for instance calls. Clear it and it uses cimxml
26 for the same calls.
27
28 Note that we always use the cimxml interface to Pegasus for class calls (getClass, etc.).
29
30 SELECTION OF PORTS
31
32 Wheras originally there was only one address and port for the server, now
33 there is a single address but multiple ports. As delivered the CVS code
34 uses port 22222 for wsman and whatever Pegasus uses for the cimxml
35 interface (normally 5988)
36
37 You can modifly the default port for wsman through a variable in
38 src/wsm/common/defines.h before compiling.
39
40 That is the port we normally use to communicate when wsman is selected as
41 the protocol with WSM_USE_WSMAN.
42
43 karl 1.1 For the Demo, please try to stay with the standard ports.
44
45 NOTE: in the demo system, we were required to set the default port to 80
46 by Microsoft. So we modified the default port definition in defines.h in
47 the code in the test system at Colorado Springs.
48
49
50 It is easy to demonstrate if the apis are working in both modes simply by
51 running a cli command:
52
53 cli ei CIM_ManagedElement
54
55 export WSM_USE_WSMAN=1
56
57 cli ei CIM_ManagedElement
58
59 The results should be the same.
60
61
|