in reply to SNMP how to change transport from UDP to TCP ?
--with-perl-modules
And then make, make install and then the SNMP perl module will work just fine with a hostname of "tcp:localhost:161" for example. (net-snmp supports many transports, including IPv6, IPX, ...) HOWEVER!!! Just because a packet arrives via TCP doesn't mean that the *application* received it. It just means the stack received it. Thus, SNMP has its *own* confirmed method of a trap that is called an "INFORM" and is simply an acknowleged trap. But, you must use SNMPv2c or higher (preferrably v3 with security turned on). So, if you use the inform() method of the SNMP module, it will send an inform that will be acknowledged even over UDP.
|
|---|