How to Associate a Monitor to a Computer Using Connector
Monitors now often return their serial number in a HW inventory (aexmachinv.exe). If you are using CMDB Solution and are tracking monitors as a resource you can use Connector Solution to create the association between a computer and its monitor(s).
- First create a couple of reports to run to see if you are getting the necessary information from your inventory and whether you are entering the serial number on you monitor resources in the same format.
- The next step is to take the same SQL to create a Connector Data Source.
- Then create a Connector Import/Export Rule to create the association.
- Finally, run the rule.
Run The Reports
- The following report will list if your computers are picking up the serial numbers of the monitors the same way you are entering them in the monitor resource type.
SELECT T0.[Name] AS 'Name', T0.[Last Logon User] AS 'Last Logon User', T1.[Manufacturer Name] AS 'Manufacturer Name', T1.[Serial Number] AS 'Monitor Serial Number' FROM [Inv_AeX_AC_Identification] T0 JOIN [Inv_AeX_HW_Monitor] T1 ON T0.[_ResourceGuid] = T1.[_ResourceGuid] ORDER BY T0.[Name] - Next run the following report to see if the computer's scanned monitor serial number links up to the resouce type Monitor's serial number.
SELECT v.Guid AS '_ItemGuid', id.[_ResourceGuid] as 'ResourceGuid', id.[Name] as 'Computer', v.[Name] AS 'Monitor', v.[Description] AS 'Monitor Description', sn.[Serial Number] as 'Monitor Asset SN', mon.[Serial Number] as 'Computer Monitor SN' FROM vResourceItem v JOIN Inv_Serial_Number sn ON v.guid = sn.[_ResourceGuid] AND ResourceTypeGuid = 'FE46D9CE-B71C-4DE4-B790-242A9EF1A5D3' JOIN Inv_AeX_HW_Monitor mon ON sn.[Serial Number] = mon.[Serial Number] JOIN Inv_AeX_AC_Identification id ON id.[_ResourceGuid] = mon.[_ResourceGuid]
Connector Data Source
Create a Connector Data Source that uses the following SQL, which is the same as the report in step 2 above, (only part of the SQL is shown in the screen shot) against your NS database. This is done under Configuration > Solution Settings > Connector.
SELECT v.Guid AS '_ItemGuid',
id.[_ResourceGuid] as 'ResourceGuid',
id.[Name] as 'Computer', v.[Name] AS 'Monitor',
v.[Description] AS 'Monitor Description',
sn.[Serial Number] as 'Monitor Asset SN',
mon.[Serial Number] as 'Computer Monitor SN'
FROM vResourceItem v
JOIN Inv_Serial_Number sn
ON v.guid = sn.[_ResourceGuid]
AND ResourceTypeGuid = 'FE46D9CE-B71C-4DE4-B790-242A9EF1A5D3'
JOIN Inv_AeX_HW_Monitor mon
ON sn.[Serial Number] = mon.[Serial Number]
JOIN Inv_AeX_AC_Identification id
ON id.[_ResourceGuid] = mon.[_ResourceGuid]
Notes:
- Put in the name of the SQL server, instead of localhost, if it is not on the same server as the Notification Server.
- Do NOT put in an User ID or password, the Connector will use the NS's application identity to access the database.
- Select the name of you NS database from the drop down list of databases.
Connector Import/Export Rule
Create a Resource Import Export Rule. The Resource Lookup Key is ResourceGuid and the Resource Name does not need to be set since you will not be creating any new resources. The only other piece is to set the association of Resouce Guid to _ItemGuid. ResourceGuid and _ItemGuid are defined in the SQL used in the data source.
Finish
Apply the Rule, Test it and then Run it. You may want to schedule it to run on a regular schedule that corresponds to the HW Inventory.
More information if you have troubles matching the serial numbers: The monitor information in the registry is kept in a RAW format in the location HKLM\SYSTEM\CurrentControlSet\Enum\DISPLAY. The data is edid data and is kept in a subkey for device parameters as part of the specified device. Other monitor vendors may keep this data in another location on the client OS. If you can find out where this would be, you can create a custom inventory to gather the information from the custom location. Of course in that situation, the SQL above would have to modified.
- Login or register to post comments
- 1152 reads
- Printer-friendly version



















Nice job
I enjoy how much easier the new connector solution is to work with. At one job I had to set this up to export to a CSV file and then import that CSV file. So much easier these days
Jonathan Jesse
Director of Training
ITS Partners
Automatism - Place to discuss this
Nice post. I'm really interested how many of you a using automatism like this or others.
- Do you sign assets (monitor, docking station, peripherals) to computers, or all assets to users / depatments? Maybe automatically like in this post?
- Are primary user automatically going to be the owner of a computer?
- What about of network devices? Do you create them manually or via discovery solution? How do you administer the serial numbers?
Automatism is one goal, but my fear is to loose the control of the assets if I sign assets not manually to users / departments. Not every computer has an altiris agent installed or is connected to the network. Notebook-users are often a problem, and the notebooks are much expensive and I want to know exactly who uses it and where it is.
I'm really interested to discuss things like this. Where is the best place to do it here?
Regards
Linne
Excellent!
We need more tips on Connector!
Connector is one of the most powerful parts of the Altiris system, yet few people even know it exists. Thanks for promoting it!
SNs from monitor are not complete
Just an FYI for all of you out there that use Dell. The Dell monitors DO NOT return a FULL inventory Serial Number (the number noted with the barcode on the back of the monitor). The first 3 characters and 5 of the middle characters are missing.
This is due to the fact that the first 3 characters are the manufacturing location code (CN0, MX0, etc.) and refer to the location in which the monitor was manufactured. The middle 5 characters are the model code assigned by Dell. Depending on the model these characters will be different each time.
Therefore, if you use barcode to scan in assets as they arrive by your asset team this will not work for you. It's very unfortunate because the solution is wonderful! And if you are not using barcode to scan in full asset serial number information for the monitor then you will love this.
I had to open an incident with Altiris Support and Dell Support to find this out...so hopefully this has saved some of you time and an incident!
-d