Error: bad security model “any” should be: v1, v2c, usm


While starting the SNMP service, following error message displayed :Error: bad security model “any” should be: v1, v2c, usm or a registered security plugin name

Error Message:

/etc/snmp/snmpd.conf: line 78: Error: bad security model “any” should be: v1, v2c, usm or a registered security plugin name – installing anyway
: /etc/snmp/snmpd.conf: line 79: Error: bad security model “any” should be: v1, v2c, usm or a registered security plugin name – installing anyway
: /etc/snmp/snmpd.conf: line 93: Error: bad prefix match parameter “0”, should be: exact or prefix – installing anyway
: /etc/snmp/snmpd.conf: line 94: Error: bad prefix match parameter “0”, should be: exact or prefix – installing anyway
: net-snmp: 4 error(s) in config file(s)

Solution:

Replace
group MyRWGroup  any     local
group MyROGroup  any      mynetwork

with
group MyRWGroup  v2c        local
group MyROGroup  v2c       mynetwork