Config Variables

General

TypeMethodDescription
voidconfig.resetConfigToDefault()Revert all changes to the default configuration.
voidconfig.addScriptLine(line: string)Adds the line to the script that is executed on the device.
voidconfig.infoLog(msg: string)Prints the message into the device log within the LMC with log level info.
voidconfig.infoLog(key: string, msg: string)Prints the message into the devicelog with the log key within the LMC with log level info.
voidconfig.warnLog(msg: string)Prints the message into the device log within the LMC with log level warn.
voidconfig.abort(msg: string)Aborts config building, and log the message into the device log within the LMC with log level error.
OutputStreamconfig.createOutputStream()Creates a new standard output stream for strings. (Only supported for OneTimeScripts)
OutputStreamconfig.createOutputStream(key: string)Creates a new output stream for strings. (Only supported for OneTimeScripts)
voidOutputStream.addLine(key: string)

Adds a string to the output stream.

Scalar

TypeMethodDescription
stringconfig.getScalarByOid(oid)Returns the value of the given scalar via oid.
stringconfig.getScalarByAlias(alias)Returns the value of the given scalar via alias.
stringconfig.setScalarByOid(oid, value)Sets scalar value (returns old value)
stringconfig.setScalarByAlias(alias, value)Sets scalar value (returns old value)
stringconfig.resetScalarToDefaultByOid(oid);Reset the given scalar via oid to the default configuration value.
stringconfig.resetScalarToDefaultByAlias(alias);Reset the given scalar via alias to the default configuration value.

Table

TypeMethodDescription
Tableconfig.getTableByOid(oid: string);Get the Table object via oid.
Tableconfig.getTableByAlias(alias: string);Get the Table object via alias.
List<Row>table.getRows();Get all rows of the Table object.
Rowtable.getRowBySingleIndex(indexValue: string);Get a row index, if it has only one index.
List<Row>table.getRowsByOid(oid: string, value: string);Get rows matching the value value in the column oid.
List<Row>table.getRowsByAlias(alias:string, value:string);Get rows matching the value valuein the column alias.
List<Row>table.getRowsByOids(Map<oid, value>);Get all rows matching all search criteria.
List<Row>table.getRowsByAliases(Map<alias, value>);Get all rows matching all search criteria, using aliases.
Rowtable.getFirstRowByOid(oid, value);Return first matching row via oid.
Rowtable.getFirstRowByAlias(alias, value);Return first matching row via alias
Rowtable.getFirstRowByOids(Map<oid, value>);Get first matching row matching via oid.
Rowtable.getFirstRowByAliases(Map<alias, value>);Get first matching row matchign via aliases
Rowtable.createNewRow();Create a new empty row.
Rowtable.addOrMerge(row)If the index matches a row the row is updated, otherwise the row is added.
booleantable.resetToDefault();Reset the table to the default configuration.

Row

TypeMethodDescription
stringrow.getByOid(oid);Get value via oid.
stringrow.getByAlias(alias);Get value via alias.
stringrow.setByOid(oid, value);Set value via oid.
stringrow.setByAlias(oid, value);Set value via alias.
voidrow.setByOids(Map<oid, value>);Set multiple values via oid.
voidrow.setByAliases(Map<alias, value>);Set multiple values via aliases.
Rowrow.addByOid(oid, value);Like setByOid but returns the row for fluent API usage.
Rowrow.addByAlias(alias, value);Like setByAlias but returns the row for fluent API usage.
booleanrow.delete();Delete the row from the table.

Exclude/Include

TypeMethodDescription
voidconfig.excludeByOid(oid: string)Do not write element(s) that match oid filter to the device, e.g. config.excludeByOid("1.2.9.13");
voidconfig.excludeByOids(oids: List<string>)Do not write element(s) that match oid filter to the device, e.g. config.excludeByOids(["1.2.9.17", "1.2.9.18", "1.2.11.*"]);
voidconfig.includeByOid(oid: string)Only write the element(s) matching the oid filter to the device
voidconfig.includeByOids(oids: List<string>)Only write the element(s) matching the oid filter to the device (Note: the include calls do not stack!)

