Operations Manager HP OM Integration : contentmapping.xml (787 Views)
Reply
Regular Advisor
sanjit_asc
Posts: 209
Registered: ‎03-15-2005
Message 1 of 5 (787 Views)
Accepted Solution

Operations Manager HP OM Integration : contentmapping.xml

Can somebody explain ?

 

We integrateed HPOMW with BSM 9.12 and wan't created our own content packs. We read the Operations Manager i Extensibility Guide and found the section with the mapping files.

There is still some clarification needed regarding the contentmapping.xml File :

 

 <?xml version="1.0" encoding="UTF-8" ?>

- <Mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../schemas/mapping.xsd">
- <!--
 CONFIGURE THE CIs THAT DEFINES THE CONTEXT FOR THE MAPPING 
  -->
- <Rules>
- <Rule name="Filter DBSPI SQL Server Service Elements">
- <Condition>
- <And>
- <Equals>
  <OMType />
  <Value>mssql_instance</Value>
  </Equals>
- <Exists>
- <DependencyCI relationType="hosted_on">
  <True />
  </DependencyCI>
  </Exists>
  </And>
  </Condition>
- <MapTo>
  <Context>DBSPIMSSQL</Context>
  </MapTo>
  </Rule>
  </Rules>
  </Mapping>
 
Can somebody explain what is a context here in terms of RTSM/uCMDB ? It is not a  Ci Type, but what then ?
 
SAme question here :
 
<?xml version="1.0" encoding="UTF-8" ?>
- <Mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../schemas/mapping.xsd">
- <Rules Context="DBSPIMSSQL">
- <Rule name="Map DBSPI MSSQL Server Instance">
- <Condition>
- <Equals>
  <OMType />
  <Value>mssql_instance</Value>
  </Equals>
  </Condition>
- <MapTo>
- <CMDBType>
  <Value>sqlserver</Value>
  </CMDBType>
  </MapTo>
  </Rule>
 
What is sqlserver here ?
HP Expert
Dmitry Shevchenko
Posts: 4,819
Registered: ‎01-30-2008
Message 2 of 5 (783 Views)

Re: Operations Manager HP OM Integration : contentmapping.xml

The first rule defines which context (some internal term) mssql_instance (element reported by SQL Server SPI) belongs to. The second rule defines the actual mapping between mssql_instance and sqlserver (CIT in RTSM representing MS SQL Server).

Regular Advisor
sanjit_asc
Posts: 209
Registered: ‎03-15-2005
Message 3 of 5 (779 Views)

Re: Operations Manager HP OM Integration : contentmapping.xml

Thanks a lot !! If we decide to create our own Sync Packs, how do we know which context we have to define ?

Can we get this information from the RTSm DataModel  ?

HP Expert
Dmitry Shevchenko
Posts: 4,819
Registered: ‎01-30-2008
Message 4 of 5 (777 Views)

Re: Operations Manager HP OM Integration : contentmapping.xml

If you decide to create your own toposync package you need to read "Populating the Run-time Service Model" (about 60 pages) in the OMi Extensibility guide. This should answer your questions.

Regular Advisor
sanjit_asc
Posts: 209
Registered: ‎03-15-2005
Message 5 of 5 (775 Views)

Re: Operations Manager HP OM Integration : contentmapping.xml

I already this. Rereading  it answered all my questions after going through the HPOprExc Example. Thanks !!

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.