The QuickRanges script include provides methods to generate IP network, range, and address entries from a convenient comma-separated input field using conventional Classless Inter-Domain Range (CIDR) network notation, hyphenated range entries, or individual IP addresses.

You can use this script include with any server-side discovery script.

QuickRanges - createItem(String table, String id, String type)

Creates a new discovery range item.

Table 1. Parameters
Name Type Description
table String The table where the item will be created.
id String The identifier to use for the new item.
type String The type of entries to generate: IP address, IP network, or IP range.
Table 2. Returns
Type Description
GlideRecord The created entry

QuickRanges - onMakeRanges()

Returns the IP network, range, and address information to use when generating the entries.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
void