SerialNumberManager - Global
-
- UpdatedAug 3, 2023
- 1 minute read
- Vancouver
- API reference
The Vancouver release is no longer supported. As such, the product documentation and release notes are provided for informational purposes only, and will not be updated.
The SerialNumberManager API provides methods to manage the serial numbers for discovery devices.
Use with a discovery script where you need to manage serial numbers.
SerialNumberManager - add(Number sType, Number value)
Adds the specified serial number.
Name | Type | Description |
---|---|---|
sType | Number | The serial number type |
value | Number | The serial number |
Type | Description |
---|---|
void |
SerialNumberManager - getSerialNumber()
Returns the serial number.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Number | The serial number. |
SerialNumberManager - getSerialsForCIData()
Returns serial number information for CI Data, including the type, serial number, and validity.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array | An array with the serial number information in the following order: serial number type, serial number, and validity flag. |
SerialNumberManager - isValid(Number value)
Checks if the number is a valid serial number.
Name | Type | Description |
---|---|---|
value | Number | The number to check |
Type | Description |
---|---|
Boolean | True if the number is valid; otherwise, false. |