Depending on how you define a custom architecture, you can choose whether to display custom architectures in the Sites window.
To create an object that is displayed in the Sites window, the object's architecture must have an Identification group with the following five attributes defined:
An object with these attributes defined is displayed in the Sites window within the specified Site and Domain.
If a custom architecture does not have these attributes defined, its objects are not displayed in the Sites window; you must display these objects by using a query.
An SMS object is a specific item that uses a specific architecture. For example, the SMS system uses the Personal Computer architecture to inventory computers as objects. An object contains groups. For SMS, an object must have an Identification group and an Architecture group.
An object definition within a MIF file starts with the line Start Component and ends with the line End Component. Within an object definition, you should have the following entry:
Example of an object:
Start Component
Name = "EMPLOYEE"
Start Group
Name = "Architecture"
ID = 1
Class = "MICROSOFT|ARCHITECTURE|1.0"
Start Attribute
Name = "ArchitectureName"
ID = 1
Access = READ-ONLY
Storage = SPECIFIC
Type = String(10)
Value = "Employee"
End Attribute
End Group
Start Group
Name = "Identification"
ID = 2
Class = "MICROSOFT|IDENTIFICATION|1.0"
Start Attribute
Name = "Employee Name"
ID = 1
Access = READ-ONLY
Storage = SPECIFIC
Type = String(32)
Value = "Mitch Duncan"
End Attribute
End Group
End Component
A group is a set of one or more attributes. When the inventory for an object is displayed in the object's Properties window, all the groups for the object are displayed in the left pane. The attributes for the selected group are displayed in the right pane.
Objects (called Components in the DMTF structure) for every architecture must have an Identification group and an Architecture group.
A group starts with the line Start Group and ends with the line End Group. Within the group, specify the following entries:
A group also contains one or more attributes.
Example of a group:
Start Group
Name = "Employee Name"
ID = 1
Class = MICROSOFT|EMPLOYEE NAME|1.0
Start Attribute
Name = "Last Name"
ID = 1
Access = READ-ONLY
Storage = SPECIFIC
Type = String(32)
Value = "Smith"
End Attribute
Start Attribute
Name = "First Name"
ID = 2
Access = READ-ONLY
Storage = SPECIFIC
Type = String(32)
Value = "John"
End Attribute
End Group
Objects for every architecture must have an Identification group. The Identification group can have any number of attributes. However, you should ensure that all attributes are included in all objects that are part of a single custom architecture.
Start Group
Name = "Identification"
ID = 1
Class = "MICROSOFT|IDENTIFICATION|1.0"
Start Attribute
Name = "Employee Name"
ID = 1
Access = READ-ONLY
Storage = SPECIFIC
Type = String(32)
Value = "Mitch Duncan"
End Attribute
End Group
Objects for every architecture must also have an Architecture group. The Architecture group contains one attribute. The value of the ArchitectureName attribute should be the label you want to display for the architecture in the SMS Administrator. For example, when you view an object with a custom architecture, the ArchitectureName attribute is displayed in the Properties window title bar.
Start Group
Name = "Architecture"
ID = 1
Class = "MICROSOFT|ARCHITECTURE|1.0"
Start Attribute
Name = "ArchitectureName"
ID = 0
Access = READ-ONLY
Storage = SPECIFIC
Type = String(10)
Value = "Employee"
End Attribute
End Group
When the inventory for an object is displayed in the object's Properties window, all the groups for the object are displayed in the left pane. The attributes for the selected group are displayed in the right pane.
An attribute starts with the line Start Attribute and ends with the line End Attribute. Within the attribute, you should have the following entries:
The SQL Server database has a limit of 255 characters for any attribute value. Any string longer than 255 characters will be truncated. In addition, any values longer than the originally defined length will be silently truncated. For example, if the attribute "Employee Name" is defined as "string(40)", SMS will add only the first 40 characters for an "Employee Name" value that is longer than 40 characters.
The SMS system uses the first definition of Type. For example, if you first defined "Employee Name" as "string(40)", the SMS system will always use that type. You cannot change the Type value after you have first defined it.
Example of an attribute:
Start Attribute
Name = "Hours Worked"
ID = 1
Access = READ-ONLY
Storage = SPECIFIC
Type = Counter
Value = 500
End Attribute