Tables CMDB for query

Moderator: crythias

Locked
candres28
Znuny newbie
Posts: 3
Joined: 12 Oct 2018, 16:32
Znuny Version: 5.0.18
Real Name: Carlos Andres Garcia
Company: Estudio

Tables CMDB for query

Post by candres28 »

I want to make it through a query bring all the information of the cmdb por example in which table in which table I find "configuration item version details"
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Tables CMDB for query

Post by RStraub »

Hey there,

I doubt you'll be happy with the DB structure of the CI-storage. It might be easier to use the API and a custom Perl script.
Here is an example to query all entries for a config item with ID 2551:

Code: Select all

select * from xml_storage where xml_key = 2551;
You might want to filter:

Code: Select all

and xml_type like 'ITSM::ConfigItem%'
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Locked