Quantcast
Channel: Ivanti User Community : All Content - Inventory
Viewing all articles
Browse latest Browse all 730

How to find out Database information for Inventory Items by the Object or Attribute name

$
0
0

How to find out Database information for Inventory Items by the Object or Attribute name

 

Description

For some LANDESK administrators the need arises to locate the table name as well as other database information about items in their Inventory. This could be for custom querying or troubleshooting.

 

Inventory is comprised of Objects (containers in the Inventory tree) & Attributes (labels for the actual data).

Object (AKA MetaObject) is the container on the left hand side of the Inventory tree. There can be multiple sub-objects within the Inventory tree. Attribute (AKA MetaAttribute) is the name which labels the value on the right side of the Inventory tree.

In this screenshot both Browser and Internet Explorer are Objects, Version is an Attribute.

Objects&Attributes.PNG

 

 

Resolution

There are two ways to search, either by Object or by Attribute depending upon preference and how unique the name is for it.

 

  • To search by Attribute name use the following. Replace the highlighted text with what you are searching for:

--Grabs Tablename, Objectname, Attributename, Parent Object number by Metaattribute def

select moar.TABLENAME, mo.OBJECTNAME, ma.ATTRNAME, mor.PARENTREL_IDN as'MetaObjRel ID 4 MObjParent'

from METAOBJATTRRELATIONS as moar

innerjoin METAOBJRELATIONS as mor

on mor.METAOBJRELATIONS_IDN = moar.METAOBJRELATIONS_IDN

innerjoin METAOBJECTS as mo

on mo.METAOBJECTS_IDN = mor.METAOBJECTS_IDN

innerjoin METAATTRIBUTES as ma

on ma.METAATTRIBUTES_IDN = moar.METAATTRIBUTES_IDN

where ma.def like'%Version%'

---If you need the parent object you have to select from metaobjrelations to get the object ID based on the parent ID. Then select the object from metaobjects.

 

 

  • To search by Object name use the following. Replace the highlighted text with what you are searching for:

--Grabs Tablename, Objectname, Attributename by Metaobject def

select moar.TABLENAME, mo.OBJECTNAME, ma.ATTRNAME

from METAOBJATTRRELATIONS as moar

innerjoin METAOBJRELATIONS as mor

on mor.METAOBJRELATIONS_IDN = moar.METAOBJRELATIONS_IDN

innerjoin METAOBJECTS as mo

on mo.METAOBJECTS_IDN = mor.METAOBJECTS_IDN

innerjoin METAATTRIBUTES as ma

on ma.METAATTRIBUTES_IDN = moar.METAATTRIBUTES_IDN

where mo.DEF like'%Internet Explorer%'


Viewing all articles
Browse latest Browse all 730


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>