This question was originally posted on DCIM Support by François on 2017-09-06
An ETL question on behalf of a customer who tries to implement an ETL integration :
" We were able to test ETL to import / export to DCO, it is actually possible to interconnect our internal database with DCO. But it would seem that automation is impossible : in order to retrieve the serial number we have to manually "execute" the transformation :
And in order to associate the new equipment we need to suppress the external system previously created :
Could you please help understanding how these steps can be automated ? "
This answer was originally posted on DCIM Support by Ed Tarento on 2017-09-07
My understanding of the standard import process with v8 DCO is that once you have the asset in the ETL Import DB, and the ETL Import asset is associated in the DCO GUI with the DCO asset, new or updated pieces of information that you apply to the ETL Import DB asset, should be seen on the DCO asset in the GUI once the scheduled refresh occurs. Refresh (5 minutes in your image above) is configurable and should be carefully set according to the amount of info. 5 minute is very aggressive.
It looks like you are not using the standard DCO ETL Import process and you haven't said which version you are using. I know that there have been some issues with older versions. Can you try the standard process on v8?
I hope this helps
This comment was originally posted on DCIM Support by François on 2017-09-07
Thanks for the feedback. I had a call with the customer today : DCO version is 8.1.
They are using the ETL as a two way integration between DCO and a Lotus database (with an xls file inbetween DCO and Lotus). Lotus is used to push a new equipment to DCO (IT equipment including model, name, serial number...) while DCO will push back the location to Lotus.
The exportation works as expected for them, but they are experiencing issues with the importation :
Then, a few additional informations :
Figure 1 :
Figure 2 :
Do you have any idea of what could go wrong or how to troubleshoot it ?
Further more, you are mentionning a "standard DCO ETL Import process". Where can I find this process ? I actually searched for an end to end process for ETL without success so far.
Thanks for your help,
This comment was originally posted on DCIM Support by Ed Tarento on 2017-09-11
I'm on leave hence the delay in my response. I'm not sure if or when I might be able to take a look at the ktr. My reference to "standard ETL import process" refers to creating an ETL Import DB and adding a DCO external system to update this DB at regular intervals. (the same also applies to export). Therefore, in this "standard" process, an Excel sheet is not required. Your external system (Lotus Notes), reads data from the ETL Export DB and writes and new/updated info to the ETL Import DB via SQL statements. All of this is document here. But I'm not sure if Notes will read/write SQL? I've successfully used this method in the past, because it's industry standard, more straightforward, easier to debug and understand but of course it only applies to external systems which can read/write SQL.
This comment was originally posted on DCIM Support by François on 2017-09-28
Thanks for your feedback. Following your comments, we tried again the ktr and the import.xls file prepared by the customer.
Here is what we observed (please note that the customer is using the import.xls as an intermediate between Lotus Note and DCO) :
1. Importing a new equipment works OK :
-> adding a new line in the import.xls file will result in showing a new equipment under the external system in DCO. This equipment can then be added/associated to the model and will update the attributes of the DCO object (for intance name and serial number) after a few minutes.
I noticed only a strange behaviour in DCO as you can see here :
A new line in the tooltip seems to appear at each synchronization with the external system.
2. Updating an existing equipment does not work :
-> modifying a line for an equipment in the excel file (for instance its name or serial number ) will modify neither the external system discovery, nor the equipment property in DCO. Checking at webmin, we actually noticed that modifying a property of an equipment in the excel file stops the staging database whose status swtich to "ERROR".
But we are not sure here to understand the process of modifying the properties of an equipment in DCO using the ETL import. Should it normally work to update a property in the excel file as we do ? Or do we need two transformations instead : one to add a new equipment, a second one to update an existing equipment ?
Then, a last question about the unique identifier of an equipment :
DCO seems to require a unique identifier for each equipment added. This is the ci_id column of the import.xls file.
Is this mandatory to add this field in the excel document ? Cannot it be automatically filled by DCO ?
Alternativelly, the customer already uses a unique identifier coming from Lotus Note for his equipments. Could we use it as the ci_id field of the import.xls file ? If yes, how can this unique identifier be displayed in DCO ? The customer indeed wants to see this identifier in the equipment properties in DCO.
This comment was originally posted on DCIM Support by François on 2017-09-28
To add to my previous comment following aditional testing :
I was initally uploading the updates of import.xls file to the pentaho/import folder on the DCO server using the webmin interface. This leaded to a duplication of the associacted devices as shown in my previous screen shot.
I have now mounted a share foler onto DCO as pentaho/import. Uploading a new import.xls file in the share folder or modifying directly the import .xls file into the share folder seems to fix this problem of duplicated associated devices :
This leaves open my point 2 on how to update and the question about the unique identifier.
This answer was originally posted on DCIM Support by Ed Tarento on 2017-10-03
I finally got some time to review your KTR and XLS. They both worked for me first time including an update to the serial number. For the first run (adding the devices) I placed the XLS in /data/pentaho/import and made sure ownership and permissions were appropriate. On second run (update a serial number) I first removed the XLS then copied the new one in and set file ownership and permissions. If your update is still failing, perhaps try this step
AFAIK the ci_id in the XLS is the primary and unique key for each imported Lotus Notes device. Perhaps you could use a unique Lotus ID for each device - might have some future benefit. On some occasions, I've used the internal DCO ID, as exported via the ETL DB but it doesn't matter as long as the ci_id is used to uniquely identify each Lotus device. In the XLS, I believe all other fields can be duplicated, e.g. the name and serial number
My DCO is 8.1.0-70629-cf193f
I did see some strange behaviour with the second Nexus 2248TP. DCO would only let me associate it with a rack, not a device. The 1st device of this type EQ100002 associated just fine with a device.
This comment was originally posted on DCIM Support by François on 2017-10-11
Hi Ed Tarento,
User permission and ownership for the file and for the transformation seems to be right :
From here, modifying the serial number (and only the serial number) works just as you describe :
Note however that I have never been able to see the serial number reported into the equipment properties (unlike the name) as you can see here :
I have then noticed that modifying the ci_name does not work. Any attempt to do so result with an error :
Lastly, I am also noticing that I am progressively losing the association between equipments. All equipment with a the blue “I” sign were previously associated :
It seems that the “unassociation“ occurs every time I add a new “import.xls” file to the pentaho/import folder and then synchronize the external system.
This comment was originally posted on DCIM Support by François on 2017-10-12
Same as yours : 8.1.0-70629-cf193f
This is the version I have been doing my tests with.
This comment was originally posted on DCIM Support by Ed Tarento on 2017-10-16
I'll set up the PDI spoon system and see what I can find
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!