Read a text file to add attributes to a CI
We are using uCMDB v10.11 and was hoping you could share some of your experiences with adapter developement to read a flat text file. As part of our internal environments process a structured text file would be created on every new server build containing information like Environment, Release, Project etc... The relevant support and environments team would like to populate this information into the CMDB.
To capture this info could you advise of the best way or a sample of an adpater that achieves a similar outcome.
Many Thanks for your help in advance.
Re: Read a text file to add attributes to a CI
Depending on the file content/format, the following solutions could be used :
1 - Integration points :
This is what will require the less time, and this is only availlable if you can decide yourself of the file format.
The adapters to use for this is :
import topology from CSV
2 - discovery solution :
If you don't have the choice of the file format, a customer adapter could be created for universal discovery.
It is advised to refer to the development guide :
C:\HP\UCMDB\UCMDBServer\deploy\ucmdb-docs\docs\eng\pdfs\DeveloperReference.pdf and to read existing jobs.
From the jython job, you can either connect to a remote machine, get a text file, parse it, and then map the properties to the ucmdb. It require more time, and developper skills are needed. (python + discovery api).
Hope that helps.