Re: Net-SNMP 5.8 - Having both snmp v2 and v3 available.
Simon Chamlian <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CANmTPBbhHj=EdhoNkjTHcp2x9tykhUXPVdyWC2hfSv9851+Pdg@mail.gmail.com> |
I am not seeing and compilation errors. It compiles fine but v2 does not work: *with 5.7.3* $ snmpset -v 3 -u Simon -a MD5 -A Simon-00 -l authNoPriv 172.27.43.15 MPBC-1RU-MIB::mpbc1RUAckTrapCriticalEnable.0 i 1 MPBC-1RU-MIB::mpbc1RUAckTrapCriticalEnable.0 = INTEGER: true(1) $ snmpget -v 2c -c public 172.27.43.15 MPBC-1RU-MIB::mpbc1RUAckTrapCriticalEnable.0 MPBC-1RU-MIB::mpbc1RUAckTrapCriticalEnable.0 = INTEGER: true(1) *with 5.8 (another machine)* $ snmpset -v 3 -u Simon -a MD5 -A Simon-00 -l authNoPriv 172.27.43.2 MPBC-1RU-MIB::mpbc1RUAckTrapCriticalEnable.0 i 1 MPBC-1RU-MIB::mpbc1RUAckTrapCriticalEnable.0 = INTEGER: true(1) $ snmpget -v 2c -c public 172.27.43.2 MPBC-1RU-MIB::mpbc1RUAckTrapCriticalEnable.0 MPBC-1RU-MIB::mpbc1RUAckTrapCriticalEnable.0 = No Such Object available on this agent at this OID both have the same snmpd.conf : createUser Simon MD5 "Simon-00" rwuser Simon rocommunity public rwcommunity private and same code. I launch the agent using: snmpd -c /home/simon/snmpd.conf -Lf /tmp/snmpd_log.txt But when I run it, from my MIB browser, I can communicate only using snmpv3. When trying to get data using v2, it simply On Fri, Aug 31, 2018 at 11:33 AM, Wes Hardaker < [email protected]> wrote: > Simon Chamlian <[email protected]> writes: > > > With snmp 5.7.3 I used to have the agent handling both v2 and v3. > > > > With 5.8, only v3 seems to be available. > > No, they should both work. Can you be more specific about how you > compiled it and what errors you're seeing? > -- > Wes Hardaker > Please mail all replies to [email protected] > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders