Skip to content

CMS_GetInventory

Gets inventory values from the database, from either the Hardware, Custom, or Logon inventory tables.

Please note, that this is an expensive call, seen from the Frontend/database perspective. Calling this function repeatedly from a package could result in overall slower performance. This function should be used with care.
CMS_GetInventory(table, category, entry) As string

Table (string)

This is the table toward which the request is made, and it can be either HWI (hardware inventory), LGI (logon inventory), or CSI (custom inventory).

Category name

variable name

The function returns a boolean (bStatus), indicating if the call was successful. The requested value will be stored in gsValue.

If bStatus Then bStatus = CMS_GetInventory("hwi", "System", "Name")
If bStatus Then bStatus = Job_WriteLog("System", "Name: " & gsValue, bStatus, True)

Scripting Guidelines

CMS_AddHardwareInventory Constants Package Property Variables Business Unit support

CMS_AddCustomInventory