Re: Delayed notification when using IP-MIB::ipAddressTable instead of IP-MIB::ipAddressTable

2024-01-15 Thread Niels Baggesen

Den 11-01-2024 kl. 14:25 skrev Christophe Leroy via Net-snmp-coders:

When using IP-MIB::ipAddrTable the manager is notified immediately but
when using IP-MIB::ipAddressTable the notification is delayed several
seconds and after investigation it looks like it is because the content
of IP-MIB::ipAddressTable is cached for 30 seconds.

What should be done in order to restore the same behaviour as with
IP-MIB::ipAddrTable and get an immediate notification ?


You can check the cache timeout by checking:

snmpget host nsCacheTimeout.1.3.6.1.2.1.4.34

and, if you have write access to the agent, change it by snmpset:

snmpset host nsCacheTimeout.1.3.6.1.2.1.4.34 = 1

(dont set it to 0, then it will default to 5)

/Niels

--
Niels Baggesen -- @home -- Ã…rhus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming



___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Delayed notification when using IP-MIB::ipAddressTable instead of IP-MIB::ipAddressTable

2024-01-11 Thread Christophe Leroy via Net-snmp-coders
Hi,

I'm actually in the process of upgrading a former IPv4-only system into 
IPv6.

As part of it, we have to use the new table IP-MIB::ipAddressTable 
instead of IP-MIB::ipAddrTable which can only contain IPv4 addresses.

Our system uses this table together with DISMAN to monitor IP addresses 
assigned to interfaces and/or creation/deletion of interfaces, and we 
have a requirement that the manager gets notified within a few seconds.

Using Net-SNMP version 5.9.3

When using IP-MIB::ipAddrTable the manager is notified immediately but 
when using IP-MIB::ipAddressTable the notification is delayed several 
seconds and after investigation it looks like it is because the content 
of IP-MIB::ipAddressTable is cached for 30 seconds.

What should be done in order to restore the same behaviour as with 
IP-MIB::ipAddrTable and get an immediate notification ?

Thanks
Christophe

___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders