
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2020 11:05 AM
I am looking at export sets and I am trying to understand the best way to export the CMDB using XML. I know that I can go into each class table and create a set to export, but I would like to know if I can export a table that will drop ALL CI's into one XML. I tried to create an export set at the Configuration Item table CMDB_CI, but the XML was only 96KB. Is there a way to do this to reduce the number of sets, and imports required?
Solved! Go to Solution.
- Labels:
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2020 01:49 PM
Hi - beware that depending on what starting class you export from at top of hierarchy... like cmdb_ci... will probably limit the attribute/fields that are exported to XML. Since classes deeper in CMDB hierarchy add attributes, (i.e. windows servers), fields will probably be missing from the export. Maybe this doesn't matter for your use case - but be informed. An export from the root of the CMDB could provide base CI info and sysid, fundamental stuff, etc. but unlikely to provide details defined (added attributes) per class table. i could be wrong - I haven't tried this - but I'd be sure to check your export results.
If a true, complete copy of every CI is required something beyond a simple XML export may be needed.
Hope this helps?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2020 11:22 AM
Exporting XML from the [cmdb_ci] table does work for me, try it one more time.
Tested in both Demo and PDI instances.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2020 12:14 PM
I think the ability to export the entire CMDB would depend upon the number of CIs in your CMDB. A PDI does not have many CIs.
How many Ci's do you have?
What is the need to export the whole CMDB?
A CMDB would also need the cmdb_rel_ci table to be exported so that if putting in another instance the CI relationships are maintained.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2020 12:49 PM
There is just under 60k CI's. I have already tested the relationship export. That is one table so that was an easy export. I will test and try again.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2020 01:49 PM
Hi - beware that depending on what starting class you export from at top of hierarchy... like cmdb_ci... will probably limit the attribute/fields that are exported to XML. Since classes deeper in CMDB hierarchy add attributes, (i.e. windows servers), fields will probably be missing from the export. Maybe this doesn't matter for your use case - but be informed. An export from the root of the CMDB could provide base CI info and sysid, fundamental stuff, etc. but unlikely to provide details defined (added attributes) per class table. i could be wrong - I haven't tried this - but I'd be sure to check your export results.
If a true, complete copy of every CI is required something beyond a simple XML export may be needed.
Hope this helps?