Need to configure SNMPv3 user without net-snmp restart

2012-05-15 Thread Suresh kumar
Hi, We need to provision the SNMP Agent with SNMPv3 user configuration from GUI and we are using the following steps to do the same: 1.Stop any SNMP daemon running on the system using kill command. 2.Add the following line in the file /var/net-snmp/snmpd.conf createUser username

Re: Need to configure SNMPv3 user without net-snmp restart

2012-05-15 Thread Dave Shield
On 15 May 2012 08:09, Suresh kumar skjaiswa...@hotmail.com wrote: Please suggest a mechanism where the SNMPv3 user add/delete will not need Agent restart. That is precisely the purpose of the 'snmpusm' command. The utility snmpusm will have to be built on Montavista  (target machine) to

How to implement the minutes of the day or the minutes of the week

2012-05-15 Thread Giuseppe Modugno
In my agent extension, I have to implement one or more objects that represents the minutes of the week (HH:MM of MON, THU, WED..). This is for a electronic programmable thermostat that can be configured differently for each day of the week. I have four solutions, but I don't know what is the

Re: How to implement the minutes of the day or the minutes of the week

2012-05-15 Thread Dave Shield
On 15 May 2012 09:16, Giuseppe Modugno g.modu...@elettronika.it wrote: The fourth is to define a new private/custom TimeOfWeek textual convetion of 3 bytes (day of the week 1..7, hours 0..23, minutes 0..59). That would probably be my preference of the four alternatives. Make sure that your TC

Problem installing a MIB

2012-05-15 Thread Jérôme BELLEGARDE
Hello everyone, I'm currently trying to install a MIB for my enterprise (got IANA number),but it seems I got some problem. So I try to use this : http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_MIB_Module So i have : ./configure --with-mib-modules=nstAgentModuleObject Make

Re: Problem installing a MIB

2012-05-15 Thread Dave Shield
On 15 May 2012 10:22, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: ./configure --with-mib-modules=nstAgentModuleObject Make Make install This is presumably installing a source-compiled version of the agent. Where was it installed to? ( /usr/local/sbin/snmpd would be the

TR: Problem installing a MIB

2012-05-15 Thread Jérôme BELLEGARDE
Hello, Thanks for your fast answer. I have download the tar package on the snmp-website / mirror. I have kept all defaut parameters while ./configure, only changed the snmp version to 2c. (2) Have you tweaked this script to work with your locally compiled version of the agent? Or is it

Re: Problem installing a MIB

2012-05-15 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 15

RE: Problem installing a MIB

2012-05-15 Thread Jérôme BELLEGARDE
Thx for this solution. I have made the changement of the link destination on my /etc/init.d/snmpd Now the file is like this : set -e . /lib/lsb/init-functions export PATH=/usr/local/sbin test -x /usr/local/sbin/snmpd || exit 0 test -x /usr/local/sbin/snmptrapd || exit 0 # Defaults export

Re: Problem installing a MIB

2012-05-15 Thread Dave Shield
On 15 May 2012 15:25, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: But when I'm doing /etc/init.d/snmpd restart, I got this error : /etc/init.d/snmpd: 39: ln: not found Hmmm... I'd expect 'ln' to be a fairly standard command in any Linux distribution. What do the following

RE: Problem installing a MIB

2012-05-15 Thread Jérôme BELLEGARDE
Hey, What do the following command report: which ln = /bin/ln ls -l /bin/ln /usr/bin/ln = ls: cannot access /usr/bin/ln: No such file or directory -rwxr-xr-x 1 root root 47680 2011-02-23 15:24 /bin/ln Try tweaking this line of the /etc/init.d/snmpd script to use the full path

Re: Problem installing a MIB

2012-05-15 Thread Dave Shield
On 15 May 2012 15:25, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: Now the file is like this : export PATH=/usr/local/sbin Argh! That's why you're having problems. You only needed to change the references to /usr/sbin/snmpd to read /usr/local/sbin/snmpd (and similarly

RE: Problem installing a MIB

2012-05-15 Thread Jérôme BELLEGARDE
Hey, Put this line back to the way it was before export PATH=/sbin:/usr/sbin:/bin:/usr/bin Agh ! Did it, ok nice so now the restart is working /etc/init.d/snmpd restart Then : snmptranslate -M+. -mNET-SNMP-TUTORIAL-MIB -Tp -IR nstAgentModuleObject = +-- -RW- Integer32

Re: Need to configure SNMPv3 user without net-snmp restart

2012-05-15 Thread Dave Shield
On 15 May 2012 15:56, Gary Dunlap gary.dun...@dothill.com wrote: To paraphrase this, and Suresh's original message, are you saying that sending a SIGHUP signal to re-read the .conf file is no longer supported for SNMPv3 users definitions?  No longer meaning version 5.7.1. I am not aware of any