The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DB and Tables to be queried for getting details from Active inventory

winvarma_MCI
By
Level 4

Hi, we are trying to pull the below details from FNMS related to users and devices and any suggestions which DB and tables we need to query from Active inventory to get the below details.

  • Name
  • Manufacturer
  • Model
  • Serial number
  • Assigned user
  • from all active Inventory

Thanks

(3) Replies

ppyrzynski
By
Level 7

Please try below query:

SELECT        cca.ComputerName, cca.Manufacturer, cca.ModelNo, cca.SerialNo, cca.AssignedUserID, cu.UserName
FROM            ComplianceComputerActive AS cca left JOIN
                         ComplianceUser AS cu ON cca.AssignedUserID = cu.ComplianceUserID

winvarma_MCI
By
Level 4

Hi @ppyrzynski , thanks for the swift quick reply. Need the data from all computers and not only Active one's

Then:

SELECT 
cc.ComputerName, 
cc.Manufacturer, 
cc.ModelNo, 
cc.SerialNo, 
cc.AssignedUserID, 
cu.UserName
FROM ComplianceComputer AS cc left JOIN
ComplianceUser AS cu ON cc.AssignedUserID = cu.ComplianceUserID