A new Flexera Community experience is coming on November 25th. Click here for more information.
Hi Community,
I have the following issue.
FNMS 2018 R3 on prem implementation
Asset import from SNOW, via mid servers
The problem is that the quality of data in SNOW are very bad, I have a lot of assets with no serial number, the serial number is blank, or have the value UNKNOWN or do not match the one from inventory.
I'm searching for a solution to link the asset with inventory only after hostname if it's possible, or at least to reduce the number of the unlinked inventory.
Thank you for your hints and I wish you all a nice day.
‎May 22, 2019 08:31 AM
Hi Adrian,
There are mutiple options.
SELECT cc.ComputerName Inventory ,a.ShortDescription Asset FROM ComplianceComputer cc JOIN Asset a ON cc.AssetID IS NULL AND cc.ComputerName = a.ShortDescription
UPDATE cc SET cc.AssetID = a.AssetID FROM ComplianceComputer cc JOIN Asset a ON cc.AssetID IS NULL AND cc.ComputerName = a.ShortDescription
Poor data quality, especially duplicates in device names and asset names, can lead to problems. So please be cautious with any of these options. You should review the SQL results before actually changing anything. If possible, test them in a non-production environment first.
Both code examples do exclude inventories which are already linked to an asset.
Best regards,
Markward
‎May 22, 2019 10:49 AM - edited ‎May 22, 2019 10:51 AM
Hi Adrian,
There are mutiple options.
SELECT cc.ComputerName Inventory ,a.ShortDescription Asset FROM ComplianceComputer cc JOIN Asset a ON cc.AssetID IS NULL AND cc.ComputerName = a.ShortDescription
UPDATE cc SET cc.AssetID = a.AssetID FROM ComplianceComputer cc JOIN Asset a ON cc.AssetID IS NULL AND cc.ComputerName = a.ShortDescription
Poor data quality, especially duplicates in device names and asset names, can lead to problems. So please be cautious with any of these options. You should review the SQL results before actually changing anything. If possible, test them in a non-production environment first.
Both code examples do exclude inventories which are already linked to an asset.
Best regards,
Markward
‎May 22, 2019 10:49 AM - edited ‎May 22, 2019 10:51 AM
‎May 23, 2019 02:22 AM
Just to add a note about the idea of using an "UPDATE ComplianceComputer [...]" SQL statement as suggested above to link inventory device records to assets:
If you do this, you would also need to clean up existing records in the ComplianceComputer view that may be linked to Asset records: either delete them (if they have a status of "awaiting inventory"), or unlink them (otherwise). If that is not done then you would likely end up with multiple ComplianceComputer records having the same AssetID, which may have unexpected consequences.
‎Mar 06, 2022 07:05 PM