hi,all
I planed to extend the agent (net-agent5.1.2) in win32.The following is what i did:
1 Wrote a tested mib file
2 Used mib2c to general the code template and modified these code
3 Modified the snmpdsdk project (vc6)
    3.1 Deleted the definition of WIN32SERVICE
       3.2  Modified the function init_mib_modules()
          void
         init_mib_modules(void)
         {
         /*#  include "mib_module_inits.h"*/
        
             init_system_mib();
             init_sysORTable();
             init_snmp_mib();
             init_vacm_vars();
 
             init_utsTESTCardTable();   /*This is myself mib table initial function*/
         }
    3.3 Deleted some module in "mib_module_inits.h"
4 Then I run the snmpdsdk project,it print the following information

No log handling enabled - turning on stderr logging
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for th
is agent.
NET-SNMP version 5.1.2

5 Then I tried to use mib-browser to connect it, it has no response.

Received 39 bytes from 127.0.0.1
0000: 30 25 02 01  01 04 06 70  75 62 6C 69  63 A1 18 02    0%.....public?.
0016: 01 0C 02 01  00 02 01 00  30 0D 30 0B  06 07 2B 06    ........0.0...+.
0032: 01 02 01 01  03 05 00                                 .......

Received SNMP packet(s) from 127.0.0.1
  GETNEXT message
    -- SNMPv2-MIB::sysUpTime

 

I am not clear what's the matter. Is it mandatory to read the configure file?

Does anyone tell me what else i should do ?

valley

 

Reply via email to