RE: Help connecting to agent

"Arazo Camprecios, Marc" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

Try something like this:

############################################################################
# General configuration
############################################################################

# Map the community name into a security name
#
#		sec.name	source		community
com2sec	local		127.0.0.1/32  	localcom
com2sec	network	192.168.0.0/24	netcom

# Map the security names into group names:
#
#			sec.model	sec.name
group MyRWGroup	v1		local
group MyRWGroup	v2c		local
group MyRWGroup	usm		local
group MyROGroup	v1		network
group MyROGroup	v2c		network
group MyROGroup	usm		network

# Create a view for us to let the groups have rights to:
#
#		incl/excl	subtree	mask
view all	included	.1		80

# Grant the 2 groups access to the 1 view with different permissions:
#
#			context	sec.model	sec.level	match	read	write	notif
access MyROGroup 	""      	any       	noauth    	exact all	none  none
access MyRWGroup 	""      	any       	noauth    	exact all	all   none

Regards,
Marc

-----Mensaje original-----
De: Mike Ayers [mailto:[email protected]] 
Enviado el: miércoles, 26 de noviembre de 2008 19:11
Para: Raúl Mellado; [email protected]
Asunto: RE: Help connecting to agent

> From: Raúl Mellado [mailto:[email protected]] 
> Sent: Wednesday, November 26, 2008 2:30 AM

>    thanks for your quick answer. This is my snmpd.conf 
> (placed in  /usr/local/share/snmp/):
> 
> ##############################################################
> #############
> #
> # snmpd.conf
> #
> #   - created by the snmpconf configuration program
> #
> ##############################################################
> #############
> # SECTION: System Information Setup
> #
> #   This section defines some of the information reported in
> #   the "system" mib group in the mibII tree.
> 
> # syslocation: The [typically physical] location of the system.
> #   Note that setting this value here means that when trying to
> #   perform an snmp SET operation to the sysLocation.0 
> variable will make
> #   the agent return the "notWritable" error code.  IE, including
> #   this token in the snmpd.conf file will disable write access to
> #   the variable.
> #   arguments:  location_string
> 
> syslocation  "Test location string"
> 
> # syscontact: The contact information for the administrator
> #   Note that setting this value here means that when trying to
> #   perform an snmp SET operation to the sysContact.0 
> variable will make
> #   the agent return the "notWritable" error code.  IE, including
> #   this token in the snmpd.conf file will disable write access to
> #   the variable.
> #   arguments:  contact_string
> 
> syscontact  "Test contact info"
> 
> # sysservices: The proper value for the sysServices object.
> #   arguments:  sysservices_number
> 
> sysservices 0
> ##############################################################
> #############

	There is no access control in here, so no command will ever be answered.

>    And these are the failing commands (all of them get 
> Timeout: No Response from localhost)
> 
>  snmpget -v1 -c public localhost  system.sysLocation.0
>  snmpwalk -v1 localhost -c public system
>
> (I've tried with -v1 and -v2c, and the result is the same).
> 
>    Any advice about what to try next? Thank you so much for your help!

	This is the expected response to an unauthorized community.  Please add to your snmpd.conf:

rwcommunity public

	This will help you get started.


	HTH,

Mike

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.