Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm having trouble with the Microsoft SNMP agent on Windows 2008R2 not listening on all IP addresses on a number of servers.

When I do netstat -ano I can see that it's apparently listening on all IP's:

UDP    0.0.0.0:161            *:*                                    996

However in practice it only seems to be listening on one IP address on each server. What I can't work out is the selection criteria.

I'd actually far rather it just listen on one IP address, but one of my choosing.

Is there a way to force the MS SNMP Agent service to listen on a specific IP address?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

I suspect the SNMP service is in fact listening on all interfaces, but your ability to use it on all interfaces is blocked by the Windows firewall. Run wf.msc and take a look at the inbound rules for SNMP - the installation of the SNMP feature would normally have created one rule for the domain profile and one for the public profile. Check the "Scope" tab for restrictions on certain local IP addresses.

share|improve this answer
    
heh...close. Turns out there's something wacky in my nagios unix box's IPTables config. Outbound connections to the SNMP agents from a bunch of other machines (snmpget) are fine. But for some reason this box is being selective about which IP address it'll allow an outbound snmp connection to, even though there is no rule denying access to my windows boxes. –  Kev Jun 1 '11 at 22:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.