Спрашивающий
Sms_def.mof sccm

Общие обсуждения
-
Добрый день
Можете подсказать по какому принципу, создается таблица в БД, после добавления WMI классов в файл Sms_def.mof.
Если автоматически, то после удаления таблицы будет ли она создана повторно?
Как раз был добавлен данный класс Win32_PhysicalMemoryArray
В логе клиента InventoryAgent.log выдает следующую ошибку "Unknown error encountered processing an instance of class Win32_PhysicalMemoryArray: 80041017"
Спасибо- Изменен тип Petko KrushevMicrosoft contingent staff, Moderator 28 марта 2013 г. 12:33 Нет действий
16 июля 2009 г. 11:26
Все ответы
-
не совсем понял вопроса.
в файле SMS_def.mof нельзя ничего добавлять, только включать\выключать
для расширения инвентаризационных данных необходимо использовать файлы IDMIF и NOIDMIF.
детальнее можно прочитать тут:
http://technet.microsoft.com/en-us/library/cc180618.aspx24 июля 2009 г. 9:01 -
Можно добавлять классы - http://msdn.microsoft.com/en-us/library/aa394084(VS.85).aspx, а не только TRUE-FALSE.24 июля 2009 г. 10:50Отвечающий
-
a__Rado__, Вы в классе не ошиблись?
[SMS_Report (TRUE),
SMS_Group_Name ("Physical Memory Array"),
SMS_Class_ID ("Microsoft|Physical_Memory_Array|1.0")]
class Win32_PhysicalMemoryArray : SMS_Class_Template
{
[SMS_Report (TRUE)] string Caption;
[SMS_Report (FALSE)] string CreationClassName;
[SMS_Report (TRUE)] string Description;
[SMS_Report (TRUE)] uint16 Location;
[SMS_Report (TRUE)] string Manufacturer;
[SMS_Report (TRUE), SMS_Units("Megabytes")] uint32 MaxCapacity;
[SMS_Report (TRUE)] uint16 MemoryDevices;
[SMS_Report (FALSE)] uint16 MemoryErrorCorrection;
[SMS_Report (TRUE)] string Model;
[SMS_Report (TRUE)] string Name;
[SMS_Report (FALSE)] string OtherIdentifyingInfo;
[SMS_Report (TRUE)] string PartNumber;
[SMS_Report (FALSE)] boolean PoweredOn;
[SMS_Report (FALSE)] boolean Removable;
[SMS_Report (FALSE)] boolean Replaceable;
[SMS_Report (TRUE)] string SerialNumber;
[SMS_Report (FALSE)] string SKU;
[SMS_Report (FALSE)] string Status;
[SMS_Report (TRUE), Key] string Tag;
[SMS_Report (TRUE)] uint16 Use;
[SMS_Report (FALSE)] string Version;
}24 июля 2009 г. 10:53Отвечающий -
В классе не ошибся. Таблица создалась , но она не наполняется. По логам клиента видно что данные собираются и отправляются
[SMS_Report (TRUE),
SMS_Group_Name ("Physical Memory Array"),
SMS_Class_ID ("Microsoft|Physical_Memory_Array|1.0")]
class Win32_PhysicalMemoryArray : SMS_Class_Template
{
[SMS_Report(TRUE)]string BankLabel;
[SMS_Report(TRUE)]uint64 Capacity;
[SMS_Report(TRUE)]string Caption;
[SMS_Report(TRUE)]string CreationClassName;
[SMS_Report(TRUE)]uint16 DataWidth;
[SMS_Report(TRUE)]string Description;
[SMS_Report(TRUE)]string DeviceLocator;
[SMS_Report (TRUE)] uint16 MemoryDevices;
[SMS_Report(TRUE)]uint16 FormFactor;
[SMS_Report(FALSE)]boolean HotSwappable;
[SMS_Report(TRUE)]datetime InstallDate;
[SMS_Report(FALSE)]uint16 InterleaveDataDepth;
[SMS_Report(FALSE)]uint32 InterleavePosition;
[SMS_Report(TRUE)]string Manufacturer;
[SMS_Report(TRUE)]uint16 MemoryType;
[SMS_Report(TRUE)]string Model;
[SMS_Report(TRUE)]string Name;
[SMS_Report(FALSE)]string OtherIdentifyingInfo;
[SMS_Report(FALSE)]string PartNumber;
[SMS_Report(TRUE)]uint32 PositionInRow;
[SMS_Report(FALSE)]boolean PoweredOn;
[SMS_Report(FALSE)]boolean Removable;
[SMS_Report(FALSE)]boolean Replaceable;
[SMS_Report(FALSE)]string SerialNumber;
[SMS_Report(FALSE)]string SKU;
[SMS_Report(TRUE)]uint32 Speed;
[SMS_Report(TRUE)]string Status;
[SMS_Report(TRUE),Key]string Tag;
[SMS_Report(TRUE)]uint16 TotalWidth;
[SMS_Report(TRUE)]uint16 TypeDetail;
[SMS_Report(TRUE)]string Version;
[SMS_Report(TRUE)]uint16 Location;
};27 июля 2009 г. 10:25 -
А я вот создал свой класс в Sms_def.mof и теперь ругается у меня SMS_MP_CONTROL_MANAGER вот такими словами:
MP could not find some class or property definitions when processing Hinv as they are apparently missing in sms_def.mof. Unknown classes and properties have been ignored and a MIF file generated with all the classes and properties that could be found.Possible cause: This might indicate that the report has become obsolete due to a new HW inventory policy or that a customer's private definitions haven't been properly propagated to the sms_def.mof at the PSS.
Solution: See if the missing classes or properties are genuinely missing in the current sms_def.mof and find out why the client put them in the xml report.Кто бы подсказал что ему не так?
27 июля 2009 г. 11:32 -
Какой класс был добавлен?
28 июля 2009 г. 4:24 -
В configuration.mof был добавлен следующий класс:
#pragma namespace ("\\\\.\\root\\cimv2")[DYNPROPS]
class APZ_SMS_Inventorization
{
[key]
string InstanceKey;
string AssetNumber;
string SerialNumber;
string SwitchSocketNumber;
};[DYNPROPS]
instance of APZ_SMS_Inventorization
{
InstanceKey = "APZSMSInventorization";
AssetNumber;
SerialNumber;
SwitchSocketNumber;
};В sms_def.mof следующее:
[ SMS_Report (TRUE),
SMS_Group_Name ("APZ_SMS_Inventorization"),
SMS_Class_ID ("MICROSOFT|APZ_SMS_Inventorization|1.0") ]class APZ_SMS_Inventorization : SMS_Class_Template
{
[SMS_Report (TRUE) ]
string AssetNumber;
[SMS_Report (TRUE) ]
string SerialNumber;
[SMS_Report (TRUE) ]
string SwitchSocketNumber;};
28 июля 2009 г. 5:04