HP Asset Maager Software versio: 5.20 Service Asset ad Cofiguratio Maagemet Documet Release Date: 01 October 2009 Software Release Date: October 2009
Legal Notices Copyright Notices Copyright 1994-2009 Hewlett-Packard Developmet Compay, L.P. Restricted Rights Leged Cofidetial computer software. Valid licese from HP required for possessio, use or copyig. Cosistet with FAR 12.211 ad 12.212, Commercial Computer Software, Computer Software Documetatio, ad Techical Data for Commercial Items are licesed to the U.S. Govermet uder vedor's stadard commercial licese. Warraty The oly warraties for HP products ad services are set forth i the express warraty statemets accompayig such products ad services. Nothig herei should be costrued as costitutig a additioal warraty. HP shall ot be liable for techical or editorial errors or omissios cotaied herei. The iformatio cotaied herei is subject to chage without otice. For iformatio about third-party ad/or ope source licese agreemets, or to view ope source code, use oe of the followig ways: I the ThirdParty directory of the istallatio CD-ROM I the directories i which the biary files of the third-party ad/or ope source tools are located after istallatio of Asset Maager Through the compoet's url idicated i the Ope Source ad Third-Party Software Licese Agreemets guide Trademark Notices Adobe, Adobe logo, Acrobat ad Acrobat Logo are trademarks of Adobe Systems Icorporated. Corel ad Corel logo are trademarks or registered trademarks of Corel Corporatio or Corel Corporatio Limited. Java is a US trademark of Su Microsystems, Ic. Microsoft, Widows, Widows NT, Widows XP, Widows Mobile ad Widows Vista are U.S. registered trademarks of Microsoft Corporatio. Oracle is a registered trademark of Oracle Corporatio ad/or its affiliates. UNIX is a registered trademark of The Ope Group. Ackowledgemets This product icludes software developed by the Apache Software Foudatio (http://www.apache.org/ [http://www.apache.org/]), which is Copyright The Apache Software Foudatio. All rights reserved. This product icludes software developed by The OpeLDAP Foudatio, which is Copyright, The OpeLDAP Foudatio, Redwood City, Califoria, USA. All Rights Reserved. OpeLDAP is a registered trademark of the OpeLDAP Foudatio. This product icludes software developed by the OpeSSL Project for use i the OpeSSL Toolkit (http://www.opessl.org/), which is Copyright The OpeSSL Project. All rights reserved. This product icludes software developed by the OpeSymphoy Group (http://www.opesymphoy.com/), which is Copyright The OpeSymphoy Group. All rights reserved. This product icludes code licesed from RSA Data Security. This product icludes software developed by the JDOM Project (http://www.jdom.org/), which is Copyright Jaso Huter & Brett McLaughli. All rights reserved. Build umber: 33
Table of Cotets Itroductio....................... 7 Overview of this guide..................... 7 Who is this guide iteded for?................. 7 Cotet of this guide..................... 7 Related documetatio.................... 8 Chapter 1. Overview of the SACM Itegratio.... 9 Uderstadig IT Asset Lifecycle Maagemet.......... 9 Beefits of the SACM Itegratio................ 9 ITIL-compliat processes................... 10 Referece source ad data owership.............. 11 Federatig IT Asset Maagemet with Cofiguratio Maagemet.. 12 Maagig uplaed chages................. 14 Chapter 2. Istallig ad Cofigurig Compoets............................. 15 Supported versios..................... 15 Prerequisites........................ 16 Istallig the HP Coect-It scearios............. 17 Itegratig Asset Maager with HP Discovery ad Depedecy Mappig Ivetory......................... 19 Itegratig Asset Maager with HP Uiversal CMDB....... 23 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 3
Itegratig HP Uiversal CMDB with HP Service Maager..... 34 Itegratig HP Uiversal CMDB with Asset Maager....... 39 Itegratig Asset Maager with HP Service Maager....... 41 Chapter 3. Techical Referece........... 47 Itroductio........................ 47 HP Discovery ad Depedecy Mappig Ivetory -> Asset Maager.............................. 48 Asset Maager -> HP Uiversal CMDB............. 53 HP Uiversal CMDB -> Asset Maager............. 61 HP Service Maager <-> Asset Maager............. 64 HP Service Maager -> HP Uiversal CMDB........... 73 Chapter 4. Glossary................. 75 Actual State........................ 75 Federatio......................... 75 Maaged State....................... 76 PPT........................... 76 Replicatio......................... 76 SACM........................... 76 TQL (Topology Query Laguage)................ 77 UNSPSC......................... 77 Idex......................... 79 4 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
List of Tables 2.1. Cotet of the <Asset Maager istallatio folder>\itegratios\sacm folder............. 17 2.2. Overview of the Asset Maager - HP Uiversal CMDB itegratio.............................. 23 2.3. Overview of the HP Uiversal CMDB - HP Service Maager itegratio......................... 34 2.4. Overview of the HP Uiversal CMDB - Asset Maager itegratio.............................. 39 2.5. Overview of the Asset Maager - HP Service Maager itegratio.............................. 41 3.1. DeviceCategory_ID -> Computer type -> CI Type mappig.. 49 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 5
6 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Itroductio Overview of this guide This guide outlies the purpose of the itegratio betwee HP Discovery ad Depedecy Mappig Ivetory Asset Maager, HP Uiversal CMDB AND HP Service Maager. It explais how to istall ad cofigure compoets of the itegratio, as well as outliig how fuctioality of the itegrated applicatios is ehaced. Who is this guide iteded for? The itegratio is iteded for IT orgaizatios that wat to better maage all their assets from procuremet util after they have bee decommissioed, all the while supplyig both operatioal as well as IT Fiacial Maagemet data. Cotet of this guide Chapter Overview of the SACM Itegratio This chapter gives a overview of the SACM itegratio. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 7
Chapter Istallig ad Cofigurig Compoets This chapter explais the istallatio ad cofiguratio eeded to deploy the itegratio. Chapter Techical Referece This chapter explais, for each database, which data objects are sourced ad mapped by which sceario or adapter, as well as the recociliatio keys used ad ay special requiremets eeded for data trasfers to work properly. Related documetatio For details of the complete set of guides ad other support documetatio provided with Asset Maager, see the latest versio of the Asset Maager Release Notes. The followig guides form part of the product documetatio for other related HP Software products, ad are particularly relevat for implemeters of the itegratio: HP Uiversal CMDB to HP Service Maager Itegratio Guide ucmdb 7.0 itegratio with ED 2.20 8 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
1 Overview of the SACM Itegratio Uderstadig IT Asset Lifecycle Maagemet The key goal of the SACM itegratio is to establish Asset Maager as the referece source for actively maaged IT assets - from the poit they are acquired ad recorded, to the time they are retired or writte off. The first step i maagig IT assets is to record details of ay ewly acquired hardware or software i Asset Maager, regardless of the meas by which it is acquired, (purchased, leased or otherwise), ad of the meas by which the details are recorded (maually, or automatically scaed...). HP Uiversal CMDB federatio allows Asset Maager data to be viewed ad leveraged by other HP Software solutios, such as HP Service Maager. This data is represeted as operatioal Cofiguratio Items (CIs). Eve whe the operatioal CI is withdraw from HP Uiversal CMDB, Asset Maager cotiues to maage the CI util it is physically retired. Beefits of the SACM Itegratio The mai beefits of the itegratio are as follows: Asset Trackig: provides full-lifecycle maagemet for physical ad logical CIs. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 9
Real time access to actual state of IT assets : eables compariso to the desired state. IT Goverace & Compliace: eriches physical ad discovery data with busiess data (cotracts, warraties, cost ceters, pricig, etc) to assist i chage maagemet ad other processes. Cetralizatio: gathers cost iformatio from hardware, software ad services for cetralized roll-up of TCO. Cosolidatio: elimiates redudacy, eforces stadards, leverages virtualizatio. Busiess Services: relates services to cotracts/warraties ad eables service-based chargeback. Havig Asset Maager i the picture allows orgaizatios to: Maage Assets from their iitial stage i the orgaizatio through procuremet. Have a authoritative referece source for all Asset data throughout the Service Lifecycle. Track ad log Service dowtime. Track ad log TCO (Total Cost of Owership) of Services: Procuremet costs. Operatioal costs. Loss of productivity costs. Maitai records for Services eve after they have bee decommissioed for both fiacial ad review purposes. ITIL-compliat processes I order to comply with idustry-stadards, the SACM itegratio has bee aliged with the followig ITIL Processes: Service Portfolio Maagemet (Service Strategy) IT Fiacial Maagemet (Service Strategy) Service Level Maagemet (Service Desig) Icidet Maagemet (Service Operatios) Problem Maagemet (Service Operatios) Request Maagemet (Service Operatios) Cofiguratio Maagemet (Service Trasitio) Chage Maagemet (Service Trasitio) 10 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Referece source ad data owership Ay IT discovery tool (HP Discovery ad Depedecy Mappig Ivetory, Microsoft SCCM, home-grow tool...) that collects hardware ad software details, cofiguratio related or ot, should be cosidered a IT ivetory source for Asset Maager. It is the resposibility of Asset Maager to receive, iterrogate, ad accept the preseted discovery details as the 'Reviewed Authorized State' of the IT Asset. Whe accepted, the updated IT Asset will be accessible to HP Uiversal CMDB from the related CI usig a combiatio of federatio ad replicatio. Through HP Uiversal CMDB federatio, the CI relatioship allows CMS or ITSM processes to query, ad if appropriate, update the attributes i the Asset Maager repository. The Asset detail does ot eed to be moved or replicated to aother repository, such as HP Service Maager. However, performace may be a reaso to choose replicatio for commoly accessed attributes. A Asset record will typically be created i Asset Maager before a related CI is created i HP Uiversal CMDB - for example, whe a Data Ceter Server is leased or purchased but before it is cofigured ad istalled. Oce the CI is put ito operatio a Asset:CI relatioship is established - most of the cofiguratio attributes already exist i the Asset Maager repository. Proper user rights maagemet ad busiess process rules will allow to update the Asset record i HP Uiversal CMDB as appropriate through federatio. The Asset record will cotiue to exist whe the related CI is removed from operatioal service i HP Uiversal CMDB, such as whe the related IT Asset is retured to stock for potetial re-use. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 11
The followig diagram shows i detail the mai data flows oce the itegratio is i place: Federatig IT Asset Maagemet with Cofiguratio Maagemet Ivetory data is stored i Asset Maager for the purpose of asset trackig. Asset Maager serves as the referece ivetory source for HP Uiversal CMDB. HP Uiversal CMDB is the Cofiguratio Maagemet System (CMS) access hub for federatig data throughout HP's Service Portfolio Maagemet suite. HP Uiversal CMDB relies o Asset Maager for accurate ivetory ad asset trackig detail. The followig schema summarizes the ways i which data is replicated ad federated betwee the databases of these products. Data from discovery tools (such as HP Discovery ad Depedecy Mappig Ivetory) is replicated i Asset Maager. Replicated ad recociled Asset Maager data from multiple sources is preseted to HP Uiversal CMDB, where it is related with its correspodig Cofiguratio Item (CI) data. The federated CI iformatio is ow available for use by other busiess processes ad BTO solutios, such as HP Service Maager. 12 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
The mai data flows withi this applicatio etwork are highlighted i the ext schematic: 1 CI Iformatio is discovered by HP Discovery ad Depedecy Mappig Ivetory (ad possibly other 3rd party tools). 2 CI Iformatio is replicated from HP Discovery ad Depedecy Mappig Ivetory to Asset Maager. 3 CI Iformatio is replicated or federated from Asset Maager to UCMDB. 4 CI Iformatio is replicated or federated from HP Uiversal CMDB to HP Service Maager. 5 Busiess Service Iformatio is replicated from HP Uiversal CMDB to Asset Maager. 6 PPT (People, Places, Thigs) iformatio is replicated betwee Asset Maager ad HP Service Maager (ca be implemeted i either directio AM->SM or SM->AM). HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 13
7 HP Service Maager chages ad tasks are replicated to Asset Maager geeratig Asset Maager work orders. Maagig uplaed chages I the evet of a uplaed chage discovered by ay trusted source (HP Discovery ad Depedecy Mappig Ivetory, ERP, LDAP, Vedor, etc), Asset Maager replicatio ca trap the update, forward it to HP Uiversal CMDB, that forwards it to HP Service Maager. This iitiates a icidet process i HP Service Maager. HP Service Maager Icidet Maagemet determies if the proposed chage is authorized. If the chage is authorized, the maaged state is updated i HP Service Maager If the chage is ot authorized, a chage is requested for the CI. 14 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
2 Istallig ad Cofigurig Compoets Supported versios The followig product versios are supported by the SACM itegratio: Asset Maager versio 5.2x HP Uiversal CMDB versio 8.02 Warig: HP Discovery ad Depedecy Mappig Ivetory for HP Uiversal CMDB 8.02 requires Cotet Pack 3, otherwise HP Discovery ad Depedecy Mappig Ivetory (whe ruig the Host Coectio WMI discovery patter) will overwrite the Asset Tag of CIs for which it does ot fid ay value. HP Service Maager 7.1x HP Discovery ad Depedecy Mappig Ivetory 7.6x HP Coect-It 4.1x Note: The Service Asset ad Cofiguratio Maagemet itegratio curretly has the followig limitatio: Where the Asset Maager DBMS uses DB2 UDB, this is ot supported by the itegratio with HP Uiversal CMDB. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 15
Prerequisites Istall SACM products Before you ca istall ad cofigure the itegratio, the SACM products must be istalled ad accessible by the itegratio compoets via the etwork: Asset Maager HP Uiversal CMDB HP Service Maager HP Discovery ad Depedecy Mappig Ivetory HP Coect-It HP Service Maager <-> HP Uiversal CMDB itegratio (we will reuse the CI Types that are mapped from HP Uiversal CMDB to HP Service Maager) Refer to the istallatio guides provided with each of the SACM products. Note: The guide to the HP Service Maager <-> HP Uiversal CMDB itegratio is provided with HP Service Maager. It's ame is HP Uiversal CMDB to HP Service Maager Itegratio Guide. You ca access the guide through the HP Service Maager Help Server. I the December 2008 Release Date of this guide, please ote that there is a error i the Add the UCMDB coectio iformatio sectio: The format of the URL to the HP Uiversal CMDB web service API should be: http://<ucmdb server ame>:<port>/axis2/services/ucmdbsmservice (http:// is required.) Retrieve the itegratio distributio packages The files that are required to istall ad cofigure the SACM itegratio are all provided as part of the istallatio of Asset Maager. Tip: The SACM istallatio files are systematically istalled with Asset Maager. You do ot eed to customize the default Asset Maager setup. If you do a custom setup the SACM files will be istalled eve if you uselect all features. 16 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
The SACM istallatio files are located i the <Asset Maager istallatio folder>\itegratios\sacm folder (by default: C:\Program Files\HP\Asset Maager 5.20 xx\itegratios\sacm). The followig table explais the cotet of the <Asset Maager istallatio folder>\itegratios\sacm folder: Table 2.1. Cotet of the <Asset Maager istallatio folder>\itegratios\sacm folder What part of the itegratio HP Discovery ad Depedecy Mappig Ivetory - > Asset Maager HP Uiversal CMDB -> Asset Maager Asset Maager <-> HP Service Maager Asset Maager -> HP Uiversal CMDB Asset Maager -> HP Uiversal CMDB Asset Maager -> HP Uiversal CMDB Asset Maager -> HP Uiversal CMDB Which folder or file \itegratios\sacm\coect-it\ \itegratios\sacm\amd- BUpdate\ \itegratios\sacm\amd- BAdapter.zip \itegratios\sacm\am- DAdapter\ \itegratios\sacm\am Busiess Services itegratio.zip Purpose Istallig the HP Coect-It scearios Istallig the HP Coect- It scearios [page 17] Creatig ew Asset Maager SQL views ad fields Creatig the Asset Maager SQL views [page 23] Deployig the Asset Maager adapter i HP Uiversal CM- DB Deploy the Asset Maager adapter [page 29] Deployig the Asset Maager adapter compoets i Asset Maager Add the Asset Maager wadapter [page 28] Addig the dtsacmcreate field [page 25] Deployig the busiess services TQL i HP Uiversal CMDB Deployig the busiess services TQL; [page 40] Istallig the HP Coect-It scearios HP Coect-It mediates data replicatio for the followig itegratios: HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 17
HP Discovery ad Depedecy Mappig Ivetory-> Asset Maager HP Uiversal CMDB -> Asset Maager Asset Maager <-> HP Service Maager For each of these, it uses scearios which are provided as part of the Asset Maager distributio. The SACM scearios eed to be copied from the Asset Maager istallatio folder to the HP Coect-It istallatio folder: 1 Backup the followig HP Coect-It folders: <HP Coect-It istallatio folder>\sceario\ed\ddmi75 <HP Coect-It istallatio folder>\cofig\ed\ddmi75 The customizatios you may have doe to files i these folders will be lost whe you copy the SACM istallatio files. 2 Copy the followig subdirectories of the <Asset Maager istallatio folder>\itegratios\sacm\coect-it folder: cofig datakit sceario 3 Paste them i the <HP Coect-It istallatio folder> folder. This: Replaces the HP Coect-It scearios foud i <HP Coect-It istallatio folder>\sceario\ed\ddmi75\ddmi75am51 ad their associated files. Importat: These HP Coect-It scearios replace the stadard scearios with the same ames delivered with HP Coect-It. If you customized those scearios, you will eed to redo the customizatio o the scearios delivered with Asset Maager 5.20. Creates a HP Coect-It sceario i <HP Coect-It istallatio folder>\sceario\ac\ac51\sacm\ucmdb8am51 ad its associated files. Creates HP Coect-It scearios i <HP Coect-It istallatio folder>\sceario\ac\ac51\sacm\sm71am51 ad their associated files. 18 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Itegratig Asset Maager with HP Discovery ad Depedecy Mappig Ivetory Overview Itegratio directio Itegratio techology Replicated data HP Coect-It scearios From HP Discovery ad Depedecy Mappig Ivetory to Asset Maager HP Coect-It CIs ivetoried by HP Discovery ad Depedecy Mappig Ivetory are replicated i Asset Maager HP Discovery ad Depedecy Mappig Ivetory computers (scaed or uscaed) ad etwork devices icludig etwork priters are replicated to Asset Maager i the amportfolio table with a lik to the amcomputer ad amasset overflow tables. ddmiac.sc ddmiac-hpovcmse.sc ddmiac-recoc.sc ddmiac-sworm.sc ddmiac-mobiledevices.sc Details o the HP Coect-It scearios: ddmiac.sc This sceario replicates CIs of all types except mobile devices. It does ot retrieve ay iformatio from HP Cliet Automatio (as ddmiac-hpovcmse.sc does). It makes chages to Asset Maager records directly without usig recociliatio proposals (as ddmiac-recoc.sc does). It liks software istallatios directly to a defiitive model (ulike ddmiac-sworm.sc). For more iformatio, refer to the HP Coect-It guide called Coectors, chapter Out-of-the-box scearios, sectio HP Eterprise Discovery scearios/ ed\ed21\ed21ac44\edac.sc. ddmiac-hpovcmse.sc This sceario does the same as the ddmiac.sc sceario ad i additio replicates some iformatio from HP Cliet Automatio to Asset Maager. For more iformatio, refer to the HP Coect-It guide called Coectors, chapter Out-of-the-box scearios, sectio HP Eterprise Discovery scearios/ ed\ed20\ed2ac44\edac-hpovcmse.sc. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 19
ddmiac-recoc.sc This sceario does the same as the ddmiac.sc ad i additio creates recociliatio proposals for chages to the amcomputer:imemorysizemb field. For more iformatio, refer to the HP Coect-It guide called Coectors, chapter Out-of-the-box scearios, sectio HP Eterprise Discovery scearios/ ed\ed20\ed2ac50\edac-recoc.sc. ddmiac-sworm.sc This sceario does the same as the ddmiac.sc but uses the amivetmodel records to assig a model to the software istallatios. ddmiac-mobiledevices.sc This sceario replicates mobile devices from HP Discovery ad Depedecy Mappig Ivetory to Asset Maager. It does ot retrieve ay iformatio from HP Cliet Automatio (as ddmiac-hpovcmse.sc does). It makes chages to Asset Maager records directly without usig recociliatio proposals (as ddmiac-recoc.sc does). Note: You are ot supposed to use all the scearios: Use either ddmiac.sc, ddmiac-hpovcmse.sc, ddmiac-recoc.sc or ddmiac-sworm.sc to replicate CIs of all types except mobile devices. Use ddmiac-mobiledevices.sc to replicate mobile devices. Preparig the Asset Maager database Some data is required i your Asset Maager database before the HP Coect-It scearios ca ru properly. Follow the istructios below, except if you already imported the followig lie-of-busiess data: Portfolio - Lie-of-busiess data Catalog - UNSPSC product classificatio Virtualizatio - Lie-of-busiess data 1 Execute Asset Maager Applicatio Desiger. 2 Select the File/ Ope meu item. 3 Select the Ope database descriptio file - create ew database optio. 20 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
4 Select the gbbase.xml file which is located i the cofig sub-folder of the Asset Maager istallatio folder. 5 Start the database creatio wizard (Actio/ Create database meu). 6 Populate the pages of the wizard as follows (avigate through the wizard pages usig the Next ad Previous buttos): Geerate SQL script / Create database page: Fields Database Creatio Use advaced creatio optios Value Select the coectio to the database ito which you wish to import the lie-of-busiess data. Import lie-of-busiess data. Do ot select this optio. Creatio parameters page: Fields Password Value Eter the admiistrator's password. Note: The Asset Maager database admiistrator is the record i the Employees ad departmets (amempldept) table for which the Name (Name) field is set to Admi. The database coectio logi is stored i the User ame (UserLogi) field. The admiistratio ame is Admi. The password is stored i the Password field (LogiPassword). Data to import page: Fields Available data Stop import if error Log file Value Select the followig optios: Portfolio - Lie-of-busiess data Catalog - UNSPSC product classificatio Virtualizatio - Lie-of-busiess data Select this optio for the import to stop if a problem is ecoutered. Full ame of the file to which all import operatios, icludig errors ad warigs, are logged. 7 Execute the optios defied usig the wizard (Fiish butto). HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 21
Note: Portfolio - Lie-of-busiess data: this is eeded to create atures ad models required by HP Coect-It scearios Catalog - UNSPSC product classificatio: UNSPSC classificatios are used to assig the right paret model to the CI models created i Asset Maager Virtualizatio - Lie-of-busiess data: this is required to import a Virtual Machie model Copyig libmysql.dll HP Discovery ad Depedecy Mappig Ivetory stores its data i a MySQL DBMS. HP Coect-It uses the MySQL libmysql.dll library, but caot fid it i its default MySQL istallatio folder. You eed to copy libmysql.dll to a folder recogized by HP Coect-It: 1 Copy the <MySQL istallatio folder>\bi\libmysql.dll file. 2 Paste it i the <HP Coect-It istallatio folder>\bi folder or the <OS istallatio folder>\system32 folder. Cofigurig HP Coect-It scearios The followig coectors are used by the scearios ad eed to be cofigured i the scearios you will be usig: Asset Maager (all scearios) HP Discovery ad Depedecy Mappig Ivetory (all scearios) CM Service Evets (ddmiac-hpovcmse.sc) For iformatio o how to cofigure coectors, refer to the HP Coect-It Coectors guide, chapter Hewlett-Packard coectors. Schedulig the executio of the scearios Executio of the scearios ca be scheduled by defiig a scheduler i HP Coect-It. HP Coect-It User's guide, chapter Implemetig a itegratio sceario. 22 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Itegratig Asset Maager with HP Uiversal CMDB Overview Table 2.2. Overview of the Asset Maager - HP Uiversal CMDB itegratio Itegratio directio Itegratio techology Replicated data HP Uiversal CMDB adapter From Asset Maager to HP Uiversal CMDB HP Uiversal CMDB geeric database adapter CIs stored i Asset Maager are replicated or federated (this depeds o the type of data) i HP Uiversal CMDB Asset Maager Adapter Creatig the Asset Maager SQL views Why create Asset Maager SQL views The Asset Maager adapter uses SQL views to access the Asset Maager database. Creatig the views 1 Execute <Asset Maager istallatio folder>\itegratios\sacm\amdbupdate\createviews.bat. Warig: This batch file ca oly be used uder the Widows eviromet, ot uder UNIX. Ruig this batch file alters the Asset Maager database structure. Admiistrative privileges are required at the DBMS level to create the SQL views. Usage: If your Asset Maager database uses Microsoft SQL Server: CreateViews.bat [MSSQL2000 MSSQL2005] <Server> <Database> <Userame> <Password> Property Server Database Userame Value Microsoft SQL Server service that cotais the Asset Maager database. Asset Maager database ame at the Microsoft SQL Server level. Microsoft SQL Server user associated to the Asset Maager database. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 23
Property Password Value Microsoft SQL Server password associated to the user associated to the Asset Maager database. Example: CreateViews.bat MSSQL2000 mylogi\assetmaager AMDB am password If your Asset Maager database uses Oracle: CreateViews.bat Oracle <Oracle SID> <Userame> <Password> Property Oracle SID Userame Password Value Asset Maager database idetifier at the Oracle level. Oracle user associated to the Asset Maager database. Oracle password associated to the user associated to the Asset Maager database. Importat: Prerequisite: The ORACLE_HOME eviromet variable must be set. GRANT privileges must be assiged to <Userame> for creatig SQL views i the Oracle database as follows: SQL> GRANT create ANY VIEW to <Userame>; SQL> GRANT SELECT ANY TABLE to <Userame>; SQL> GRANT create MATERIALIZED VIEW to <Userame>; 2 Usig a database browser, check that the followig 17 views (Ower= <Userame>, Name prefixed with View_) have bee successfully created. 24 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Example i Microsoft SQL Server: Addig the dtsacmcreate field The dtsacmcreate field is used by the Asset Maager adapter to populate the root_createtime field of the CI created i the HP Uiversal CMDB database. To add the dtsacmcreate field to the Asset Maager Portfolio items (amportfolio) table, follow these steps: 1 Start Asset Maager Applicatio Desiger 2 Coect to the Asset Maager database (File/ Ope meu). 3 Use the Database/Add a field... meu optio to create a field called dtsacmcreate o the Portfolio items (amportfolio) table, with the followig attributes: Attribute Geeral tab SQL Name Label Descriptio Value dtsacmcreate Record Creatio Date the record was created HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 25
Attribute Type Scripts tab Default Read Oly Madatory Value Date ad time RetVal=Now() Yes No Warig: You must use the field SQL ame ad type strictly as idicated i the table. 4 Click Save to save the ew field. 5 Close Asset Maager Applicatio Desiger. 6 Populate the dtsacmcreate field o existig Portfolio item records: Execute the <Asset Maager istallatio folder>\itegratios\sacm\amdbupdate\populatedtsacmcreate.bat. Warig: This eeds to be doe oly oce, sice the field will be automatically populated for ay ew record that is created after the dtsacmcreate field was added to the database structure. This batch file ca oly be used uder the Widows eviromet, ot uder UNIX. Ruig this batch file alters the Asset Maager database records. Usage: If your Asset Maager database uses Microsoft SQL Server: PopulateDtSACMCreate.bat [MSQL2000 MSSQL2005] <Server> <Database> <U serame> <Password> Property Server Database Userame Password Value Microsoft SQL Server service that cotais the Asset Maager database. Asset Maager ame at the Microsoft SQL Server level. Microsoft SQL Server user associated to the Asset Maager database. Microsoft SQL Server password associated to the user associated to the Asset Maager database. Example: PopulateDtSACMCreate.bat MSSQL2000 mylogi\assetmaager AMDB am pass word If your Asset Maager database uses Oracle: 26 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
PopulateDtSACMCreate.bat Oracle <Oracle SID> <Userame> <Password> Property Oracle SID Userame Password Value Asset Maager database idetifier at the Oracle level. Oracle user associated to the Asset Maager database. Oracle password associated to the user associated to the Asset Maager database. 7 Check i Asset Maager that all your Portfolio item records have the dtsacmcreate field populated. 1 Start the Asset Maager Widows cliet. 2 Ope the Portfolio Maagemet/ Portfolio items avigatio bar lik. 3 Ope the Query o table widow (accessible by clickig o the triagle ico) HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 27
4 Add the field dtsacmcreate o the Portfolio items scree The dtsacmcreate field should be visible ad its value should be the date you ra PopulateDtSACMCreate.bat. Creatig the Asset Maager adapter Why create the Asset Maager adapter The Asset Maager adapter is used by HP Uiversal CMDB to replicate or federate data from Asset Maager to HP Uiversal CMDB. Add the Asset Maager wadapter 1 Copy the <Asset Maager istallatio folder>\itegratios\sacm\amdbadapter folder. 2 Paste it i the <HP Uiversal CMDB istallatio folder>\j2f\fcmdb\codebase\ folder. 3 If you use HP Uiversal CMDB versio 8.02, you must do the followig: a Edit the <HP Uiversal CMDB istallatio folder>\j2f\fcmdb\codebase\amdbadapter\meta-inf\fixed_values.txt file. b Chage the followig lie: etity[ip] attribute[ip_domai] value[${defaultdomai}] 28 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
ito: etity[ip] attribute[ip_domai] value[defaultdomai] Deploy the Asset Maager adapter 1 Copy the <Asset Maager istallatio folder>\itegratios\sacm\amdbadapter.zip file. 2 Paste it i the <HP Uiversal CMDB istallatio folder>\root\lib\customer_packages folder. 3 Start UCMDB Server. 4 Ope a iteret browser ad coect to UCMDB Server. 5 Display the Settigs tab. 6 Select Package Maager i the Settigs meu. 7 Select the etry which Package ame is AMDBAdapter. 8 Deploy the adapter (right click the etry ad select Deploy Packages to Server (from local disk)). The deploymet overrides the TQLs that were istalled with the HP Uiversal CMDB->HP Service Maager itegratio (Example: hostdata). 9 Click + ad select the AMDBAdapter.zip file located i the <HP Uiversal CMDB istallatio folder>\root\lib\customer_packages folder. 10 Click Ope the OK. 11 Verify that the adapter has bee deployed: select your package i the list, right-click ad select View package resources. You should see the AMDBAdapter.xml as well as TQL.xml files i the list. 12 Discoect from UCMDB Server (logout). Creatig the Asset Maager adapter data store 1 Ope a iteret browser ad coect to the UCMDB Server. 2 Select Settigs/ Federated CMDB. 3 Display the Data stores tab. 4 Select Data Store Defiitio i the View field ad click *. The New Data Store wizard displays. Create the Asset Maager adapter data store, with the followig properties: Property Adapter Name Value AMDBAdapter Name of your choice HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 29
Property Host Port User Password URL Value Computer hostig the Asset Maager database. It ca be the full DNS computer ame (example: machieame.emea.compay) or the IP address of the host. Port to access the Asset Maager database. DBMS user associated to the Asset Maager database. Importat: Sice the User ad its associated Password are exposed to aybody who is etitled to edit data stores, you should ot use a User with admiistrative rights. DBMS password for the user associated to the Asset Maager database. Microsoft SQL Server dbame=<asset Maager database ame at the DBMS level>;dbtyp e=sqlserver Example: dbame=amsqldb;dbtype=sqlserver Oracle: dbame=<asset Maager database ame at the DBMS level>;dbtyp e=oracle;sid=<database sid> Example: dbame=amoradb;dbtype=oracle;sid=amordasid 5 Click Test coectio. A message cofirms whether the coectio has bee successfully created. 6 Click Next. 30 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
7 Check the boxes as show i the followig screeshot: Note: The uchecked CI Types are replicated (Host for istace). The checked CI Types are federated. Warig: You should comply with the selectio of CI Types as idicated i the scree shot. Chagig the selectio is ot supported. 8 Click Next. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 31
9 Check the boxes as show i the followig screeshot: 10 Click Fiish. Creatig the Asset Maager replicatio job 1 Ope a iteret browser ad coect to the UCMDB Server. 2 Select Settigs/ Federated CMDB. 3 I the Replicatio Jobs tab, click * (New Replicatio Job). 32 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
4 Populate the scree with the followig iformatio: Tip: The CMDB RMI Adapter has bee created with the HP Service Maager-HP Uiversal CMDB itegratio. Istall SACM products [page 16] 5 Click OK. 6 O the Schedule tab, click + to create a ew Schedule job for am2ucmdb. 7 Complete the Job Defiitio details, specifyig the job scheduler frequecy. 8 Click OK. Cofigurig the IP CI Type By default the IP Is DHCP (IP_isdhcp) attribute of the IP CI Type is ot visible. It eeds to be set to visible so that it ca be used by the TQLs. To do this: 1 Ope a iteret browser ad coect to the UCMDB Server. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 33
2 Select Settigs/ CI Type Maager. 3 Select the IP CI Type: IT Uiverse/ System/ Network Resource/ IP from the avigatio tree. 4 O the Attributes tab, select the IP is DHCP attribute ad check the Visible field. Itegratig HP Uiversal CMDB with HP Service Maager Overview Table 2.3. Overview of the HP Uiversal CMDB - HP Service Maager itegratio Itegratio directio Itegratio techology Itegratio operatio HP Uiversal CMDB adapter From HP Uiversal CMDB to HP Service Maager HP UCMDB ServiceDesk Adapter Replicate CIs ServiceDeskAdapter From HP Service Maager to HP Uiversal CMDB Web Services Call + HP UCMDB AM geeric database adapter Get the actual state AMDBAdapter Prerequisites You must have istalled ad cofigured the HP Service Maager <-> HP Uiversal CMDB itegratio as explaied i the HP Uiversal CMDB to HP Service Maager Itegratio Guide guide provided with HP Service Maager. Updatig the mappig file I order to correctly recocile CIs at all levels, the amportfolio:assettag must be propagated from Asset Maager to HP Service Maager through HP Uiversal CMDB. As the recociliatio i HP Service Maager is doe by default o the HP Service Maager logical.ame field, this field eeds to be used to store the Asset Maager amportfolio:assettag field. To achieve this, perform these steps: 1 Log o to the HP Service Maager Cliet as a admiistrator 34 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
2 Select the Tailorig/ Web Services/ WSDL Cofiguratio lik i the system avigator 3 I the Search page, eter a value of ucmdbcomputer for the Object Name parameter 4 Click o Search 5 Oe record should be foud 6 Select the Fields tab 7 Click the first empty lie after the ed of the list to add a ew field with the followig attributes: Field: logical.ame Captio: LogicalName 8 Click o Save 9 Select the Tailorig/ Web Services/ DEM Recociliatio Rules lik i the system avigator 10 Add a ew record with the followig parameters: Table Name: joicomputer Field Name: UCMDB Id Sequece: 1 11 Click New 12 O the HP Uiversal CMDB server, edit the file <HP Uiversal CMDB istallatio folder>\ucmdbserver\j2f\fcmdb\codebase\servicedeskadapter\host_data.xslt 13 Modify the file.device part by addig a mappig betwee the UCMDB host_systemassettag field ad the HP Service Maager LogicalName field. Add the followig text to the file.device tag: <xsl:for-each select="@host_systemassettag"> <LogicalName><xsl:value-of select="."/></logicalname> </xsl:for-each> The <file.device> tag should look like this after your chage:... <file.device> <!--import:cmdb_root_attributes.xslt--> <xsl:choose> <xsl:whe test="@host_isdesktop='true'"> <Subtype>Desktop</Subtype> </xsl:whe> <xsl:otherwise> <xsl:for-each select="@friedlytype"> <Subtype><xsl:value-of select="."/></subtype> </xsl:for-each> HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 35
</xsl:otherwise> </xsl:choose> <xsl:for-each select="//sm_host"> <!--import:sm_device_attributes.xslt--> </xsl:for-each> <xsl:for-each select="@host_os"> <OS><xsl:value-of select="."/></os> </xsl:for-each> <xsl:for-each select="@host_dsame"> <DNSName><xsl:value-of select="."/></dnsname> </xsl:for-each> <xsl:for-each select="@host_systemassettag"> <LogicalName><xsl:value-of select="."/></logicalname> </xsl:for-each> </file.device>... 14 Reload the data store that uses the ServiceDeskAdapter to take these modificatios ito accout: 1 Ope a iteret browser o the UCMDB Server ad coect to the UCMDB Server. 2 Select Settigs/ Federated CMDB. 3 Select the ServiceDeskAdapter adapter you are usig for the HP Uiversal CMDB -> HP Service Maager itegratio. 4 Right click the adapter i the list ad select Reload adapter. Cofigurig the ucmdbitegratio Web service The HP Uiversal CMDB adapter depeds o the ucmdbitegratio Web Service. You eed to cofigure this Web service: 1 Start the HP Service Maager cliet ad select Meu avigatio/ Tailorig/ Web Services/ WSDL Cofiguratio from the avigatio bar. 2 Populate the Service Name field with ucmdbitegratio. 3 Populate the Object Name field with ucmdbcomputer. 4 Click Search. 5 Select the Fields tab. 6 Click the first empty lie at the ed of the list to add a ew field: Field logical.ame Captio LogicalName 7 Click Save. 36 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Cofigurig retrieval of Actual State Overview The actual state shows details o a CI as foud i Asset Maager. It is displayed i HP Service Maager o the Actual State tab of the CI. The actual state of a CI ca be compared to the maaged state iformatio represeted i HP Service Maager o the Maaged State ad other tabs of the CI. By default HP Uiversal CMDB is cofigured to retrieve the actual state of CIs through HP Discovery ad Depedecy Mappig Ivetory. Whe the SACM itegratio is implemeted, the actual state should be retrieved from Asset Maager istead of HP Discovery ad Depedecy Mappig Ivetory. Pre-requisites You eed to deploy actual state as described i the HP Uiversal CMDB to HP Service Maager Itegratio Guide provided with HP Service Maager. Cofigurig retrieval of Actual State I order to have the HP Service Maager actual state poitig to the Asset Maager database rather tha HP Discovery ad Depedecy Mappig Ivetory, update the <UCMDB path>\ucmdbserver\j2f\fcmdb\codebase\servicedeskadapter\webserviceadapters.xml file. Replace: <adapter ame="eddbadapter"> With: <adapter ame="amdbadapter"> As a result, you should have the followig etry i the adapter list i the file: Note: The ame of the adapter i this file must be the ame of the Asset Maager adapter you created i a previous step. Creatig the Asset Maager adapter [page 28] The Actual State iformatio is made or both federated ad replicated data. By default HP Service Maager retrieves the replicated Actual State data from Asset Maager directly (ot from HP Uiversal CMDB). HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 37
This default behavior ca be chaged by addig or chagig the ower attribute of the <adapter ame="amadapter"/> tag: If ower=yes, the HP Service Maager will get the Actual State from Asset Maager If ower=o, the HP Service Maager will get the Actual State from HP Uiversal CMDB Example: <adapters> <adapter ame="amadapter" ower=o/> </adapters> Customizig attributes retrieved for Actual State Data is retrieved from HP Uiversal CMDB via Web Services usig TQLs stored i Root\ Itegratio\ SM Query. The list of retrieved attributes ca be customized: 1 Ope a iteret browser ad coect to the UCMDB Server. 2 Display the Modelig tab. 3 Select Query Maager i the Modelig meu. 4 Expad the Root\ Itegratio\ SM Query meu. 5 Select the TQL correspodig to the CI Type to customize (hostextededdata for istace). 6 Right click the CI Type to customize ad select the Node Properties etry. 7 Click Advaced layout settigs. 8 The Layout Settigs widow lists attributes that ca be retrieved i the Actual State. Attributes that are retrieved are checked. 9 You may check ad ucheck attributes to chage the selectio of displayed attributes, provided the checked attributes are also preset i the <HP Uiversal CMDB istallatio folder>\j2f\fcmdb\codebase\amdbadapter\meta-inf\orm.xml file. You ca chage the orm.xml file to meet this requiremet. Please refer to the HP Uiversal CMDB documetatio to uderstad how this is doe. 38 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Itegratig HP Uiversal CMDB with Asset Maager Overview Table 2.4. Overview of the HP Uiversal CMDB - Asset Maager itegratio Itegratio directio Itegratio techology Replicated data HP Coect-It sceario From HP Uiversal CMDB to Asset Maager HP Coect-It Busiess Services ucmdbam-bc.sc Create a busiess services ature ad model This is required for the HP Coect-It sceario to replicate busiess services from HP Uiversal CMDB to Asset Maager. 1 Start a Asset Maager cliet. 2 Coect to your Asset Maager database. 3 Display the atures (Portfolio maagemet/ Natures lik o the avigatio bar). 4 Create a ew ature with the followig values: Field label Code bsystem Field SQL ame Code Busiess service Value BIZSVC Check this box 5 Display the models (Portfolio maagemet/ Models lik o the avigatio bar). 6 Create a ew model with the followig values: Field label Name Bar code Field SQL ame Name BarCode Value The ame of your choice. For istace: Busiess service SER000022 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 39
Field label Nature Field SQL ame Nature Value Select the ature for which amnature:code = BIZSVC Deployig the busiess services TQL; 1 Copy the <Asset Maager istallatio folder>\itegratios\sacm\am Busiess Services itegratio.zip file. 2 Paste it i the <HP Uiversal CMDB istallatio folder>\root\lib\customer_packages folder. 3 Ope a iteret browser o the UCMDB Server ad coect to the UCMDB Server. 4 Display the Settigs tab. 5 Select Package Maager i the Settigs meu. 6 Select the etry which Package ame is AM Busiess Services itegratio. 7 Deploy the adapter (right click the etry ad select Deploy Packages to Server (from local disk)). 8 Click + ad select the <HP Uiversal CMDB istallatio folder>\root\lib\customer_packages\am Busiess Services itegratio.zip file. 9 Click Ope the OK. The deploymet adds the BusiessServices TQL. 10 Verify that the TQL has bee deployed: a Select Modelig/ Query Maager. b Select Root/ Itegratio/ AM Syc. You should see the BusiessServices TQL i the list. Cofigurig the HP Coect-It scearios The followig coectors are used by the scearios ad eed to be cofigured: Asset Maager HP Uiversal CMDB (Java) 40 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Note: Whe you cofigure this coector, you may eed to kow how to populate the Cofiguratio file field i the Uiversal CMDB busiess model defiitio page: This is the locatio of BusiessServices.xml that ca be foud i the <HP Coect-It istallatio folder\datakit\ucmdb\ucmdb8 folder. For iformatio o how to cofigure coectors, refer to the HP Coect-It Coectors guide. Schedulig the executio of the scearios Executio of the scearios ca be scheduled i oe of two ways by defiig a scheduler i HP Coect-It. HP Coect-It User's guide, chapter Implemetig a itegratio sceario. Itegratig Asset Maager with HP Service Maager Overview Table 2.5. Overview of the Asset Maager - HP Service Maager itegratio Itegratio directio Itegratio techology From Asset Maager to HP Service Maager HP Coect-It From HP Service Maager to Asset Maager HP Coect-It HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 41
Replicated data amsm-ppt.sc: Compaies Vedors Locatios Departmets Cotacts Models Stock rooms Liks betwee CIs ad Cotact, Model, Vedor, Locatio, Departmet smam-ppt.sc: Compaies Vedors Locatios Departmets Cotacts Models Stock rooms smam-wo.sc: Chages ad tasks u amsm-ci-pptlik.sc u Liks betwee CIs ad Cotact, Model, Vedor, Locatio, Departmet HP Coect-It scearios amsm-ppt.sc amsm-ci-pptlik.sc smam-ppt.sc smam-wo.sc Importat: These scearios do ot create CIs. CIs are created i Asset Maager directly or created i HP Discovery ad Depedecy Mappig Ivetory ad replicated i Asset Maager. Asset Maager CIs are replicated/federated to HP Uiversal CMDB. HP Uiversal CMDB CIs are replicated to HP Service Maager. Addig the SACMItegratio Web service The HP Coect-It scearios deped o the SACMItegratio Web Service. You eed to add this Web service to HP Service Maager: 1 Start the HP Service Maager cliet ad select Meu Navigatio/ Tailorig/ Database Maager/ from the System Navigator. 2 Right click the Database Maager scree ad select the Import/Load meu etry. 3 Populate File Name with <HP Coect-It istallatio folder>\datakit\sc\sm71\sacmitegratio.ul. 4 Click Load FG. 42 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
5 Select Meu avigatio/ Tailorig/ Web Services/ WSDL Cofiguratio from the System Navigator. Populate Service Name with SACMItegratio. Click Search. Check that you see a list of etries prefixed with SACM. Defiig the referece database for each PPT type By default, the provided HP Coect-It scearios trasfer the same PPT types from Asset Maager to HP Service Maager ad from HP Service Maager to Asset Maager. You caot implemet the scearios as they are, because data replicatio would circle back ad forth. Thus you must decide whether the Asset Maager or HP Service Maager database will store the referece data, for each of the PPT types: Compaies Vedors Locatios Departmets Cotacts Models Stock rooms Oce you have made a choice, here are the matchig cofiguratios to make: If the referece database for all PPT types is Asset Maager: Use amsm-ppt.sc to trasfer the PPTs from Asset Maager to HP Service Maager. Do ot use smam-ppt.sc. Do ot use amsm-ci-ppt-lik.sc because liks betwee CIs ad Cotact, Model, Vedor, Locatio ad Departmet are maaged by the amsm-ppt.sc sceario. Use smam-wo.sc to trasfer chages ad tasks. If the referece database for all PPT types is HP Service Maager: Use smam-ppt.sc to trasfer the PPTs from Asset Maager to HP Service Maager. Do ot use amsm-ppt.sc. Use amsm-ci-ppt-lik.sc to trasfer liks betwee CIs ad Cotact, Model, Vedor, Locatio ad Departmet. Use smam-wo.sc to trasfer chages ad tasks. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 43
If the referece database for PPT types is a mixed solutio betwee Asset Maager or HP Service Maager accordig to PPT type: Customize smam-ppt.sc so that PPTs refereced i HP Service Maager are trasferred to Asset Maager. Customize amsm-ppt.sc so that PPTs refereced i Asset Maager are trasferred to HP Service Maager. Do ot use amsm-ci-ppt-lik.sc because liks betwee CIs ad Cotact, Model, Vedor, Locatio ad Departmet are maaged by the amsm-ppt.sc sceario. Use smam-wo.sc to trasfer chages ad tasks. To uderstad how to customize HP Coect-It scearios: HP Coect-It guide called User's guide, chapter Implemetig a itegratio sceario, sectio Defie the mappig of documet types. Preparig the Asset Maager database Some data is required i your Asset Maager database before the HP Coect-It scearios ca ru properly. Follow the istructios below, except if you already imported the followig lie-of-busiess data: Fiacials - Lie-of-busiess data (TCO-budgets-chargeback) Shared data 1 Execute Asset Maager Applicatio Desiger. 2 Select the File/ Ope meu item. 3 Select the Ope database descriptio file - create ew database optio. 4 Select the gbbase.xml file which is located i the cofig sub-folder of the Asset Maager istallatio folder. 5 Start the database creatio wizard (Actio/ Create database meu). 6 Populate the pages of the wizard as follows (avigate through the wizard pages usig the Next ad Previous buttos): Geerate SQL script / Create database page: Fields Database Creatio Use advaced creatio optios Value Select the coectio to the database ito which you wish to import the lie-of-busiess data. Import lie-of-busiess data. Do ot select this optio. Creatio parameters page: 44 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Fields Password Value Eter the admiistrator's password. Note: The Asset Maager database admiistrator is the record i the Employees ad departmets (amempldept) table for which the Name (Name) field is set to Admi. The database coectio logi is stored i the User ame (UserLogi) field. The admiistratio ame is Admi. The password is stored i the Password field (LogiPassword). Data to import page: Fields Available data Stop import if error Log file Value Select the followig optios: Fiacials - Lie-of-busiess data (TCO-budgets-chargeback) Shared data Select this optio for the import to stop if a problem is ecoutered. Full ame of the file to which all import operatios, icludig errors ad warigs, are logged. 7 Execute the optios defied usig the wizard (Fiish butto). Note: Fiacials - Lie-of-busiess data (TCO-budgets-chargeback): this is eeded to create a ature required by HP Coect-It scearios (amnature:code = TCO_WORK_UNIT). Shared data: this is eeded to create ature required by HP Coect-It scearios (used by the ScToAcNature map table to trasfer models from HP Service Maager to Asset Maager). Cofigurig the HP Coect-It scearios The followig coectors are used by the scearios ad eed to be cofigured: Asset Maager HP Uiversal CMDB (Java) HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 45
For the HP Uiversal CMDB coector, customize the defaults o the Defie the coectio parameters page, as well as the locatio of BusiessServices.xml, if ecessary. For iformatio o how to cofigure coectors, refer to the HP Coect-It Coectors guide. Schedulig the executio of the scearios Executio of the scearios ca be scheduled i oe of two ways by defiig a scheduler i HP Coect-It. HP Coect-It User's guide, chapter Implemetig a itegratio sceario. 46 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
3 Techical Referece Itroductio This chapter explais, for each database ivolved i the SACM itegratio, which data objects are sourced ad mapped by which sceario or adapter, as well as the recociliatio keys used ad ay special requiremets eeded for data trasfers to work properly. Format used to refer to a field, lik or idex: Database Asset Maager HP Service Maager (whe trasferrig data from Asset Maager to HP Service Maager) ad HP Discovery ad Depedecy Mappig Ivetory HP Uiversal CMDB Format <Table SQL ame>:<field, lik or idex SQL ame> <Table ame>:<field, lik or idex ame> <CI type>:<attribute ame> HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 47
Database HP Service Maager (whe trasferrig data from HP Service Maager to Asset Maager) Format <Web service object ame>:<web service field captio> HP Discovery ad Depedecy Mappig Ivetory -> Asset Maager Overview of the HP Discovery ad Depedecy Mappig Ivetory -> Asset Maager itegratio Overview [page 19] Recociliatio keys used for HP Discovery ad Depedecy Mappig Ivetory scaed computers, computers without aget ad etwork devices (icludig etwork priters) 1 HP Coect-It searches for a existig asset with a give Serial # (amasset:serialno) + Model (amasset:model) If 0 record is foud -> HP Coect-It tries the ext key. If 1 record is foud, the HP Discovery ad Depedecy Mappig Ivetory record is recociled with the Asset Maager record. If 2 or more records are foud, HP Coect-It does ot update or create ay record i Asset Maager 2 HP Coect-It searches for a existig asset with a give Asset tag (amasset:assettag) If 0 record is foud -> HP Coect-It tries the ext key. If 1 record is foud, the HP Discovery ad Depedecy Mappig Ivetory record is recociled with the Asset Maager record. If 2 or more records are foud, HP Coect-It does ot update or create ay record i Asset Maager 3 HP Coect-It searches for a existig IT equipmet with a give Domai/Group (amcomputer:workgroup) + Name (amcomputer:name) If 0 record is foud -> HP Coect-It creates a ew IT equipmet i Asset Maager. If 1 record is foud, the HP Discovery ad Depedecy Mappig Ivetory record is recociled with the Asset Maager record. If 2 or more records are foud, HP Coect-It does ot update or create ay record i Asset Maager 48 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Value of the Asset Maager amcomputer:computertype field The HP Discovery ad Depedecy Mappig Ivetory Device:DeviceCategory field is used to set the Asset Maager amcomputer:computertype field, which i tur is used to select the HP Uiversal CMDB CI Type as show i the followig table: Table 3.1. DeviceCategory_ID -> Computer type -> CI Type mappig HP Discovery ad Depedecy Mappig Ivetory Device:DeviceCategory_ID field 1000000028, 1000000050, 1000000051, 1000000119, 1000000128, 1000000129, 1000000135, 1000000136, 1000000138, 1000000139, 1000000154, 1000000159, 1000000160, 1000000161, 1000000162, 1000000170, 1000000173 1000000033, 1000000034, 1000000035, 1000000048, 1000000115, 1000000137, 1000000171 1000000113, 1000000133 1000000003, 1000000053, 1000000130, 1000000132, 1000000144 1000000020, 1000000058, 1000000060, 1000000073, 1000000076, 1000000122, 1000000127 1000000006, 1000000017, 1000000023, 1000000061 1000000011, 1000000012, 1000000013, 1000000126, 1000000157 1000000032 1000000007, 1000000018, 1000000024, 1000000025, 1000000040, 1000000041, 1000000052, 1000000059, 1000000072, 1000000078, 1000000079, 1000000080, 1000000089, 1000000090, 1000000094, 1000000100 1000000016, 1000000054 Asset Maager CI Type (for 1 Asset Maager CI, 1 or more CIs are created i HP Uiversal CM- DB. This colum lists for which CI Types those CIs are created). t, sm_host, memory, cpu amcomputer:computertype field Widows computer Widows desktop computer Modem Router Gateway Hub Network priter Maiframe Network compoet ATM switch HP Uiversal CMDB t, sm_host, memory, cpu sm_modem, memory, cpu router, sm_etwork_compoet_ext, memory, cpu sm_gateway, memory, cpu sm_hub, memory, cpu sm_priter, etpriter, memory, cpu maiframe, sm_host, memory, cpu sm_etwork_compoet, memory, cpu atmswitch, sm_etwork_compoet_ext, memory, cpu HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 49
HP Discovery ad Depedecy Mappig Ivetory Device:DeviceCategory_ID field 1000000001, 1000000010, 1000000022, 1000000026, 1000000027, 1000000030, 1000000031, 1000000062, 1000000063, 1000000074, 1000000075, 1000000081, 1000000082, 1000000085, 1000000086, 1000000103, 1000000107, 1000000108, 1000000111, 1000000134, 1000000149, 1000000150, 1000000152, 1000000155, 1000000168, 1000000174 1000000004, 1000000036, 1000000064, 1000000095, 1000000143, 1000000145, 1000000146, 1000000148, 1000000153, 1000000156 1000000029, 1000000151 1000000037, 1000000147 1000000021 1000000005, 1000000009, 1000000015, 1000000055, 1000000056, 1000000057, 1000000093, 1000000096, 1000000098, 1000000099, 1000000102, 1000000104, 1000000116, 1000000142, 1000000167 Other values Asset Maager CI Type (for 1 Asset Maager CI, 1 or more CIs are created i HP Uiversal CM- DB. This colum lists for which CI Types those CIs are created). host_ode, sm_host, memory, cpu amcomputer:computertype field Computer servers Desktop computers Uix server computer Uix desktop computer Firewall Switch Computer Virtual machie (Directly created i Asset Maager) VMWare ESX Server (Directly created i Asset Maager) VMWare VirtualCeter (Directly created i Asset Maager) Laptop (Directly created i Asset Maager) Solaris Zoe Server (Directly created i Asset Maager) HP Uiversal CMDB host_ode, sm_host, memory, cpu uix, sm_host, memory, cpu uix, sm_host, memory, cpu firewall, sm_etwork_compoet_ext, memory, cpu switch, sm_etwork_compoet_ext, memory, cpu host_ode, sm_host, memory, cpu host_ode, sm_host, memory, cpu t, sm_host, memory, cpu t, sm_host, memory, cpu host_ode, sm_host, memory, cpu uix, sm_host, memory, cpu 50 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Note: I HP Uiversal CMDB the CI Type is also flagged as Host is desktop or Host is virtual. How are some of the CI attributes defied? [page 58] You may associate the Device:DeviceCategory_ID values to other amcomputer:computertype values, but you must keep the values already defied for amcomputer:computertype. This is doe i the <HP Coect-It istallatio folder>>\cofig\ed\ddmi75\mpt\ddmi.mpt file (DeviceCategoryAMComputerType maptable). HP Coect-It guide called User's guide, chapter Implemetig a itegratio sceario, sectio Defie mappig scripts / Editig associated files / Maptables. Recociliatio keys used to lik a model to the Asset Maager portfolio items The followig recociliatio keys are used to lik the Asset Maager portfolio items to a model: Key i Asset Maager HP Discovery ad Depedecy Mappig Ivetory value searched for i the Asset Maager key If the portfolio item is a virtual machie ammodel:name [VMIformatio.VMHost.Host_Type] If the portfolio item is ot a virtual machie ammodel:name [hwsmbios.hwsmbiossystemiformatio(0).hwsmbiosproductname], [hwbios- Data.hwBiosMachieModel], [Model.Model_Name], [DeviceCategory.DeviceCategory_Descriptio] Recociliatio keys used to lik a model to a Asset Maager categorizig model The model associated to the portfolio item is liked to a model used for categorizatio purposes. The followig recociliatio keys are used to lik the Asset Maager model to a categorizatio model: HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 51
If the portfolio item is ot a virtual machie or virtual machie host Key i Asset Maager ammodel:barcode HP Discovery ad Depedecy Mappig Ivetory value searched for i the Asset Maager key HP Coect-It searches a Asset Maager record for which amprod- ClassCode:UspscKey = DeviceCategory:UNSPSC_ID i HP Discovery ad Depedecy Mappig Ivetory. If such a record is foud, HP Coect-It searches for the model associated to the UNSCPSC record i the amprodclasscode table. This model is the oe used as a categorizig model for the model associated to the portfolio item (ammodel:paret lik). If the portfolio item is a virtual machie The portfolio item model is liked to a the paret model for which ammodel:barcode = VMCPU If the portfolio item is a virtual machie host The portfolio item model is liked to a the paret model for which ammodel:barcode = SERVER Nature liked to the Asset Maager portfolio models Case If the portfolio item is a virtual machie If the portfolio item is ot a virtual machie Asset Maager ature Nature for which amnature:code = CPUVM Nature for which amnature:code = CPU Recociliatio key used to lik the portfolio items to a etwork card Portfolio items are liked to a etwork card usig the followig recociliatio keys: 52 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Key i Asset Maager amnetworkcard:physaddress HP Discovery ad Depedecy Mappig Ivetory value searched for i the Asset Maager key 1 hwnetworkdata.hwnetworkcards.hwn- ICPhysicalAddress] 2 [hwnetworkdata.hwnetworknames.hw- LocalMachieID] & " - " & [hwnetwork- Data.hwNetworkCards.hwNetwork- Cards_Seq], else "N / A" & " - " & [hwnet- workdata.hwnetworkcards.hwnetwork- Cards_Seq] Asset Maager -> HP Uiversal CMDB Overview of the Asset Maager > HP Uiversal CMDB itegratio Overview [page 23] Are CIs federated or replicated? CIs are either replicated or federated. This depeds o their CI Type. To uderstad which CI Types are federated ad which are replicated from Asset Maager to HP Uiversal CMDB: 1 Start UCMDB Server. 2 Ope a iteret browser ad coect to UCMDB Server. 3 Select the Settigs/ Federated CMDB meu optio. 4 Select AMDBAdapter i the list of adapters. 5 Display the Supported CI Types tab. 6 CI Types for which the checkboxes are checked are federated. The others are replicated. Warig: Chages to these selectios are ot supported. For defiitios of data federatio ad replicatio: Federatio [page 75] ad Replicatio [page 76] I what coditios are amcomputer records replicated to HP Uiversal CMDB? amcomputer records are replicated if the followig coditios are met: HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 53
The portfolio item liked to the amcomputer record is i use (amportfolio:seassigmet = I use). The amcomputer record is liked to at least oe etwork card (amcomputer:networkcards lik), whose amnetworkcard:tcpipaddress ad amnetworkcard:physaddress fields are populated. The amcomputer:computertype field of the amcomputer record must have a value that is preset i the secod colum of the DeviceCategory_ID -> Computer type -> CI Type mappig [page 49] table. Ca diff replicatio be used? HP Uiversal CMDB offers 2 kids of replicatios: Full replicatio: a replicatio is doe for all Asset Maager CIs. Diff replicatio: a replicatio is doe for Asset Maager CIs oly if the CI has bee created or updated sice the last Full or Diff replicatio job was executed. For a update, the replicatio job compares the HP Uiversal CMDB host.root_updatetime field (mapped o amcomputer.dtlastmodif field i Asset Maager) with the last Full or Diff replicatio job executio time. For a creatio, the replicatio job compares the HP Uiversal CMDB host.root_createtime field (mapped o amportfolio.dtsacmcreate field i Asset Maager) with the last Full or Diff replicatio job executio time. Diff replicatio jobs take less time tha Full replicatio jobs. There is a drawback to the diff replicatio: i Asset Maager, amcomputer.dtlastmodif is updated oly if a field or lik is chaged i the amcomputer table, although CIs are described i other tables, i particular amasset ad amportfolio. For istace, if the amportfolio:seassigmet field chages for a CI, ad o field chages i amcomputer, the amcomputer.dtlastmodif is ot updated. Therefore, we recommed that you ru a full replicatio periodically to catch up with all chages i Asset Maager database. Here is the list of all fields for which chages i Asset Maager may ot be caught by a diff replicatio: Asset Maager field amportfolio.seassigmet ammodel.name CI Type host host Correspodig HP Uiversal CMDB attribute data_ote host_model 54 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Asset Maager field amasset.serialno amasset.descriptio ambrad.name amempldept.name + amempldept.firstname amempldept.mobilephoe amempldept.title amempldept.phoe amasset.serialno amcostceter.title amlocatio.city + amcoutry.name amlocatio.name amlocatio.name amlocatio.name amempldept.name amnetworkcard.defaultgateway amnetworkcard.dnssuffixes ammodel.name amasset.smaxcxcout ambrad.name amportfolio.seassigmet ammodel.name amasset.descriptio amnetworkcard.bdhcpeabled amnetworkcard.dhcpserver amnetworkcard.tcpipaddress amnetworkcard.subetmask amnetworkcard.physaddress amnetworkcard.descriptio amportfolio.seassigmet CI Type host host host SM device SM device SM device SM device SM device SM device SM device SM device SM device SM device SM device SM device SM device SM Host SM Base Network Compoet SM Base Network Compoet SM Network Compoet SM Network Compoet SM Network Compoet IP IP IP IP Network iterface Network iterface Network iterface Correspodig HP Uiversal CMDB attribute host_serialumber data_descriptio host_maufacturer cotact_ame cotact_cellphoe title cotact_telephoe bios_serialumber cost_ceter locatio room floor buildig departmet default_gateway domai_suffix bios_model umber_of_ports maufacturer data_ote model data_descriptio ip_isdhcp is_dhcpdomaiame ip_address ip_etmask iterface_macaddr iterface_descriptio data_ote What is created i HP Uiversal CMDB? Whe a CI is replicated/federated from Asset Maager to HP Uiversal CMDB: A CI is created i HP Uiversal CMDB. Its CI Type depeds o the value of the amcomputer:computertype field. Value of the Asset Maager amcomputer:computertype field [page 49] HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 55
For each record i the amcomputer:networkcards collectio attached to the Asset Maager CI, two CI types are created i HP Uiversal CMDB: IP, ad Network iterface. IP ad Network Iterface CIs are created by mappig attributes from the Asset Maager amnetworkcard table: amnetworkcard:tcpipaddress is used to create a IP CI. amnetworkcard:physaddress is used to create a Network Iterface CI. Warig: If 2 Asset Maager CIs have the same value for amcomputer:physicaladdress, 1 host CI is created i HP Uiversal CMDB with 2 liked sm_host CIs. Recociliatio keys for the creatio/update of root CI types The recociliatio from Asset Maager to HP Uiversal CMDB creates 2 CI types at the root level: host ad sm_etwork_compoet. If CI Type = host: Key i HP Uiversal CMDB host:host_key Asset Maager value searched for i the HP Uiversal CMDB key Smallest amnetworkcard:physaddress value of the etwork cards attached to the host If CI Type = sm_etwork_compoet: Key i HP Uiversal CMDB sm_device:device_id Asset Maager value searched for i the HP Uiversal CMDB key amportfolio.assettag value of the amcomputer record to which the etwork cards are liked. Recociliatio keys for the creatio/update of CI types attached to the root CI types If CI Type = host: Key i HP Uiversal CMDB host:host_systemassettag Asset Maager value searched for i the HP Uiversal CMDB key amasset:assettag 56 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Key i HP Uiversal CMDB If first key ot foud: ip:ip_address Asset Maager value searched for i the HP Uiversal CMDB key amcomputer:tcpipaddress If CI Type = sm_etwork_compoet: Key i HP Uiversal CMDB sm_etwork_compoet:asset_tag If first key ot foud: ip:ip_address Asset Maager value searched for i the HP Uiversal CMDB key amasset:assettag amcomputer:tcpipaddress Recociliatio betwee Asset Maager ad HP Uiversal CMDB is performed usig the rules defied i the recociliatio_rules.txt file. Example of how the TQLs proceed whe they display CPU CIs attached to a replicated host CI type usig federatio: the attributes of the CPU CI defied i the orm.xml mappig file are retrieved from Asset Maager the attributes of the CPU CI type defied i recociliatio_rules.txt (usig the host:host_systemassettag ad ip:ip_address recociliatio keys) are also retrieved i Asset Maager. Here is the recociliatio algorithm that is executed whe you preview the TQLs for this example: If host_systemassettag of CPU matches oe host_systemassettag i list of r eplicated ucmdb hosts, the the CPU is liked to the host Else if ip_ip_address of CPU (TcpIpAddress i amcomputer) matches oe ip_a ddress of list of ip CIs liked to the ucmdb hosts, the the CPU is liked to the correspodig host Else, CPU ot liked to host What happes whe chages occur i Asset Maager durig replicatio? If the value of the amportfolio:seassigmet field for a CI is o loger I use, the correspodig CI is deleted from HP Uiversal CMDB ucmdb with all its cotaier_f liks but the associated IPs remais i HP Uiversal CMDB. However, they will be aged out if the agig mechaism is active. However, if the IT equipmet record is deleted from Asset Maager, the previously replicated CI remais i HP Uiversal CMDB. Chages i amportfolio:seassigmet are take ito accout oly if the amcomputer:dtlastmodif field chages for the computer record. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 57
I what coditios are amcomputer records replicated to HP Uiversal CMDB? [page 53] Whe a Network Card is deleted i Asset Maager, the correspodig IP ad Network Iterface CIs are detached from their hosts i HP Uiversal CMDB but remai i HP Uiversal CMDB attached to o host. Whe a Network Card is updated i Asset Maager by chagig either its IP Address (amcomputer:tcpipaddress) or its Physical address (amcomputer:physicaladdress), a ew IP or Network Iterface is created i HP Uiversal CMDB without deletig the old oes. If you chage the amasset:assettag of a CI after it has bee replicated to HP Uiversal CMDB (as a host + liked sm_host CIs), a additioal sm_host host CI will be created ad liked to the origial host CI. If you chage the value amcomputer:computertype after a CI has bee replicated to HP Uiversal CMDB, you will ot be able to go through the ext replicatio uless you delete the previous CI from HP Uiversal CMDB. How are some of the CI attributes defied? CI Type Whe a CI is replicated to HP Uiversal CMDB, it's CI Type is defied accordig to the value of amcomputer:computertype i Asset Maager. The mappig betwee the values of amcomputer:computertype ad the HP Uiversal CMDB CI Type is defied i the <HP Uiversal CMDB istallatio folder>\j2f\fcmdb\codebase\amdbadapter\meta-inf\discrimiator.properties file. A summary of the mappig ca be foud at the followig locatio: Value of the Asset Maager amcomputer:computertype field [page 49]. Host is Virtual Whe a CI is replicated to HP Uiversal CMDB, the Host is Virtual attribute of the CI is defied accordig to the value of amcomputer:computertype for the CI i Asset Maager. The mappig betwee the values of amcomputer:computertype ad the Host is Virtual attribute is defied i the followig file. <HP Uiversal CMDB istallatio folder>\j2f\fcmdb\codebase\amdbadapter\met A-INF\server_virtual_distiguisher.properties 58 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
If the value of amcomputer:computertype i Asset Maager is... Virtual Machie Widows computer Widows desktop computer VMware Virtual Ceter VMware ESX server Uix server computer Uix desktop computer Solaris Zoe Server Desktop computers Computer servers Laptop Maiframe ATM switch Firewall Router Switch Network priter the value of Host is Virtual i HP Uiversal CMDB is... Yes No Host is Desktop Whe a CI is replicated to HP Uiversal CMDB, the Host is Desktop attribute of the CI is defied accordig to the value of amcomputer:computertype for the CI i Asset Maager. The mappig betwee the values of amcomputer:computertype ad the Host is Desktop attribute is defied i the followig file: <HP Uiversal istall directory>\j2f\fcmdb\codebase\amdbadapter\meta-inf\server_desktop_distiguisher.properties If the value of amcomputer:computertype i Asset Maager is... Widows desktop computer Uix desktop computer Desktop computers the value of Host is Desktop i HP Uiversal CMDB is... Yes HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 59
If the value of amcomputer:computertype i Asset Maager is... Widows computer VMware Virtual Ceter VMware ESX server Uix server computer Solaris Zoe Server Computer servers Laptop Maiframe ATM switch Firewall Router Switch Network priter the value of Host is Desktop i HP Uiversal CMDB is... No IP Domai ames Whe replicatig IP data from Asset Maager to HP Uiversal CMDB, the ip:ip_domai attribute value of the IP CI Type is populated with the DefaultDomai. If you would like to use aother value, chage oe of the followig lies i the <HP Uiversal CMDB istallatio folder>\j2f\fcmdb\codebase\amdbadapter\meta-inf\fixed_values.txt file: etity[ip] attribute[ip_domai] value[defaultdomai] etity[ip] attribute[ip_domai] value[${defaultdomai}] Supported TQLs To uderstad which TQLs are supported; display the defiitios i HP Uiversal CMDB: 1 Start HP Uiversal CMDB 2 Select the Modelig/ Query Maager meu optio. 3 Select Itegratio/ SM Query 4 Supported TQLs i this folder are : hostdata hostrelatiosdata etworkdata1 etworkdata2 etworkrelatiosdata 60 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
priterdata 5 Select Itegratio/ SM Syc 6 Supported TQLs i this folder are : hostextededdata etworkcompoetextededdata1 etworkcompoetextededdata2 priterextededdata HP Uiversal CMDB -> Asset Maager Overview Overview [page 39] HP Uiversal CMDB is the authoritative source of busiess services (Asset Maager is the authoritative source of host CIs to which a Busiess Service is liked;). By default the scope of the itegratio takes two CI Types ito accout: CI Type = Busiess Service CI Type = Applicatio, where the applicatio is also attached to a CI Type = Busiess Service HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 61
Busiess services are replicated provided they comply with the followig diagram: A HP Uiversal CMDB busiess service is replicated i Asset Maager as a busiess service asset plus cliet-resource relatioships for the followig hosts: All hosts liked to a Busiess Service All hosts liked to a Applicatio All hosts attached to a group attached to a Applicatio. (All hosts, provided they already exist i Asset Maager.) The applicatio is liked to the computers that form the group, but ot to the group. For all these relatioships, the amclietresource:crtype field is set to Withi '<Name of the AM Busiess Service>', uses. Note: CIs ot preset i Asset Maager are ot created, oly busiess service assets ad relatioships with existig CIs. For successful replicatio, the structure of the Busiess Services must coform to that required i the supplied Busiess Services TQL ad reflected i BusiessServices.xml. This cofiguratio is that take ito accout by the HP Coect-It sceario. It is customizable, but chages require modificatios to the HP Coect-It sceario. 62 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Recociliatio keys If CI Type = Busiess Service Key i Asset Maager amasset:assettag HP Uiversal CMDB value searched for i the Asset Maager key Busiess Service:data_ame Warig: The HP Uiversal CMDB key is ot uique. Thus you should verify that their values are uique. If CI Type = Applicatio Key i Asset Maager amasset:assettag HP Uiversal CMDB value searched for i the Asset Maager key Applicatio:data_ame Warig: The HP Uiversal CMDB key is ot uique. Thus you should verify that their values are uique. Busiess services-host relatioships Key i Asset Maager amasset:assettag HP Uiversal CMDB value searched for i the Asset Maager key host:host_systemassettag Warig: The host:host_systemassettag is ot a uique key i HP Uiversal CMDB. The values should be uique though. If you do ot create CIs maually i HP Uiversal CMDB, this should be the case, because CIs will come from Asset Maager ad use the amasset:assettag which is uique ad used as a recociliatio key from Asset Maager to HP Uiversal CMDB. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 63
What happes whe If i HP Uiversal CMDB you ulik a host from a root busiess service, the host is ot uliked i Asset Maager. Whe a busiess service is deleted from HP Uiversal CMDB, it is ot deleted i Asset Maager. HP Service Maager <-> Asset Maager Overview Overview [page 41] What happes whe a CI does ot exist i HP Service Maager If a CI does ot exist i HP Service Maager yet whe a PPT/CI lik is preseted, a Asset Maager output evet is created by the HP Coect-It scearios. HP Coect-It will try ad process the output evets wheever the sceario is reru. Note that output evets automatically expire accordig to the Asset Maager database optios: 1 Start the Asset Maager Widows cliet ad coect to the database. 2 Use the Admiistratio/ Database optios... meu. 3 Cofigure the Evet maagemet/ Expiratio time for output evets (hours) optio. Recociliatio keys for amsm-ppt.sc Compaies Key i HP Service Maager compay:customer.id Asset Maager value searched for i the HP Service Maager key amcompay:code Oly Asset Maager compaies for which amcompay:qualif1 = Paret compay are replicated. For laguages other tha Eglish, the <HP Coect-It istallatio folder>\cofig\ac\strigs\qualif.str file must be customized. The 64 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Vedors ID of the strig to modify i this file is AMQUALIF_PARENT. Replace Paret compay with the right strig for your laguage. The Asset Maager amcompay:code field must be populated. Key i HP Service Maager vedor:vedor AND vedor:locatio Asset Maager value searched for i the HP Service Maager key amcompay:name amcompay:maisite:barcode Locatios Key i HP Service Maager locatio:locatio Asset Maager value searched for i the HP Service Maager key amlocatio:barcode The Asset Maager amlocatio.barcode field must be populated. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 65
Departmets Key i HP Service Maager dept:compay + dept:dept Asset Maager value searched for i the HP Service Maager key amempldept.locatio.compay.code Recociliatio uses the followig rule: RetVal = RemoveSlashAtExtremity([FullNa me]) If [Locatio.Compay.Code] <> "" The RetVal = [Locatio.Compay.Code] & "/" _ & RetVal Ed If Example: I Asset Maager, we have 4 departmets: Departmet NameA FullName = /NameA/ Departmet NameB uder NameA FullName = /NameA/NameB/ Departmet NameC uder NameB FullName = /NameA/NameB/NameC/ Departmet NameD uder NameC FullName = /NameA/NameB/NameC/NameD/ NameD is liked to a locatio liked to a compay with amcompay:code = COMPANY_CODE SM The key for NameD is COM- PANY_CODE/NameA/NameB/NameC/NameD. The key for NameC is NameA/NameB/NameC. Oly Asset Maager departmets for which amempldept.bdepartmet = 1 are replicated. 66 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Cotacts Key i HP Service Maager cotacts:cotact.ame Asset Maager value searched for i the HP Service Maager key amempldept:name, Name:FirstName (amempldept:barcode) Importat: amempldept:name ca be 50 characters log, Name:FirstName 30 characters ad amempldept.barcode 255. But cotacts.cotact.ame ca oly store 140 characters. If the amempldept.barcode field does ot exceed 55 characters, the recociliatio keys should work fie. Models Key i HP Service Maager model:part.o Asset Maager value searched for i the HP Service Maager key ammodels:barcode Note: The Asset Maager ammodels.barcode field must be populated. Stock rooms Key i HP Service Maager stockroom:stockroom Asset Maager value searched for i the HP Service Maager key amstock:name Recociliatio keys for amsm-ci-ppt-lik.sc Liks betwee device CIs ad PPT objects Key i HP Service Maager device:logical.ame Asset Maager value searched for i the HP Service Maager key amcomputer:assettag HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 67
Key i HP Service Maager Devices are liked to the followig objects: Cotact Model Vedor Locatio Departmet Asset Maager value searched for i the HP Service Maager key The same keys are used as for the trasfer of PPTs themselves. See tables above. The Asset Maager amcomputer:assettag field must be populated. Recociliatio keys for smam-ppt.sc The smam-ppt.sc sceario uses the SACMItegratio web service. Locatios ad their lik to a compay ad a coutry Key i Asset Maager amlocatio:barcode amcompay:code amlocatio:coutry:name HP Service Maager value searched for i the Asset Maager key locatio:locatio locatio:compay locatio:coutry Compaies If o coutry ca be foud for which amcompay:code = locatio:coutry, the locatio will be liked to a locatio with amcompay:code = Ukow coutry. Make sure the Asset Maager amcompay:code field is populated. Make sure the Asset Maager amcoutry:name field is populated with uique values. smam-ppt.sc uses the ScCoutryToAc map table i the catmod.mpt file to map HP Service Maager coutries to Asset Maager coutries. Key i Asset Maager amcompay:code amcompay:maisite:name amcompay:sites:name HP Service Maager value searched for i the Asset Maager key compay:compaycode compay:compaycode compay:compaycode Make sure the Asset Maager compay:compaycode field is populated with uique values. 68 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Make sure the Asset Maager amcompay:code field is populated. HP Service Maager Compaies replicated as Asset Maager departmets Key i Asset Maager amempldept:barcode amempldept:locatio:fullname HP Service Maager value searched for i the Asset Maager key compay:compaycode compay:compaycode Departmets Make sure the HP Service Maager compay:compaycode field is populated with uique values. amempldept:bdepartmet is set to 1. Key i Asset Maager amempldept:fullname HP Service Maager value searched for i the Asset Maager key dept:dept.structure Cotacts amempldept:bdepartmet is set to 1. A fuctio coverts dept:dept.structure to amempldept:fullname. Key i Asset Maager amempldept:barcode amempldept:locatio:barcode amempldept:paret:fullname HP Service Maager value searched for i the Asset Maager key cotacts:cotactame cotacts:locatio cotacts:dept Operators Make sure the HP Service Maager cotacts:locatiocode field is populated with uique values. Key i Asset Maager amempldept:barcode amempldept:workuit:descriptio amempldept:workuit:model:name HP Service Maager value searched for i the Asset Maager key operator:ame operator:ame The sceario liks the employee to the model for which ammodel:name = Hourly rate Operators is a extesio of the cotacts table. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 69
Vedors After cotacts have bee imported, operators are imported to populate amempldept:workuit. A model is created i Asset Maager with ammodel:name = Hourly rate. This model is liked to a ature (which must pre-exist) with amnature:code = TCO_WORK_UNIT ad also liked to a paret model which ammodel:name = Work uit ad which will be created if it does ot exist. The paret model must also be liked to a similar ature. This must be created by had or ca be retrieved through the import of Fiacials - Lie-of-busiess data (TCO-budgets-chargeback). Key i Asset Maager amcompay:name amcompay:maisite:fullname amcompay:maisite:coutry:name amcompay:cotact:firstname + amcompay:cotact:name HP Service Maager value searched for i the Asset Maager key vedor:vedor vedor:vedor.id + vedor:vedor.locatio vedor:coutry vedor:cotract.perso vedor:order.perso vedor:sales.mgr vedor:service Make sure vedor:cotract.perso, vedor:order.perso, vedor:sales.mgr ad vedor:service use the <Last ame>, <First ame> format. This is split ito amcompay:cotact:firstname ad mcompay:cotact:name i Asset Maager. Make sure the HP Service Maager vedor:vedor field is populated with uique values. If two differet HP Service Maager vedors have the same value for the vedor:vedor field i HP Service Maager i differet locatios, oly the first vedor is imported to Asset Maager. Make sure the HP Service Maager vedor:vedor.locatio + vedor:vedor.id fields are populated with uique values. If two HP Service Maager vedors have the same value for the vedor:vedor.locatio field ad for the vedor:vedor.id field although they are liked to differet locatios (address differs), the two vedors will be liked to the same locatio (the first that was trasferred to Asset Maager) Make sure the Asset Maager amcoutry:name field is populated with uique values. 70 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
The HP Coect-It sceario uses the ScCoutryToAc map table i the catmod.mpt file to map amcoutry:name. HP Service Maager vedor sites replicated as compaies i Asset Maager Key i Asset Maager amlocatio:fullname amlocatio:compay:name HP Service Maager value searched for i the Asset Maager key vedor:vedor.id + vedor:locatio are used to create a full ame vedor:vedor Make sure the HP Service Maager vedor:vedor.id + vedor:locatio fields are populated with uique values. If two HP Service Maager vedors have the same value for the vedor:vedor.id + vedor:locatio fields although they are liked to differet locatios (address differs), the two vedors locatios will result i a sigle locatio i Asset Maager (the first that was trasferred to Asset Maager) Whe vedors were created ( Vedors [page 70]): If two differet HP Service Maager vedors have the same value for the vedor:vedor field i HP Service Maager i differet locatios, oly the first vedor is imported to Asset Maager. So whe the locatio created by this mappig is liked to a compay, it may be associated to the wrog compay. Stocks Key i Asset Maager amstocks:name amstock:supervisor:barcode amstock:delivlocatio:field1 HP Service Maager value searched for i the Asset Maager key stockroom:stockroom stockroom:maager locatio:locatio Models Key i Asset Maager ammodel:barcode ammodel:brad:name + ammodel:brad:compay:name ammodel:nature:code ammodel:paret:barcode HP Service Maager value searched for i the Asset Maager key model:part.o model:maufacturer model:category model:category HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 71
Key i Asset Maager ammodel:photo HP Service Maager value searched for i the Asset Maager key if [RetrieveSACMModelRespose.model.is tace.attachmets.attachmet(0).ame] = "" the RetVal = [RetrieveSACMModelRespose.mod el.istace.model] + "_" + [RetrieveSAC MModelRespose.model.istace.PartNumbe r] else RetVal = "SM_" & [RetrieveSACMModelResp ose.model.istace.attachmets.attachm et(0).ame] ed if ammodel:nature:code is mapped usig the ScToAcNature map table located i <HP Coect-It istallatio folder>\sceario\ac\ac52\sacm\mpt\catmod.mpt. The atures listed i the ScToAcNature map table must exist i the Asset Maager database. A model is ot created i Asset Maager uless at least oe of followig is populated i HP Service Maager: model:model, model:partnumber, model:category. Recociliatio keys for smam-wo.sc This sceario propagates details of uplaed chages ad tasks from HP Service Maager to Asset Maager as Work Orders. The relevat liks betwee CIs ad PPT data are propagated from Asset Maager to HP Service Maager by aother HP Coect-It sceario. 72 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Chages-> Workorders Key i Asset Maager amworkorder:wono HP Service Maager value searched for i the Asset Maager key cm3r:header.umber Tasks-> Workorders Key i Asset Maager amworkorder:wono HP Service Maager value searched for i the Asset Maager key cm3t:header.umber For the correspodig CI Key i Asset Maager amcomputer:assettag HP Service Maager value searched for i the Asset Maager key device:logical.ame HP Service Maager -> HP Uiversal CMDB This sectio explais how HP Service Maager retrieves actual state iformatio about CIs. Displayig the actual state of CIs is a stadard HP Service Maager feature. The actual state reflects the real attributes of a CI. Most of the time, these attributes will be retrieved through HP Discovery ad Depedecy Mappig Ivetory ivetory data that is replicated to Asset Maager, ad the replicated/federated to HP Uiversal CMDB. To retrieve actual state data, HP Service Maager calls a HP Uiversal CMDB Web service. This Web service calls TQLs. The TQLs retrieve Asset Maager data through federatio ad replicatio. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 73
74 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
4 Glossary Actual State The actual state of a CI (Cofiguratio Item) is its actual cofiguratio, ad icludes such attributes as istalled software, IP addresses ad file systems. This may differ from its maaged state. Federatio Data federatio aims to efficietly joi data from multiple heterogeeous sources, leavig the data i place -- without creatig data redudacy. The data federatio patter supports data operatios agaist a itegrated ad trasiet (virtual) view where the real data is stored i multiple diverse sources. The source data remais uder the cotrol of the source systems ad is pulled o demad for federated access. HP Uiversal CMDB federatio, for istace, allows Asset Maager data to be viewed ad leveraged by other HP Software solutios, such as HP Service Maager. A alterative strategy to data Federatio is data Replicatio. Replicatio [page 76] HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 75
Maaged State The maaged state of a CI (Cofiguratio Item) is its officially maaged cofiguratio. This may differ from its actual state. PPT Data relatig to People, Places ad Thigs. This is sychroized betwee HP Service Maager ad Asset Maager usig HP Coect-It. The sychroized PPTs iclude: Compaies Vedors Locatios Departmets Cotacts Models Stock rooms Replicatio Data replicatio is a storage strategy that copies data from a host database to aother. Oe database maitais the master copy of the data ad additioal databases maitai slave copies of the data. HP Coect-It, for istace, allows HP Discovery ad Depedecy Mappig Ivetory data to be replicated to Asset Maager. A alterative strategy to data Replicatio is data Federatio. Federatio [page 75] SACM Service Asset ad Cofiguratio Maagemet is a ITIL process. The objective of SACM is to maitai iformatio about Cofiguratio Items required to deliver a IT service, icludig their relatioships. 76 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
TQL (Topology Query Laguage) The SACM itegratio uses a collectio of Topology Query Laguage (TQL) queries to gather CI attribute iformatio from Asset Maager to HP Uiversal CMDB ad from HP Uiversal CMDB to HP Service Maager. UNSPSC Uited Natios Stadard Products ad Services Code. UNSPSC provides a ope, global multi-sector stadard for efficiet, accurate classificatio of products ad services. HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 77
78 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet
Idex A Actual State, 37 customizig attributes, 38 Asset Maager itegratig with Service Maager, 41 itegratig with UCMDB, 39 Asset Maager adapter creatig, 28 creatig data store, 29 Asset Maager data store creatig, 29 B Busiess Services ature ad model, 39 recociliatio keys, 61 trasfer from HP Uiversal CMDB to Asset Maager, 39 C CIs Actual State, 37 CI Types sychroizig, 53 Compatibility supported product versios, 15 Cofiguratio Items federatio versus replicatio, 53 Coectors cofigurig, 45 HP Service Maager Web Service, 41 D Data mappig, 47 Data store, 29 DDMi itegratig with Asset Maager, 19 Distributio package, 16 Documetatio, 8 dtsacmcreate field addig to amportfolio, 25 F Fiacials - Lie-of-busiess data (TCO-budgets-chargeback), 44 H HP Coect-It istallig scearios, 17 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet 79
HP Discovery ad Depedecy Mappig Ivetory, 19 HP Service Maager itegratio, 41 I Istallig compoets, 15 IP domais, 60 ITIL compliacy, 10 L Lie-of-busiess data, 44, 20 M Mappig file, 34 O Olie help, 8 U UCMDB itegratig with Asset Maager, 39 itegratig with Asset Maager, 23 itegratig with Service Maager, 34 UNSPSC, 20 V Views creatig, 23 W Web services SACMItegratio, 42 Work Orders recociliatio keys, 72 Z zip files, 16 P Prerequisites, 16 R Recociliatio keys overview, 47 Replicatio job creatig, 32 S Scearios istallig, 17 output evets, 64 schedulig, 46, 41, 22 Service Maager itegratig with Asset Maager, 41 itegratig with UCMDB, 34 SQL Views creatig, 23 Sychroizig CI Types, 53 80 HP Asset Maager 5.20 - Service Asset ad Cofiguratio Maagemet