replace of if-mib

klaus <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1389119293.1910.9.camel@klaus-01-yass>
Hi all,
i need a modified if-mib for my embedded agentx application.

I did :
./configure 	    \
  --disable-embedded-perl \
	--disable-manuals \
	--disable-scripts \
	--enable-mini-agent \
	--with-transports="UDP Callback"\
	--with-out-mib-modules="utilities ucd_snmp mibII/ifTable"      
	--with-mib-modules="sysORTable mibII/tcp mibII/icmp mibII/udp
snmpv3mibs agentx" \

but i got some warnings that if-mib etc needs this mib. Comppiling also
failed.

So my attempt was to compile with current if-mib and to unregister
this mib to replace it by a new one.

But unregistering  this mib failed. I did this:

 oid InterfaceMibTable_oid[] = { 1,3,6,1,2,1,2,2};


  netsnmp_table_registration_info *table_info;
  netsnmp_handler_registration *my_handler;
  netsnmp_iterator_info *iinfo;
  int retval;

 retval = unregister_mib_priority (InterfaceMibTable_oid,
OIDLENGTH(InterfaceMibTable_oid),0) ;
  switch (retval)
  {
    case  MIB_NO_SUCH_REGISTRATION:

      printf ("MIB_NO_SUCH_REGISTRATION failed\n");
      break;
    case  MIB_UNREGISTRATION_FAILED:

      printf ("MIB_UNREGISTRATION_FAILED\n");
    break;

  }

I still got retval "MIB_NO_SUCH_REGISTRATION:"

Any suggestions?


Thx in advance
Klaus


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.