in reply to SNMP how to change transport from UDP to TCP ?

Traps by default are via TCP. However, if you're looking to change the transport for other SNMP operations, if Net::SNMP operates the same way that the C and java APIs work, you can specify the transport in the 'hostspec'.

hostname = "tcp:host:port" ;
I have not tried this in the perl implementation myself however.

Replies are listed 'Best First'.
Re: Re: SNMP how to change transport from UDP to TCP ?
by riffraff (Pilgrim) on Nov 13, 2003 at 17:20 UTC
    SNMP only uses udp, according to Managing Internetworks with SNMP, pgs 24, 154-155, 157, 166, and so on. I don't think it can be changed to tcp.
Re: Re: SNMP how to change transport from UDP to TCP ?
by kitsonrp (Novice) on Nov 13, 2003 at 12:52 UTC
    Thanks for the info . I was unaware trap are sent via TCP, problem solved