alokin123
Posts: 28
Score: 0 Joined: 8/7/2008 Status: offline
|
We are contemplating decommissioning our current hardware database in favor of SMS. What we ideally want to do is use SMS to store extra info like asset sticker number, division, office location etc.. In our dev environment i have successfully managed to add the data to the WMI on the client machines. Here is what my mof looks like: #pragma namespace ("\\\\.\\root\\CIMv2")
class Static_MOF
{
[key]
string username;
string assettag;
string location;
string division;
string rating;
string warranty;
};
instance of Static_MOF
{
username = "bloggsj";
assettag = "1234";
location = "base office";
division = "accounting";
rating = "E";
warranty = "1/1/2008";
}; And i have added this to my sms_def.mof: #pragma namespace ("\\\\.\\root\\CIMv2\\sms")
[ SMS_Report (TRUE),
SMS_Group_Name ("Static AssetInfo MOF"),
SMS_Class_ID ("MICROSOFT|Static_MOF|1.0")]
class Static_MOF : SMS_Class_Template
{
[SMS_Report(TRUE), key]
string username;
[SMS_Report(TRUE)]
string assettag;
[SMS_Report(TRUE)]
string location;
[SMS_Report(TRUE)]
string division;
[SMS_Report(TRUE)]
string rating;
[SMS_Report(TRUE)]
string warranty;
}; I can see the details in the resource explorer. First question is, how i can produce a useful report from that data. Secondly, is there another way to do it? Any info would be greatly appreciated.
|