Re: error on subcontainer '' insert (-1)
Robert Story <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 30 Oct 2006 14:05:33 -0500 Hai wrote: HW(> > HW(> The error comes from the CONTAINER_INSERT call in HW(> > HW(> netsnmp_ioctl_ipaddress_container_load_v4 HW(> > HW(> HW(> > HW(> It only happened to the interfaces which have the same IP address, HW(> > HW(> it does not make sense to have the same IP on two ethernet HW(> > HW(> interfaces, This is the source of the problem. The indexes for this table are ipAddressAddrType and ipAddressAddr. That means that an ipAddress on multiple interfaces will not have a unique index. So, to deal with this, you would have to add support for the ipv4z InetAddress type. This adds an extra 2 bytes to an ipv4 InetAddress, for the 'zone.' Then you would have to make sure that the zone portion is consistently set to the same value. I haven't checked, but this might (probably will) require updates throughout the code to deal with an ip address that is not 4 bytes long. HW(> > Because it is periodically polling the data internally. HW(> HW(> It is a problem for my system, my system has up to 6000 PPPOE/PPPOA HW(> sessions, its periodical queries consumed all my CPU powers. You could change the code so that the container is only loaded when required to satisfy a request. This means that the ipAddressLastChanged object won't be reliable in any sense of the word. I'm not sure how this might affect the if*Table modules either... ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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