Context Variables

Context variables are read only.

DSC

TypeMethodDescription
booleancontext.dsc.existsScalarByOid(oid)Checks whether the given scalar exists by oid.
booleancontext.dsc.existsScalarByAlias(alias)Checks whether the given scalar exists by alias.
booleancontext.dsc.existsTableByOid(oid)Checks whether the given Table exists via oid.
booleancontext.dsc.existsTableByAlias(alias)Checks whether the given Table exists via alias.

Network

TypeMethodDescription
<SsidObj>[]context.network.ssidsMap of SSID objects indexed by its name (usage see next lines).
string[]context.network.ssids[<SSID>].ifcNumberList with interface numbers for SSID.
string[]context.network.ssids[<SSID>].ifcNameList with interface names for SSID.
stringcontext.network.ssids[<SSID>].radiusNameRadius name for SSID.
stringcontext.network.ssids[<SSID>].nameThe SSID (always same as )
stringcontext.network.nameNetwork name
stringcontext.network.configNameNetwork configuration name
stringcontext.network.configNameLongLong network configuration name
stringcontext.network.ifcNumberNetwork interface number
stringcontext.network.tagNetwork Vlan Id
stringcontext.network.vpnGatewayCentral Site Gateway address
string[]context.network.vpnConnectionsList of peer ident names for vpn connetions
<Variables>context.network.vpnSiteVars[<SubnetGroupConfigName> or <PeerIdent>]User variables for vpn location
stringcontext.network.vpnCredentials[<SubnetGroupConfigName> or <PeerIdent>].remote.identityVPN remote identity for site
stringcontext.network.vpnCredentials[<SubnetGroupConfigName> or <PeerIdent>].remote.pskVPN remote psk for site
stringcontext.network.vpnCredentials[<SubnetGroupConfigName> or <PeerIdent>].local.identityVPN local identity for site
stringcontext.network.vpnCredentials[<SubnetGroupConfigName> or <PeerIdent>].local.pskVPN local psk for site
stringcontext.network.vpnRemoteData[peerName].subnetMaskVPN remote subnetmask for site
stringcontext.network.vpnRemoteData[peerName].subnetIdVPN remote subnet ID for site
booleancontext.network.isCentralGatewaytrue if vpn & gateway & central-site
booleancontext.network.isBranchGatewaytrue if vpn & gateway & not central-site
numbercontext.network.gatewayNumbergateway number
<DevRolObj>context.network.deviceRolesreturn device roles object (usage see next 2 lines)
booleancontext.network.deviceRoles.contains(role string)Check if device has role gateway with GW, access point with AP or switch with SW
string[]context.network.deviceRoles.list()Get list of device roles, e.g. {"GW", "AP", "SW"}

Device

TypeMethodDescription
booleancontext.device.isGatewaytrue if device is gateway
booleancontext.device.isAccesspointtrue if device is accesspoint
booleancontext.device.isSwitchtrue if device is switch
numbercontext.device.firmwareVersionFirmware version without build number as double value
numbercontext.device.firmwareVersionWithBuildFirmware version with build number as double value
stringcontext.device.firmwareVersionStringFirmware version as string
Objectcontext.device.firmwareVersionObjectFirmware version as object: {major: number, minor: number, patch: number}
stringcontext.device.typeDevice type string
<Features>context.device.featuresFeature object (usage see next line)
booleancontext.device.features.supports(int)Checks whether a feature with given ID is supported, e.g. 43 for feature LAN bridge
stringcontext.device.macAddressMAC Address for LAN interface. (Added April 2022. Requires device reboot before use.)
stringcontext.device.serialNumberSerial number of the device (Added April 2022. Requires device reboot before use.)

Location

TypeMethodDescription
stringcontext.location.configNameLocation configuration name
stringcontext.location.subnetIdNetwork ID at location, for example 192.168.1.0
stringcontext.location.subnetMaskSubnet mask
stringcontext.location.gatewayIpRouting IP address to Central Site, if device Role is Gateway, else null
string[]context.location.gatewayIpsReturns IP addresses of all location gateways.