Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Seiteneigenschaften


Deutsch

Beschreibung:

Mit dem diesem Add-in Skript können Sie eine DHCP-Quelladresse auf LANCOM Geräten mit LCOS konfigurieren.

Liste der verwendeten Variablen:

VariableBeschreibung




Add-in Code:

/**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports.main = function (config, context) {



    var changeDHCPNetworks = function(Network, Source) {
    var table = config.getTableByOid("1.2.10.20");
    var row = table.getFirstRowByOid ("1", Network)
    row.setByOid("22", Source);
    }

    // Change the optional Source Address for DHCP-Networks
    // Network = Name of DHCP Network, Source = Source Address

    // Copy and edit the following line for each network.
    changeDHCPNetworks(Network, Source );


    };

Add-in als JSON-Datei:

View file
nameDHCPSourceAddress.json
height150

 


Englisch

Description:

With the following add-in script you can configure a DHCP source address on LANCOM devices using LCOS.

List of used variables:

VariableDescription




Add-in code:

/**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports.main = function (config, context) {



    var changeDHCPNetworks = function(Network, Source) {
    var table = config.getTableByOid("1.2.10.20");
    var row = table.getFirstRowByOid ("1", Network)
    row.setByOid("22", Source);
    }

    // Change the optional Source Address for DHCP-Networks
    // Network = Name of DHCP Network, Source = Source Address

    // Copy and edit the following line for each network.
    changeDHCPNetworks(Network, Source );


    };

Add-in as JSON file:

View file
nameDHCPSourceAddress.json
height150