Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

SerialNumberManager- Global

The SerialNumberManager script include provides methods to manage the serial numbers for discovery devices.

You can use this script include with a discovery script where you need to manage serial numbers.

Parent Topic:Server API reference

SerialNumberManager - add(Number sType, Number value)

Adds the specified serial number.

NameTypeDescription
sTypeNumberThe serial number type
valueNumberThe serial number
TypeDescription
void 

SerialNumberManager - getSerialNumber()

Returns the serial number.

NameTypeDescription
None  
TypeDescription
NumberThe serial number.

SerialNumberManager - getSerialsForCIData()

Returns serial number information for CI Data, including the type, serial number, and validity.

NameTypeDescription
None  
TypeDescription
ArrayAn 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.

NameTypeDescription
valueNumberThe number to check
TypeDescription
BooleanTrue if the number is valid; otherwise, false.