Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

snmpwalk -v 1 -c public localhost .


snmpwalk -v 1 -c public myPCname or myIP .

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

share|improve this question
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 ( 56(84) bytes of data. 64 bytes ( icmp_seq=1 ttl=64 time=0.032 ms and same for ping, it's my IP's from ifconfig, edit: It's maybe due to firewall – caub 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. – caub May 21 '12 at 16:20
What snmp-server is this? – Paul May 22 '12 at 4:04

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 .

Then restart snmpd

/etc/init.d/snmpd restart

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .