LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2009, 05:20 AM   #1
andrewhbk
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Rep: Reputation: 0
problem with snmpd.conf couldn't snmpwalk with the ip 118.107.242.20?


this is my snmpd.conf

# sec.name source community
com2sec local localhost public
com2sec paranoid default public
com2sec mynetwork 118.107.242.0/28 public
#com2sec readonly default public
#com2sec readwrite default private

####
# Second, map the security names into group names:

# sec.model sec.name
group MyROSystem v1 local
group MyROSystem v2c local
group MyROSystem usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local

####
# Third, create a view for us to let the groups have rights to:

# incl/excl subtree mask
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

# context sec.model sec.level match read write notif
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none

syslocation MainDatacenter
syscontact webmaster@debianhelp.co.uk

when i used snmpwalk -v 2c -c public 118.107.242.20 system it show timeout: no response
please help
 
Old 08-19-2009, 05:27 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by andrewhbk View Post
this is my snmpd.conf

# sec.name source community
com2sec local localhost public
com2sec paranoid default public
com2sec mynetwork 118.107.242.0/28 public
#com2sec readonly default public
#com2sec readwrite default private

####
# Second, map the security names into group names:

# sec.model sec.name
group MyROSystem v1 local
group MyROSystem v2c local
group MyROSystem usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local

####
# Third, create a view for us to let the groups have rights to:

# incl/excl subtree mask
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

# context sec.model sec.level match read write notif
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none

syslocation MainDatacenter
syscontact webmaster@debianhelp.co.uk

when i used snmpwalk -v 2c -c public 118.107.242.20 system it show timeout: no response
please help
can you ping the system from this box?

does the remote box have snmp port listening?

please indicate your troubleshooting steps so far
 
Old 08-19-2009, 07:20 AM   #3
andrewhbk
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
yes i have install snmpd daemon on remote server too
and i can ping remote server
i only used snmpwalk check it, only localhost is working.
 
Old 08-19-2009, 07:40 AM   #4
andrewhbk
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
sorry
forget to tell that i configure this because i used it for the mrtg.
 
Old 08-19-2009, 08:52 AM   #5
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
dont know if this will help you, but i use this with mrtg, and i access it via the 10.10.0.0/16 net.

Code:
com2sec local     127.0.0.1/32    private
com2sec local     192.168.0.0/24   private
com2sec local     10.10.0.0/16   private

group MyROGroup v1         local
group MyROGroup v2c        local
group MyROGroup usm        local

view all    included  .1                               80

access MyROGroup ""      any       noauth    exact  all    none   none

syslocation location
syscontact admin@somewhere.com

Last edited by evilted; 08-19-2009 at 08:56 AM. Reason: dammed code tags
 
Old 08-19-2009, 11:48 AM   #6
andrewhbk
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
thanks evilted, i solved the issue
it's the "view system included .iso.org.dod.internet.mgmt.mib-2.system" cause the problem, i just remove this line then it worked.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring snmpd.conf on RHLE5.2 gsahota72 Linux - Networking 1 05-19-2009 11:16 AM
configuring snmpd.conf on RHLE5.2 gsahota72 Linux - Newbie 1 05-19-2009 10:27 AM
snmpd: relocation error snmpd:undefined symbol: lastAddrAge Strike2000 Slackware 0 02-11-2008 04:45 AM
How to add MIB's in snmpd.conf file manish_2479 Linux - Networking 0 07-09-2007 03:11 PM
Sending traps in snmpd.conf rbh123 Linux - Networking 0 09-18-2006 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration