Changes between Version 2 and Version 3 of librenms


Ignore:
Timestamp:
Nov 21, 2016, 7:51:03 AM (7 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • librenms

    v2 v3  
    1818Now, edit the file /etc/snmp/snmp.conf:
    1919{{{
    20 $ sudo editor /etc/snmp/snmp.conf
     20$ sudo vi /etc/snmp/snmp.conf
    2121}}}
    2222Change this line:
     
    3939Put the following contents in the file:
    4040{{{
    41 defVersion 3
    42 defSecurityLevel authNoPriv
    43 defSecurityName admin
    44 defAuthPassphrase NetManage
    45 defAuthType SHA
    46 
    47 # Default community when using SNMP v2c
     41defVersion v2c
    4842defCommunity NetManage
    4943}}}
    50 Creating this configuration file means you won't have to enter your credentials everytime you use one of the SNMP utilities.
     44Creating this configuration file means you won't have to enter your snmp community everytime you use one of the SNMP utilities.
    5145
    5246=== Configure SNMP on Your Router (Already done) ===
     
    8074Where is each of the following:
    8175{{{
    82 * The NOC server:       10.10.0.250
    83 * Your group's router:  10.10.N.254
    84 * The backbone switch:  10.10.0.253
    85 * The backbone router:  10.10.0.254
    86 * The access points:    10.10.0.251, 10.10.0.252
     76* LEARN Router:  192.248.1.1
     77* Lab Switch  : 
     78
    8779}}}
    88 Note that you just used SNMPv3. Not all devices that implement SNMP support v3. Try again, adding "-v2cā€ as a parameter. Notice that the command automatically uses the community string in the snmp.conf file instead of the v3 user credentials. Try "-v1".
    8980
    90 What happens if you try using the wrong community string (i.e. change NetManage to something else) using the options "-v2c -c NetWrongā€?
     81What happens if you try using the wrong community string (i.e. change NetManage to something else) using the options "'''-c NetWrong'''ā€?
    9182
    9283=== SNMP Walk and OIDs ===
     
    133124$ cd /etc/snmp
    134125$ sudo mv snmpd.conf snmpd.conf.dist
    135 $ sudo editor snmpd.conf
     126$ sudo vi snmpd.conf
    136127}}}
    137128Then, copy/paste the following (change pcX to your own pc number):
     
    159150Now we will add the same SNMPv3 user to your PC. We need to stop snmpd before adding the user, and restart it to read the above changes as well as the new user:
    160151{{{
    161 $ sudo service snmpd stop
    162 $ sudo net-snmp-create-v3-user -a SHA -A NetManage admin
    163 $ sudo service snmpd start
     152$ sudo service snmpd restart
    164153}}}
    165154Check that snmpd is working:
     
    173162Check now that you can run snmpstatus against your other group members servers:
    174163{{{
    175 $ snmpstatus pcN.ws.nsrc.org
     164$ snmpstatus www.'your neighbors domain.ws.ac.lk
    176165}}}
    177166