BMC Atrium Discovery Community Forum

forgot password?
   
 
ADDM 8.3 CMDB mapping for database instance
Posted: 31 January 2012 06:58 PM   [ Ignore ]  
Rank
Newbie
Total Posts:  6
Joined:  2012-01-31

The new 8.3 version discovers the database instance name, however the default CMDB mapping to the ‘Name’ field includes the db type prepended to the instance name (ex: Oracle Database xyztst). The instance name IS mapped to the ‘shortdescription’ field, however, we have a need to use the Name field consistenly across all CIs, so we need the instance name to map to the CMDB “Name’ field.


I found the tpl that specifies this, but not sure I want to change, or if it’s the right thing to do.  Anyone else encoutner this or can suggest how to handle?

exceprt from Oracle_OracleRDBMS_Extended.tpl (and 5 others for other db types)
...
      db := model.DatabaseDetail(key := “%oracle.key%/Ūtype%”,
                        name := “Ūtype% %instance%”,
...

Thank you

Profile
 
 
Posted: 01 February 2012 08:22 PM   [ Ignore ]   [ # 1 ]  
Rank
Newbie
Total Posts:  6
Joined:  2012-01-31

Apparently “Oracle_OracleRDBMS_Extended” ISNT where the name is getting set this way.

Does anyone know the tpl script where the CMDB “name” is getting set to ‘<dbtype> <instance>’
ex: “Oracle Database mydb”

Any help is appreciated.

[ Edited: 07 February 2012 04:19 PM by Tracy Thurston]
Profile
 
 
Posted: 08 February 2012 11:13 AM   [ Ignore ]   [ # 2 ]  
BMC ADDM Staff
RankRankRankRank
Administrator
Total Posts:  84
Joined:  2008-02-14

If you want to change the data that is synchronized into the CMDB, you need to change the CMDB syncmappings, rather than trying to change the data that’s stored in ADDM. The mapping you need to extend is CMDB.DatabaseDetail_Database.

Rather than editing the standard module, you should make an extension module. There isn’t an example that does exactly what you want, but take a look at the template_cmdb_hostname_override template that you can find in the “Pattern Templates” section of Patten Management. That does something similar to what you want for ComputerSystem CIs.

Profile
 
 
Posted: 10 February 2012 04:59 PM   [ Ignore ]   [ # 3 ]  
Rank
Newbie
Total Posts:  6
Joined:  2012-01-31

Duncan - thanks so much for the tip!  Still need to test it out but I think that’ll do the trick, thanks again.

Profile