snmpusm notWritable

2021-06-21 Thread Romain Boisrame
.1.6.3.10.1.1.2 0xb1ccc82374fba0f25dc2dcca2eadc5ad .1.3.6.1.6.3.10.1.2.2 0xb1ccc82374fba0f25dc2dcca2eadc5ad 0x When I want to clone this user (using the following command : ./snmpusm -v3 -l authPriv -u testl3 -a MD5 -A unephrase -x DES -X unephrase 198.18.104.143 create usercloned testl3) I get the following error: Error in

Posix_Spawn and snmpusm

2021-02-17 Thread Justin Cook
Hi Coders, I've uncovered an issue with our code base when using posix_spawn to create users for snmp. The below is a snippet of our code. sprintf_s(strIn, sizeof(strIn), "/usr/local/bin/snmpusm -n %c%c -v3 -u %s -l authNoPriv -a MD5 -A %s localhost

Re: snmptrapd users set by snmpusm

2018-09-24 Thread Wes Hardaker via Net-snmp-coders
Josef Ridky writes: > I would like to know, if is there any utility for create/modify/delete > user for snmptrapd like there is snmpusm for snmpd. > The only way how to create snmptrapd user is write proper command to > /etc/snmp/snmptrapd.conf file and for removing snmptrapd user

snmptrapd users set by snmpusm

2018-09-10 Thread Josef Ridky
Hi, I would like to know, if is there any utility for create/modify/delete user for snmptrapd like there is snmpusm for snmpd. The only way how to create snmptrapd user is write proper command to /etc/snmp/snmptrapd.conf file and for removing snmptrapd user I have to remove proper line from

Create/Delete trapuser using snmpusm command

2018-04-24 Thread Madhusudhana R
Hi Coders, I have a query. Can we create or delete trap users using snmpusm create and delete commands? Thanks in advance. Regards, Madhu -- Check out the vibrant tech community on one of the world's most eng

Re: transport copy [Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)]

2011-01-07 Thread Magnus Fromreide
On Fri, 2011-01-07 at 14:13 -0800, Wes Hardaker wrote: > On Thu, 6 Jan 2011 18:46:11 +0100 Bart wrote: > BVA> Are the original transport data structure and its copy modified > BVA> independently of each other - if these are ever modified ? If not, a > BVA> possible alternative is to use reference c

Re: transport copy [Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)]

2011-01-07 Thread Wes Hardaker
On Thu, 6 Jan 2011 18:46:11 +0100 Bart wrote: BVA> Are the original transport data structure and its copy modified BVA> independently of each other - if these are ever modified ? If not, a BVA> possible alternative is to use reference counting instead of copying. RS> I believe Wes added the copy

Re: transport copy [Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)]

2011-01-07 Thread Robert Story
On Thu, 6 Jan 2011 18:46:11 +0100 Bart wrote: BVA> Are the original transport data structure and its copy modified BVA> independently of each other - if these are ever modified ? If not, a BVA> possible alternative is to use reference counting instead of copying. I believe Wes added the copy funct

Re: transport copy [Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)]

2011-01-06 Thread Bart Van Assche
On Thu, Jan 6, 2011 at 5:49 AM, Robert Story wrote: > On Tue, 04 Jan 2011 23:07:16 +0100 Magnus wrote: > MF> What is the correct semantics of a copy of a transport? > MF> > MF> What happens if I close the copy? The original? > > Good point. One of them will be left with a file descriptor that is

transport copy [Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)]

2011-01-05 Thread Robert Story
On Tue, 04 Jan 2011 23:07:16 +0100 Magnus wrote: MF> What is the correct semantics of a copy of a transport? MF> MF> What happens if I close the copy? The original? Good point. One of them will be left with a file descriptor that is no longer valid. If some other tranport then opens a socket, the

Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)

2011-01-04 Thread Magnus Fromreide
On Mon, 2011-01-03 at 21:24 +0100, Bart Van Assche wrote: > On Mon, Jan 3, 2011 at 8:57 PM, Bart Van Assche > wrote: > Hi, > > Recently tests T053 and T110 started to fail (Linux and > Cygwin) in a similar fashion: snmp{trap}d.log shows that a > response ha

Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)

2011-01-03 Thread Bart Van Assche
On Mon, Jan 3, 2011 at 8:57 PM, Bart Van Assche wrote: > Hi, > > Recently tests T053 and T110 started to fail (Linux and Cygwin) in a > similar fashion: snmp{trap}d.log shows that a response has been sent but the > client that sent the request did not receive the response. > > Has anyone already

Re: r17157 broke snmpusm / "make test" (trunk)

2008-08-18 Thread Wes Hardaker
> On Mon, 18 Aug 2008 00:30:57 +0200, Thomas Anders <[EMAIL PROTECTED]> > said: TA> If we can't come up with a fix in a reasonable time frame, I propose to TA> back out the patch. Reverted. -- Wes Hardaker Sparta, Inc. ---

Autoreply to r17157 broke snmpusm / "make test" (trunk)

2008-08-18 Thread hardaker
Thank you for writing us. Elettronika will be on holiday until 25/08/08, as such we cannot answer now to your e-mail, but we will as soon as we come back. Grazie per aver scritto all'Elettronika. Saremo in vacanza fino al 25/01/08, pertanto risponderemo alla Vs. mail al nostro rientro.

r17157 broke snmpusm / "make test" (trunk)

2008-08-17 Thread Thomas Anders
[EMAIL PROTECTED] wrote: > Revision: 17157 > http://net-snmp.svn.sourceforge.net/net-snmp/?rev=17157&view=rev > Author: hardaker > Date: 2008-08-15 13:45:20 + (Fri, 15 Aug 2008) > > Log Message: > --- > NEWS: snmpusm: PATCH: 1591355: fro

Re: Issue with localized keys support for SNMPUSM(5.1.4)

2008-04-15 Thread Wes Hardaker
> On Fri, 11 Apr 2008 16:58:53 +0530, anand <[EMAIL PROTECTED]> said: a> Kindly let me know if there is any patch or an add on available that a> supplies support for localized Key changes in 5.1.4.(-Ck Option). You might be able to copy a recent apps/snmpusm.c file to the older 5.1.4 line of

Issue with localized keys support for SNMPUSM(5.1.4)

2008-04-11 Thread anand
Hi All I have been facing issues with versions 5.2.4,5.3.2 and 5.4.1 for the past few days. All these versions have support for -Ck Option in snmpusm command for changing the passphrases to localized keys directly using 0x in front of the localized key. Similarly we can also create the SNMP user

Re: r16373 broke snmpusm in trunk

2007-05-18 Thread Wes Hardaker
> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: TA> The change to trunk/net-snmp/apps/snmpusm.c seems to be related to patch TA> 1591355, not 1645698. It also breaks test #20. I assume it went in by TA> accident. I've backed it out in r16384. Thanks. My patme script wasn't doing a proper

r16373 broke snmpusm in trunk

2007-05-18 Thread Thomas Anders
[EMAIL PROTECTED] wrote: > Revision: 16373 > http://net-snmp.svn.sourceforge.net/net-snmp/?rev=16373&view=rev > Author: hardaker > Date: 2007-05-16 21:39:31 -0700 (Wed, 16 May 2007) > > Log Message: > --- > CHANGES: snmplib: patch: 1645698: fix 64-bit signed integer encodi

snmpusm patch

2006-11-06 Thread Passera Pablo-APP015
To the net-snmp patch tracker admin, By mistake, I submitted twice the snmpusm application patch, do you mind deleting/rejecting one of them? Preferable the one that was submitted as nobody. Thanks, and sorry about that. Pablo

Re: Proposal for snmpusm

