UCMDB and UD Practitioners Forum (Previously CMS)
cancel

CI attributes not pushed to HP servicemanager

Highlighted
RonaldB
Respected Contributor.

CI attributes not pushed to HP servicemanager

Hi,

 

I'm experiencing difficoulties in getting new related ci information to hp servicemanager. The issue is that the fields that i need do not come in the transformated xsl, it should be simple but i don't get it...so i'll hope for a fresh look on this....

 

All the attributes that i need are in the Source CI tree line: (what i innitally need is the contract_ref)

2012-02-24 15:38:17,953 [869072425@Default-1202] DEBUG - Koppeling met SM >> Starting sync for TQL: CEN-hostData
2012-02-24 15:38:17,958 [869072425@Default-1202] DEBUG - Koppeling met SM >> Source CI tree is: <node CustomerId="YRD01" bios_uuid="35303737-3830-435A-4A30-303130324A44" customer_id="1" default_gateway_ip_address="172.23.1.1" discovered_model="ProLiant BL460c G6" discovered_os_name="Linux" discovered_os_vendor="VMware" discovered_os_version="2.6.18-164.ESX" discovered_vendor="HP" display_label="yrd-vts10.klant1.nl" folder="SMC-G" friendlyType="Unix" global_id="7f24b75718da6cfad8f3a0d8de969163" id="7f24b75718da6cfad8f3a0d8de969163" memory_size="389" name="yrd-vts10" node_role="&lt;Values&gt;&lt;Value&gt;server&lt;/Value&gt;&lt;/Values&gt;" primary_dns_name="yrd-vts10.klant1.nl" primary_ip_address="172.23.3.62" root_class="unix" serial_number="CZJ00102JD" user_label="yrd-vts10.klant1.nl"><interfaces direction="outgoing" linkType="Composition"><interface customer_id="1" friendlyType="Interface" id="bd69a94a6bb2247b7ac466c4c69474b7" mac_address="F4CE46B4456C" root_container="HiddenChangesAuthorizedDataSource%0Aunix%0A1%0Ainternal_id%3DSTRING%3D7f24b75718da6cfad8f3a0d8de969163%0A"/><interface customer_id="1" friendlyType="Interface" id="c05322a2f1451b7226d18ec1862638b5" mac_address="F4CE46B44568" root_container="HiddenChangesAuthorizedDataSource%0Aunix%0A1%0Ainternal_id%3DSTRING%3D7f24b75718da6cfad8f3a0d8de969163%0A"/><interface customer_id="1" friendlyType="Interface" id="f35ab7269b96a1473b17650775656eea" mac_address="0050564B1F49" root_container="HiddenChangesAuthorizedDataSource%0Aunix%0A1%0Ainternal_id%3DSTRING%3D7f24b75718da6cfad8f3a0d8de969163%0A"/><interface customer_id="1" friendlyType="Interface" id="b7a804a7f84df2bd5354f9439fe38b4c" mac_address="F4CE46B44568" root_container="HiddenChangesAuthorizedDataSource%0Aunix%0A1%0Ainternal_id%3DSTRING%3D7f24b75718da6cfad8f3a0d8de969163%0A"/><interface customer_id="1" friendlyType="Interface" id="3e53be9f9515047f4c777770506977ee" mac_address="F4CE46B4456C" root_container="HiddenChangesAuthorizedDataSource%0Aunix%0A1%0Ainternal_id%3DSTRING%3D7f24b75718da6cfad8f3a0d8de969163%0A"/><interface customer_id="1" friendlyType="Interface" id="367be1303624c18d34d22003c12f9aae" mac_address="0050564B1F49" root_container="HiddenChangesAuthorizedDataSource%0Aunix%0A1%0Ainternal_id%3DSTRING%3D7f24b75718da6cfad8f3a0d8de969163%0A"/></interfaces><ip_addresss direction="outgoing" linkType="Containment"><ip_address customer_id="1" friendlyType="IpAddress" id="141d8771466e76eb3c69f160caa7d48b" ip_netmask="255.255.255.0" name="172.23.1.48"/><ip_address customer_id="1" friendlyType="IpAddress" id="4788b10718bf6d7a6d4aab09cdbaa3ea" ip_netmask="255.255.0.0" name="172.23.3.62"/></ip_addresss><maintenance_contracts direction="outgoing" linkType="Containment"><maintenance_contract contract_ref="640093" contract_status="CONTRACT" customer_id="1" data_note="Maandag - Zondag 00.00 tot 24.00 (HP Carepack 7x24 response 4 uur)" description="HP BL460C G6 XEON E5530 (2.40GHZ-8MB/DDR3-1066 QC) 1P 6GB  (RDIM" friendlyType="MaintenanceContract" id="9dc88407462c8353fd23f5c5febf0a2b" navision_einddatum="04-02-13" navision_ingangsdatum="05-02-10" navision_klantnaam="klant1 Holding BV" navision_leverdatum="10-03-10" navision_order="82434" navision_serienummer="CZJ00102JD"/></maintenance_contracts><infrastructure_services direction="incoming" linkType="Managed Relationship"><infrastructure_service customer_id="1" friendlyType="InfrastructureService" id="9988bedf9a045f8a5db6aec39b43580b"/></infrastructure_services></node>

But when the real soap request is run to hpsm it doesn't contain these attributes.

2012-02-24 15:38:17,960 [869072425@Default-1202] INFO  - Koppeling met SM >> ======== start run soap message
2012-02-24 15:38:17,960 [869072425@Default-1202] INFO  - Koppeling met SM >> ========== create urs required time = 0
2012-02-24 15:38:17,962 [869072425@Default-1202] DEBUG - Koppeling met SM >> Run message <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:env="http://schemas.xmlsoap.org/soap/envelop/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><CreateucmdbComputerRequest><model><keys/><instance><file.device><UCMDBId>7f24b75718da6cfad8f3a0d8de969163</UCMDBId><CustomerId>YRD01</CustomerId><Folder>SMC-G</Folder><Subtype>Server</Subtype><DNSName>yrd-vts10.klant1.nl</DNSName><AddlMacAddress><AddlMacAddress>F4CE46B4456C</AddlMacAddress><AddlMacAddress>F4CE46B44568</AddlMacAddress><AddlMacAddress>0050564B1F49</AddlMacAddress><AddlMacAddress>F4CE46B44568</AddlMacAddress><AddlMacAddress>F4CE46B4456C</AddlMacAddress><AddlMacAddress>0050564B1F49</AddlMacAddress></AddlMacAddress></file.device></instance></model></CreateucmdbComputerRequest></SOAP-ENV:Body></SOAP-ENV:Envelope> for URL http://gda-sm-01.beheers.local:13091/sc62server/ws

 

The piece of code which should do this is:

<xsl:for-each select="maintenance_contracts">
    <addMaintContracts>
        <xsl:for-each select="maintenance_contract">
            <addMaintContracts>
               <NAVRefnumber><xsl:value-of select="@contract_ref"/></NAVRefnumber>
            </addMaintContracts>
        </xsl:for-each>
    </addMaintContracts>
</xsl:for-each>   

 

As you may be seeing, it's about a related maintenance_contract ci type which is related to a unix node.