A new Flexera Community experience is coming on November 25th. Click here for more information.

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

Asset link to inventory with no serial number

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.

(1) Solution
mfranz
By Level 17 Champion
Level 17 Champion

Hi Adrian,

There are mutiple options.

  • You can use a Business Import to link inventories and assets. Here is a little sample SQL statement.
SELECT
	cc.ComputerName Inventory
	,a.ShortDescription Asset
FROM ComplianceComputer cc
JOIN Asset a
	ON cc.AssetID IS NULL
		AND cc.ComputerName = a.ShortDescription
  • Or you could update the database itself. Example:
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

 

View solution in original post

(3) Replies
mfranz
By Level 17 Champion
Level 17 Champion

Hi Adrian,

There are mutiple options.

  • You can use a Business Import to link inventories and assets. Here is a little sample SQL statement.
SELECT
	cc.ComputerName Inventory
	,a.ShortDescription Asset
FROM ComplianceComputer cc
JOIN Asset a
	ON cc.AssetID IS NULL
		AND cc.ComputerName = a.ShortDescription
  • Or you could update the database itself. Example:
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

 

Thank you for your support, I will try to see what can I match, may be enhance the sql command with additional function to be more granular and step by step

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.

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)