2006-11-01 Thread Thomas Anders
Passera Pablo-APP015 wrote: > I'm attaching the proposed patch for snmpusm. The version I'm > comparing to is 5.3.0.1 Thanks. Can you post this to the patch tracker (www.net-snmp.org/patches), please? +Thomas -- Thomas Anders (thomas.anders

Re: Proposal for snmpusm

2006-11-01 Thread Wes Hardaker
>>>>> "PP" == Passera Pablo-APP writes: PP> My proposal for this is to add a new option to the snmpusm PP> application. The new feature looks like a good and well-needed one. Can you please upload it to http://www.net-snmp.org/patches as well to make sure w

Proposal for snmpusm

2006-11-01 Thread Passera Pablo-APP015
Hi, I have two proposals for the snmpusnm. First, with the current snmpusm implementation you cannot clone a user with a different engineID than the template, for instance, if you use: ./snmpusm -v 3 -u Admin -l authPriv -a SHA -A Test1 -x AES -X Test1 localhost -CE

RE: Snmpusm application

2006-10-17 Thread Passera Pablo-APP015
Thomas, when I use the -CE option with the snmpusm application it seems that it has to be an user with that engineID to clone from when I'm creating a new user. Is that correct or I'm not using correctly the -CE option? Thanks, Pablo > -Original Message- > From:

Re: Snmpusm application

2006-10-12 Thread Thomas Anders
Passera Pablo-APP015 wrote: > One question about this application, Is it possible to > clone/create an user with an engineID different than the one in the > agent? snmpusm in net-snmp 5.3 and later supports a "-CE " option for exactly this purpose. +Thomas

Snmpusm application

2006-10-12 Thread Passera Pablo-APP015
Hi everybody, One question about this application, Is it possible to clone/create an user with an engineID different than the one in the agent? Or this can only be done adding the user in the persistency file? Thanks, Pablo -

Re: snmpusm + changekey (DH Keys)

2006-05-08 Thread Wes Hardaker
> On Mon, 8 May 2006 15:33:52 +0530, <[EMAIL PROTECTED]> said: kanakamahesh> Is it the limitation of net-snmp for not persisting kanakamahesh> changed dh-keys in snmpd.conf? No, the keys should definitely be stored in the snmpd.conf file after a key change.Did you happen to do a kill -9 o

snmpusm + changekey (DH Keys)

2006-05-08 Thread kanakamahesh.anasuri
Hi,   I changed Auth/Priv DH keys using snmpusm. It displayed the changed authentication/privacy keys on the console after snmpusm for respective USM user.   I was not sure whether the changed keys will persist in /var/net-snmp/snmpd.conf file? To verify this usecase, I restarted the

Re: Managing SNMPv3 passwords without snmpusm.

2006-02-01 Thread Wes Hardaker
sers. sasson> Is there any way around this besides snmpusm? The usmUser line is actually fairly decipherable. It is not encrypted, it is only in hex. The second hex string (0x...) in the line is actually the user name. It's fairly easy to convert any ascii user name to hex and chec

Managing SNMPv3 passwords without snmpusm.

2006-01-12 Thread sasson_shuki
Title: Managing SNMPv3 passwords without snmpusm. Hi all, I have a question that relates to ease of use (ease of management) of SNMPv3 passwords. Every administrator would like to change some of the passwords of the users accessing the SNMPv3 agent. Lets say that the situation is that there

Re: rfc: new snmpusm flag to specify usmUserEngineID?

2005-10-21 Thread Dave Shield
On Fri, 2005-10-21 at 11:59 +0200, Thomas Anders wrote: > snmpusm currently uses the contextEngineID of the agent (either > probed or specified via -E) to build the index for the usmUserTable. > There IMHO should be a new (optional) flag/parameter to snmpusm to > specify this usm

rfc: new snmpusm flag to specify usmUserEngineID?

2005-10-21 Thread Thomas Anders
-Coders, snmpusm currently uses the contextEngineID of the agent (either probed or specified via -E) to build the index for the usmUserTable. However, as outlined in Bug #1333655 (http://sf.net/support/tracker.php?aid=1333655), this isn't always appropriate, e.g. when manipul

Re: SNMPUSM

2005-07-13 Thread Dave Shield
On Wed, 2005-07-13 at 14:22 +0530, [EMAIL PROTECTED] wrote: > Can we run the snmpusm tool by logging into a device (having > linux OS ) through telnet for changing the privacy key and auth key? Yes. (Though I hope you mean "ssh" rather than

SNMPUSM

2005-07-13 Thread kanda.samy
Hi   Can we run the snmpusm tool by logging into a device (having linux OS )  through telnet for changing the privacy key and auth key?   With regards, Sam    

Re: SNMPUSM user are not recognized after agent restart

2005-06-09 Thread Thomas Anders
Amber Gupta wrote: Actually I looked at your patch earlier and had same opinion that you are trying yo provide solution for same. The problem with me is that I am relatively new to net-snmp and still do not know how patch works..Do I need to just copy file an compile? Get the patch (say: file.d

RE: SNMPUSM user are not recognized after agent restart

2005-06-08 Thread Amber Gupta
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Anders Sent: Wednesday, June 08, 2005 6:13 PM To: [email protected] Subject: Re: SNMPUSM user are not recognized after agent restart Amber Gupta wrote: > I think I know what the problem is . It is

Re: SNMPUSM user are not recognized after agent restart

2005-06-08 Thread Thomas Anders
Amber Gupta wrote: I think I know what the problem is . It is so happening that after every restart engineID is getting changed . Suspiciously sounds like what I've been describing in patch [ 1042139 ] engineID/oldEngineID persistency fix http://sf.net/tracker/index.php?func=detail&aid=1042139

RE: SNMPUSM user are not recognized after agent restart

2005-06-08 Thread Amber Gupta
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wes Hardaker Sent: Wednesday, June 08, 2005 12:24 PM To: Amber Gupta Cc: [email protected] Subject: Re: SNMPUSM user are not recognized after agent restart >>>>> On Sun, 5 Jun 2005 18:47:03 -0400, "Amber G

Re: SNMPUSM user are not recognized after agent restart

2005-06-08 Thread Wes Hardaker
> On Sun, 5 Jun 2005 18:47:03 -0400, "Amber Gupta" <[EMAIL PROTECTED]> said: Amber> I am not able to understand why user is not getting Amber> recognized. I am expecting snmpd to reread already stored users Amber> correctly so that after agent restart I need not re-create Amber> them. Can anyo

SNMPUSM user are not recognized after agent restart

2005-06-05 Thread Amber Gupta
Hi Wes I am facing this strange problem of usm user not getting recognized after agent boot.Here are the steps that I am following . SNMP_PERSISTENT_FILE set to /var/net-snmp/snmpd.conf SNMPCONFPATH set to /etc/snmp,/var/net-snmp /var/net-snmp/snmpd.conf contains following line createUser

Re: Strange problem with SNMPUSM

2004-09-30 Thread Wes Hardaker
> On Tue, 13 Jul 2004 23:22:04 +0530, <[EMAIL PROTECTED]> said: Jeeru> Reason: authorizationError (access denied to that object) That error means you didn't proprly give access to your new user to let them do things. You either need to use the snmpvacm to add authorization rights for your us

Question regarding setting user keys via snmpusm

2004-09-03 Thread Alexander, Michael
Title: Message Is there a mechanism using the snmpusm command for one user (an admin, for example) to set the keys for a different user?  I've been looking though usmuser.c, and it looks like to me that it only sets the key for the user in session.securityName.  Thanks,   Michael Alex

Strange problem with SNMPUSM

2004-07-13 Thread Jeeru.Subbi
Hi All, I have found some strange problem with SNMPUSM - I am not sure as whether it could be a problem in my configuration! I am using net-snmp ver 5.1 running on RedHat Linux 7.2 Kernel is 2.4.7 Here is the problem description: I FIRST CREATE A DEFAULT SNMPv3 USER