Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "COSMOS UG Running the Example"

(Get Data Managers Registered at the Broker)
 
(5 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
== Outline ==
 
== Outline ==
  
 +
Please use the content from this wiki page: [[COSMOS_DEMO_i11]]
  
 
+
<!--
  
  
Line 60: Line 61:
 
Updated SML MDR config file successfully.
 
Updated SML MDR config file successfully.
 
</pre>
 
</pre>
 +
=== Configuring the Web Console===
 +
* Download the dojo toolkit indicated in the requirements section of the download page.
 +
* Unzip the dojo toolkit under <tomat>/webapps/COSMOSUI
 +
* Download the BIRT runtime indicated in the requirements section of the download page.
 +
* Unzip the BIRT runtime to a temporary folder.
 +
* Copy the contents of the <birt-runtime-dir>\WebViewerExample to <tomat>/webapps/COSMOSReportViewer.  Make sure you don't overwrite any files during this step.
  
 
== Running the Program ==
 
== Running the Program ==
Line 138: Line 145:
 
=== Executing CMDBf Queries ===
 
=== Executing CMDBf Queries ===
 
==== Using a command line client ====
 
==== Using a command line client ====
 +
* We can execute CMDBf queries using the command line client. 
 +
* At the COSMOS prompt, type "smlmdr query" followed by the path to the query file to run a query against the SML MDR.  If you are querying the Example MDR, the command is instead "examplemdr".
 +
* The query files for the SML MDR are located in <cosmos-demo>\cosmos-client\cmdbf-queries\SMLMDR.
 +
* The query files for the Example MDR are located in <cosmos-demo>\cosmos-client\cmdbf-queries\ExampleMDR.
 +
* When prompted for the EPR for the SML MDR or the Example MDR, you can copy the EPR from the output of the "broker getDataManagers" command you did in the previous section. 
 +
 +
<pre>
 +
COSMOS> smlmdr query _______\cosmos-demo\cosmos-client\cmdbf-queries\SMLMDR\testInstanceIdQuery.txt
 +
EPR of SML Repository MDR (terminate by an empty line):
 +
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
 +
    <wsa:Address>http://____:8080/cosmos/services/org.eclipse.cosmos.rm.sml.mdr.impl.SmlRepositoryMdr</wsa:Address>
 +
    <wsa:ReferenceParameters>
 +
        <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">SML_REPO_ID</muse-wsa:ResourceId>
 +
    </wsa:ReferenceParameters>
 +
</wsa:EndpointReference>
 +
 +
Query response:
 +
<?xml version="1.0" encoding="UTF-8"?><dyn:queryResponseType xmlns:dyn="http://www.eclipse.org/cosmos/mdrquery">
 +
        <dyn:queryResponseType xmlns="http://cmdbf.org/schema/1-0-0/datamodel">
 +
                <nodes templateId="cableTemplate">
 +
........ Content omitted .........
 +
                </nodes>
 +
            </dyn:queryResponseType>
 +
        </dyn:queryResponseType>
 +
</pre>
 +
* You can invoke queries on the Example MDR using the command line client. 
 +
<pre>
 +
COSMOS> examplemdr query _______\cosmos-demo\cosmos-client\cmdbf-queries\ExampleMDR\all-students.txt
 +
EPR of SML Repository MDR (terminate by an empty line):
 +
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
 +
    <wsa:Address>http://_____:8080/examplemdr/services/org.eclipse.cosmos.example.mdr.ExampleMdr</wsa:Address>
 +
    <wsa:ReferenceParameters>
 +
        <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">Example</muse-wsa:ResourceId>
 +
    </wsa:ReferenceParameters>
 +
</wsa:EndpointReference>
 +
 +
Query response:
 +
<?xml version="1.0" encoding="UTF-8"?><dyn:queryResponseType xmlns:dyn="http://www.eclipse.org/cosmos/mdrquery">
 +
            <dyn:queryResponseType xmlns="http://cmdbf.org/schema/1-0-0/datamodel">
 +
                <nodes templateId="items">
 +
........ Content omitted .........
 +
                </nodes>
 +
            </dyn:queryResponseType>
 +
        </dyn:queryResponseType>
 +
</pre>
 +
 
==== Using the COSMOS Web User Interface ====
 
==== Using the COSMOS Web User Interface ====
=== Register configuration items with a federating CMDB===
+
=== Register Configuration Items with a Federating CMDB===
 +
 
 +
=== Querying the Federating CMDB ===
 +
 
 
=== Collect Log Events from the Logging Data Manager ===
 
=== Collect Log Events from the Logging Data Manager ===
 
==== Using a command line client ====
 
==== Using a command line client ====
Line 146: Line 202:
 
==== Using a command line client ====
 
==== Using a command line client ====
 
==== Using the COSMOS Web User Interface ====
 
==== Using the COSMOS Web User Interface ====
 
+
-->
  
 
[[Category:COSMOS_Users_Guide]]
 
[[Category:COSMOS_Users_Guide]]

Latest revision as of 16:00, 4 June 2008

COSMOS Wiki > COSMOS Document Plan > COSMOS Manual Guide

COSMOS User's Guide Running the Example section

Category: User's Guide

Owner Hubert Leung
Bug # 219120
Due dates Schedule

Outline

Please use the content from this wiki page: COSMOS_DEMO_i11

Back to the top