zhaojing
zhaojing

Reputation: 635

How to query snmp trap through system floating IP?

I have written a snmp-agent, and it can run in system (rhel5). By querying oid from snmp client, it will get snmp trap. But my problem is: if there are two servers(one is stand-by system, one is active system),If I query snmp trap by floating IP, I will get no snmp trap. That is, I have to query by the true(active) IP, not floating IP.

My question is : is there a way to query snmp trap through floating IP? How to configure my snmp-agent?

Thanks!

Upvotes: 0

Views: 318

Answers (1)

bstpierre
bstpierre

Reputation: 31226

Bind your snmp agent to INADDR_ANY (0.0.0.0) instead of the actual IP address.

Upvotes: 1

Related Questions