CimCIData - Global
-
- UpdatedJan 30, 2025
- 4 minutes to read
- Yokohama
- API reference
The CimCIData script include provides a wrapper for Common Information Model (CIM) configuration item (CI) data manipulation.
Use with any server-side discovery script.
CimCIData - addSerial(String type, String serial)
Adds a serial number to the current configuration item (CI), by type.
Name | Type | Description |
---|---|---|
type | String | Serial number type. For the base system, use the CimCIData.serialType enum. |
serial | String | Serial number to add. |
Type | Description |
---|---|
String | Current CI |
Example
The following example loads the CI data from current CI and passes the data object to the CimCIData.addSerial() method which adds the serial number to CimCIData and CIData.
Output:
CimCIData - SerialRecord(String type, String serial)
Creates a new serial record.
Name | Type | Description |
---|---|---|
type | String | The serial type to assign to the CI. If out-of-box, uses the CimCIData.serialType enum. |
serial | String | The serial number to assign. |
Type | Description |
---|---|
void |
CimCIData - setMakeAndModel(String make, String model)
Sets the make and model for the current configuration item (CI).
Name | Type | Description |
---|---|---|
make | String | Name of the manufacturer to set for the CI. |
model | String | Name of the model to set for the CI. |
Type | Description |
---|---|
void |
Example
The following example shows how to use the setMakeAndModel() method to set the make and model of the specified CI.
Output: