Add SNMP-Server and SNMP-User on LANCOM GS-23xx Switches

With the following Addin script you can add an SNMP-server and SNMP-Users on LANCOM Switches of the GS-23xx series:

/**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports.main = function (config, context) {
    config.addScriptLine("snmp");
    config.addScriptLine("user macmon AuthPriv MD5 macmon123 DES macmon123");
    config.addScriptLine("group macmon usm macmonv3");
    config.addScriptLine("view super included .1");
    config.addScriptLine("access macmonv3 any AuthPriv super super");
    config.addScriptLine("trap 1 v3 ipv4 10.20.0.81 162 6 public AuthPriv MD5 macmon123 DES macmon123");
    config.addScriptLine("getcommunity enable");
    config.addScriptLine("exit");
};

download json file

results matching ""

    No results matching ""