With the following Addin script you can configure SNMPv3-Traps as well as SNMPv3 users on LANCOM Switches of the GS-2xxx series: Used variables:
exports.main = function (config, context) {
config.setScalarByOid("1.1.6.2.1", "0");
config.setScalarByOid("1.1.6.2.1", "1");
config.addScriptLine("snmp");
config.addScriptLine("user USERNAME SECURITYLEVEL AUTHPROTOCOL PASSWORD PRIVPROTOCOL PASSWORD");
config.addScriptLine("group USERNAME SECURITYMODEL SNMPGroup");
config.addScriptLine("view VIEWNAME VIEWTYPE .1");
config.addScriptLine("access SNMPGroup SECURITYMODEL SECURITYLEVEL VIEWNAME VIEWNAME");
config.addScriptLine("trap TRAPINDEX VERSION IPTYPE TRAPHOST-IP 162 TRAPLEVEL USERNAME SECURITYLEVEL AUTHPROTOCOL PASSWORD PRIVPROTOCOL PASSWORD");
config.addScriptLine("getcommunity enable");
config.addScriptLine("exit");
};
|
---|
download json file View file |
---|
name | SNMPv3_Traps_GS-2XXX.json |
---|
height | 250 |
---|
|
|