Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Need help adding to CMDB rule

Updated: 21 May 2010 | 1 comment
Dave Summerson's picture
+1 1 Vote
Login to vote

Newbie question here. We currently have a CMDB rule that sets SHARED assets to an assigned custodian username (ownership details - custodianusername). What we want to do is to also assign the asset the custodian's cost center. Currently, the cost center shows who was logged on the longest. When I tried to add the Cost Center Ownership dataclass, I tried to choose a source to match with the "foreign key to cost center" column type but had no luck.



Here is the current code we are using to pull all shared assets:



SELECT vAsset._ResourceGuid, Inv_Pioneer_Asset_Details.[Asset Purpose], Inv_Pioneer_Custodian_Details.Username AS CustodianUsername

FROM Inv_Pioneer_Custodian_Details INNER JOIN

Inv_Pioneer_Asset_Details ON Inv_Pioneer_Custodian_Details._ResourceGuid = Inv_Pioneer_Asset_Details.[Asset Custodian] RIGHT OUTER JOIN

vAsset ON Inv_Pioneer_Asset_Details._ResourceGuid = vAsset._ResourceGuid

WHERE (Inv_Pioneer_Asset_Details.[Asset Purpose] = N'Shared') OR

(Inv_Pioneer_Asset_Details.[Asset Purpose] = N'Seasonal') OR

(Inv_Pioneer_Asset_Details.[Asset Purpose] = N'Instrument Controller')





Any help or insight would be appreciated! Please see attached file for screenshot of config page.



Thanks!

Dave

Comments

Robert Lundsten's picture
31
Mar
2009
0 Votes 0
Login to vote

Same problem

Hey!

I'm having the same issue with the Cost Center Ownership data class. Seems to be a bug in Altiris.
If you figure something out, let me know :)

Robert Lundsten
Consultant / Founder : Asterio

Homepage | http://www.asterio.se
Blog | http://www.asterio.se/blogg
Twitter | http://twitter.com/asterioan