Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

Is there a more comfortable way to configure different snmp communities?

0 votes
138 views
Hey guys,
 
almost all device are using a consistent snmp community string. But there are some exceptions.
Is there a more comfortable way to configure this?
 
    <definition retry="1" timeout="1800" read-community="STRING1" version="v2c">
        <range begin="172.27.10.1" end="172.27.13.99"/>
        <range begin="172.27.13.101" end="172.27.14.209"/>
        <range begin="172.27.14.211" end="172.27.14.254"/>
        </definition>
    <definition retry="1" timeout="1800" read-community="STRING2" version="v2c">
        <specific>172.27.13.100</specific>
        <specific>172.27.14.210</specific>
    </definition>
</snmp-config>
 
OpenNMS version
asked Mar 13, 2014 by mfuhrmann (7,350 points)

1 Answer

0 votes
I'm not sure if I understand the question. You can add that data via the webui at:

Home / Admin / Configure SNMP by IP

I guess that is not your question...
answered Mar 13, 2014 by DerTak (5,420 points)
I tried this before:

    <definition retry="1" timeout="1800" read-community="STRING1" version="v2c">
        <range begin="172.27.10.1" end="172.27.14.254"/>
        </definition>
    <definition retry="1" timeout="1800" read-community="STRING2" version="v2c">
        <specific>172.27.13.100</specific>
        <specific>172.27.14.210</specific>
    </definition>

But OpenNMS couldn't handle it. I guess, because some ip addresses overlapped in both definitions. So I ignored single ip addresses in the first definition.
...