Menu

PC status synchronization problem

2023-02-09
2023-04-04
  • flenner Emmanuel

    Hello,

    I have a problem that I can't solve.

    I would like the status of the PCs not to be modified by the synchro between OCS and ITOP.

    I modified the file ocsng-data-collector/collectors/OCSPCCollector.json by putting this :

            "attcode": "status",
            "update": "0",
            "reconcile": "0",
            "update_policy": "master_unlocked",
            "finalclass": "SynchroAttribute",
            "friendlyname": "status"
    

    But every time I run a sync, on ITOP, the parameters come back to this state:

    Field, Reconciliation, Update, Update policy
    Status No Yes Master (locked)

    Do you know where the problem comes from?

    Best regards,
    Emmanuel

     
  • schirrms

    schirrms - 2023-02-22

    Hi Emmanuel,
    Just stumble aver the same situation for another data collector bundle.
    In my case, the explanation was that the status field was set in the params.local.xml file in the form of
    ~~~
    <vspherefarmcollector>
    <fields>
    <status>
    <json>
    <update>1</update>
    </json>
    </status>
    </fields></vspherefarmcollector>
    ~~~

    (the exact syntax is a wild guess, in my case, the field was not 'update', but, if this is your situation, you should be able to fine tune my answer :))

    And, if set, this parameter take precedence over the value in the json file.

    HTH,

    Pascal

     
  • flenner Emmanuel

    Hello Pascal,

    You are talking about the params.local.xml file.

    But in which directory is it located?

    Emmanuel

     
  • schirrms

    schirrms - 2023-04-04

    Hi Emmanuel,

    i don't think that the file exists by default. You can create one, in the 'conf' directory. Values in the params.local.xml file take precedence over the txo params.distrib.xml files (one in the conf directory (i think) and the other in the connector directory (Again, speaking from memory). I'm sure that there are two files :) So, if you don't have a params.local.xml file the values a readen from the params.distrib.xml files.

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.