Skip to main content

Device object type

Alvao automatically chooses the best-fitting object type for devices it discovers or imports (e.g., new computers created by the Agent, new imported devices from MS Intune, etc.).

The choice depends on:

  • Scanned enclosure type (Agent)
  • Hostname
  • Device model

Configuration

Go to Administration – SettingsAdvanced, select the AM.NewImportedDeviceObjectType setting and use the Edit command to view and optionally change the value.

The default value:

{
"chassisTypesRules": {
"enabled": true,
"map": {
"8": "Computer/laptop",
"9": "Computer/laptop",
"10": "Computer/laptop",
"11": "Computer/laptop",
"31": "Computer/laptop",
"17": "Computer/server",
"23": "Computer/server"
}
},
"hostnameRules": {
"enabled": true,
"regExMap": {
"^desktop": "Computer/desktop",
"^laptop": "Computer/laptop",
"^ntb": "Computer/laptop",
"^server": "Computer/server",
"^virtual": "Computer/virtual machine"
}
},
"modelRules": {
"enabled": true,
"regExMap": {
"elitebook": "Computer/laptop",
"elitedesk": "Computer/desktop",
"ipad": "Tablet",
"latitude": "Computer/laptop",
"macbook": "Computer/laptop",
"optiplex": "Computer/desktop",
"poweredge": "Computer/server",
"precision": "Computer/laptop",
"probook": "Computer/laptop",
"prodesk": "Computer/desktop",
"proliant": "Computer/server",
"thinkpad": "Computer/laptop",
"vmware": "Computer/virtual machine",
"virtual": "Computer/virtual machine",
"workstation": "Computer/desktop",
"xps": "Computer/laptop",
"zbook": "Computer/laptop"
}
}
}

chassisTypesRules item

Chassis type to object type map.

  • First number is the Win32_SystemEnclosure.ChassisTypes property value.
  • Second value is the object type name.
ChassisTypes legendDafult object type
Portable (8), Laptop (9), Notebook (10), Hand Held (11), Convertible (31)Computer/laptop
Main System Chassis (17), Rack Mount Chassis (23)Computer/server

This map is applied only when there are HW scan data from Agent available for the given computer object. Otherwise this item is skipped. For unlisted chassis types, the default object template for the "Computer/desktop" object type is used. Thus, for objects with HW scan data from Agent, this item is always applied and the following items are skipped. To apply the following items on objects with HW scan data from Agent, remove this item.

tip

The readable names of the Win32_SystemEnclosure.ChassisTypes values are stored in the Case kind object property. If a computer object doesn’t contain this property, add it to its object template.

hostnameRules item

Hostname regex pattern to object type map.

  • The first value is a regex pattern of device hostnames.
  • The second value is the target object type name.

The rules are evaluated in top-down order. The first match is applied and the rest is skipped.

modelRules item

Device model regex pattern to object type map.

  • The first value is a regex pattern of device model.
  • The second value is the target object type name.