Re: Net-snmp 5.7.3 Yocto - [No Such Object available on this agent at this OID]
Simon Chamlian <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CANmTPBb+UbbUEJ8SUyXsUrSWxv3vrY0OoYSref85uoiNKTeMfQ@mail.gmail.com> |
Did anyone used net-snmp under systemd ? On Thu, Aug 23, 2018 at 3:24 PM, Simon Chamlian <[email protected]> wrote: > Hi, > > I have been working several days on this issue without any success. > > On our old Linux embedded system (using LTIB - Linux target Integrated > Builder), the agent was working fine. Now I am trying to port it on a new > system using Yocto to build the image. > > Basically I have my own MIB and associated code which I am compiling with > the agent. > > Here is the summary of the configuration: > > $ cat configure-summary > SNMP Versions Supported: 1 2c 3 > Building for: linux > Net-SNMP Version: 5.7.3 > Network transport support: Callback Unix Alias UDP TCP UDPIPv4Base > UDPBase IPv4Base SocketBase TCPBase > SNMPv3 Security Modules: usm > *Agent MIB code: default_modules my_file1 my_file2 > my_Timer_Util* => snmpv3mibs mibII/snmp_mib mibII/system_mib > mibII/sysORTable mibII/vacm_vars mibII/vacm_conf > MYSQL Trap Logging: unavailable > Embedded Perl support: disabled > SNMP Perl modules: disabled > SNMP Python modules: disabled > Crypto support from: internal > Authentication support: MD5 SHA1 > Encryption support: DES AES > Local DNSSEC validation: disabled > $ > > > my_file1 my_file2 my_Timer_Util are my C code to handle my MIB. > > *This method was used on old system with no problems.* > > > On the new system (172.27.43.2) I have: > > root@NEM:/etc/snmp# snmptranslate -IR -On mpbc1RUDateTime > .1.3.6.1.4.1.4464.2.3.4.2.3 > root@NEM:/etc/snmp# > > So the MIB is recognized! > > But a snmpget is failing > > root@NEM:/etc/snmp# snmpget -v 3 -u Simon -a MD5 -A Simon-00 -l > authNoPriv -t 5 172.27.43.2 MPBC-1RU-MIB::mpbc1RUDateTime.0 > MPBC-1RU-MIB::mpbc1RUDateTime.0 = No Such Object available on this agent > at this OID > root@NEM:/etc/snmp# > > root@NEM:/etc/snmp# snmpget -v 2c -c public 172.27.43.2 > MPBC-1RU-MIB::mpbc1RUDateTime.0 > MPBC-1RU-MIB::mpbc1RUDateTime.0 = No Such Object available on this agent > at this OID > root@NEM:/etc/snmp# > > > > > Needless to say, in snmpd.conf I have: > createUser Simon MD5 "Simon-00" > rwuser Simon > > # SNMPv1/SNMPv2c > rocommunity public > rwcommunity private > > > What am I missing? > > Any hint will be greatly appreciated. > > S. > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ 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