Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

how could I configure it, to work with my hostname, my ip, my domainName

snmpwalk -v 1 -c public localhost .1.3.6.1.2.1

works

snmpwalk -v 1 -c public myPCname or myIP .1.3.6.1.2.1

doesn't work: Timeout: No Response from myPCname or myIP

share|improve this question
1  
Does ping work with myPCname? –  Keith May 21 '12 at 15:53
    
In addition to Keith's question, can you even ping the IP? –  MaQleod May 21 '12 at 16:02
    
ping myPC PING myPC.somewhere.co (138.111.111.1110) 56(84) bytes of data. 64 bytes frommyPC.somewhere.co (138.111.111.111): icmp_seq=1 ttl=64 time=0.032 ms and same for ping 138.111.111.111, it's my IP's from ifconfig, edit: It's maybe due to firewall –  ca11111 May 21 '12 at 16:18
    
well no the ports 161 are added in the firewall for udp, and even, locally it should have worked, so I have no idea, I have already uninstalled snmpd and reinstalled it. –  ca11111 May 21 '12 at 16:20
1  
What snmp-server is this? –  Paul May 22 '12 at 4:04

1 Answer 1

Do you have the agent configured to respond to SNMP queries externally?

Edit /etc/snmp/snmpd.conf and see if under ACCESS CONTROL you have community and trees allowed that would apply for external access, check this for details

You now probably have rocommunity public localhost (hence localhost works) but then another directive with rocommunity communitysecret default -V systemonly, try commenting this one out.

Try adding a line with rocommunity communitystring default Then

snmpwalk -v 1 -c communitystring myPCname or myIP .1.3.6.1.2.1

Then restart snmpd

/etc/init.d/snmpd restart

share|improve this answer

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.