Changes between Version 2 and Version 3 of librenms
- Timestamp:
- Nov 21, 2016, 7:51:03 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
librenms
v2 v3 18 18 Now, edit the file /etc/snmp/snmp.conf: 19 19 {{{ 20 $ sudo editor/etc/snmp/snmp.conf20 $ sudo vi /etc/snmp/snmp.conf 21 21 }}} 22 22 Change this line: … … 39 39 Put the following contents in the file: 40 40 {{{ 41 defVersion 3 42 defSecurityLevel authNoPriv 43 defSecurityName admin 44 defAuthPassphrase NetManage 45 defAuthType SHA 46 47 # Default community when using SNMP v2c 41 defVersion v2c 48 42 defCommunity NetManage 49 43 }}} 50 Creating this configuration file means you won't have to enter your credentialseverytime you use one of the SNMP utilities.44 Creating this configuration file means you won't have to enter your snmp community everytime you use one of the SNMP utilities. 51 45 52 46 === Configure SNMP on Your Router (Already done) === … … 80 74 Where is each of the following: 81 75 {{{ 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 87 79 }}} 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".89 80 90 What happens if you try using the wrong community string (i.e. change NetManage to something else) using the options " -v2c -c NetWrongā?81 What happens if you try using the wrong community string (i.e. change NetManage to something else) using the options "'''-c NetWrong'''ā? 91 82 92 83 === SNMP Walk and OIDs === … … 133 124 $ cd /etc/snmp 134 125 $ sudo mv snmpd.conf snmpd.conf.dist 135 $ sudo editorsnmpd.conf126 $ sudo vi snmpd.conf 136 127 }}} 137 128 Then, copy/paste the following (change pcX to your own pc number): … … 159 150 Now 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: 160 151 {{{ 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 164 153 }}} 165 154 Check that snmpd is working: … … 173 162 Check now that you can run snmpstatus against your other group members servers: 174 163 {{{ 175 $ snmpstatus pcN.ws.nsrc.org164 $ snmpstatus www.'your neighbors domain.ws.ac.lk 176 165 }}} 177 166