04-17-2023 02:09 AM
hi all,
i have configured 4 snmp hosts in the catalyst switch as my NAC appliances for traps forwarding.
i need to know how the cisco switch forwards the snmp-traps to several hosts ? is it the first host configured will serve all the request and forward the traps or all the active hosts?
Also, if i failover the first host, will the switch be still sending the traps to that(failed) host as well?
Insights from an expert
Solved! Go to Solution.
04-17-2023 03:31 AM
>...i need to know how the cisco switch forwards the snmp-traps to several hosts ? i
Probably done sequentially depended on how they are defined (in which order) in the running-config , if you have milliseconds based logging on the snmp managers , you may be able to find out
>...Also, if i failover the first host, will the switch be still sending the traps to that(failed) host as well?
Yes , meaning it's actually not related because SNMP traps are UDP and UDP is stateless ,the switch 'just sends it' , without caring if it arrived (because UDP is used) ,
M.
04-17-2023 03:31 AM
>...i need to know how the cisco switch forwards the snmp-traps to several hosts ? i
Probably done sequentially depended on how they are defined (in which order) in the running-config , if you have milliseconds based logging on the snmp managers , you may be able to find out
>...Also, if i failover the first host, will the switch be still sending the traps to that(failed) host as well?
Yes , meaning it's actually not related because SNMP traps are UDP and UDP is stateless ,the switch 'just sends it' , without caring if it arrived (because UDP is used) ,
M.
04-17-2023 03:35 AM
Thanks marce.
You are right since its a udp switch is just forwarding as is.
04-17-2023 03:41 AM
SNMP is UDP and all protocol that need broadcast use UDP and hence the SW send multi copy of packet to all SNMP server
except that even if multi copy still this add more work in CPU.
04-17-2023 04:44 AM
Hi
The switch will send to all host independently and if the host fail the switch does not care, it will try to send anyway unless you do there and remove the host. There is not cheking or load balance service on it.
And keep in mind that SNMP traffic uses UDP protocol and UDP does not provide confirmation. Would be like a stream, device send data and that´s it. If receive or not, it does not care.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide