public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] SNMP authentication problem
@ 2008-06-26 16:27 Georg Brutscheid
  2008-06-27 15:11 ` Alperen Coskun
  0 siblings, 1 reply; 13+ messages in thread
From: Georg Brutscheid @ 2008-06-26 16:27 UTC (permalink / raw)
  To: Alperen Coskun, Gary Thomas; +Cc: Andrew Lunn, ecos discuss


I can create a file named as "snmpd.conf" in run time, write the given usernames, groups etc in it, then in "read_config.c" file, I can set SNMPCONFPATH as the folder to be read. I did it like that. But, I couldn't find a code  where it reads these lines in file...


the "snmpd.conf" file is read in read_config.c.  
 read_config_files(..)  looks for the file in the filesystem and if found 
 read_config (configfile, ltmp, when) parse the "snmpd.conf".


Georg


----------------------------------------
> Date: Thu, 26 Jun 2008 05:13:15 -0600
> From: gary@mlbassoc.com
> To: a_a_coskunoc@hotmail.com
> CC: andrew@lunn.ch; ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] SNMP authentication problem
> 
> Alperen Coskun wrote:
> > 
> > Thanks for your response,
> > 
> > I think, the main problem is my ECOS snmp agent doesn't read the lines from snmd.conf file. (or reads but doesn't use it)
> > Because, it should at least call "vacm_parse_security" or "vacm_parse_group" functions to register the user. but, it doesn't. 
> > Or, i'm still missing some points.
> > 
> > May be there are some patches i didn't use. Can it be the problem? 
> 
> Where did you expect it to "read" this file from?  This is an _embedded_ system, no?
> 
> > ----------------------------------------
> >> Date: Wed, 25 Jun 2008 14:41:20 +0200
> >> From: andrew@lunn.ch
> >> To: a_a_coskunoc@hotmail.com
> >> CC: ecos-discuss@ecos.sourceware.org
> >> Subject: Re: [ECOS] SNMP authentication problem
> >>
> >> On Wed, Jun 25, 2008 at 03:22:48PM +0300, Alperen Coskun wrote:
> >>>
> >>> I know its place, but I asked as the basic of SNMP, when I entered lines below to /etc/snmp/snmpd.conf file:
> >>>
> >>> createUser username MD5  "password"
> >>> rwuser username auth
> >>>
> >>> it should create a user "username" with password "password" and encrypt&cypt the coming-coming packets according to MD5.  But, neither it creates a user in usm nor it encrypts&cypts the packets. The thing I want to learn is why it doesn't do it. When I aim to get any parameter from agent, agent says there isn't any user recorded. Am i doing sth wrong? 
> >> I think i once did use the snmpd.conf file, but i don't remember if we
> >> put users in it. I did test create using dynamically using the tests
> >> shown on
> >>
> >> http://ecos.sourceware.org/docs-latest/ref/net-snmp-test-cases.html
> >>
> >> Do these tests work for you? I you might need to enable some of the
> >> features in tests/snmpping.c
> >>
> >>     Andrew
> 
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------

_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss





-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [ECOS] SNMP authentication problem
  2008-06-26 16:27 [ECOS] SNMP authentication problem Georg Brutscheid
@ 2008-06-27 15:11 ` Alperen Coskun
  2008-07-03 12:55   ` [ECOS] Different flash Laurie Gellatly
  0 siblings, 1 reply; 13+ messages in thread
From: Alperen Coskun @ 2008-06-27 15:11 UTC (permalink / raw)
  To: Georg Brutscheid, Gary Thomas; +Cc: Andrew Lunn, ecos discuss



I mean with "it doesn't read", it doesn't take the lines from the snmpd.conf file and register them to the agent software. 
(It reads them from file). Anyway, i found another way to register them. But, i think there is a problem with hashing and md5 algorithm.
With the inputs snmp engine id and pass-phrase, the produced "kul" key isn't valid. (I gave the same inputs to different hash&md5 calculators, they gave the same result but not same with ecos md5 algorithm result.) 

Any ideas? 

----------------------------------------
> Date: Thu, 26 Jun 2008 15:56:21 +0200
> From: gbrutscheid@web.de
> To: a_a_coskunoc@hotmail.com; gary@mlbassoc.com
> CC: andrew@lunn.ch; ecos-discuss@ecos.sourceware.org
> Subject: RE: [ECOS] SNMP authentication problem
> 
> 
> I can create a file named as "snmpd.conf" in run time, write the given usernames, groups etc in it, then in "read_config.c" file, I can set SNMPCONFPATH as the folder to be read. I did it like that. But, I couldn't find a code  where it reads these lines in file...
> 
> 
> the "snmpd.conf" file is read in read_config.c.  
>  read_config_files(..)  looks for the file in the filesystem and if found 
>  read_config (configfile, ltmp, when) parse the "snmpd.conf".
> 
> 
> Georg
> 
> 
> ----------------------------------------
> > Date: Thu, 26 Jun 2008 05:13:15 -0600
> > From: gary@mlbassoc.com
> > To: a_a_coskunoc@hotmail.com
> > CC: andrew@lunn.ch; ecos-discuss@ecos.sourceware.org
> > Subject: Re: [ECOS] SNMP authentication problem
> > 
> > Alperen Coskun wrote:
> > > 
> > > Thanks for your response,
> > > 
> > > I think, the main problem is my ECOS snmp agent doesn't read the lines from snmd.conf file. (or reads but doesn't use it)
> > > Because, it should at least call "vacm_parse_security" or "vacm_parse_group" functions to register the user. but, it doesn't. 
> > > Or, i'm still missing some points.
> > > 
> > > May be there are some patches i didn't use. Can it be the problem? 
> > 
> > Where did you expect it to "read" this file from?  This is an _embedded_ system, no?
> > 
> > > ----------------------------------------
> > >> Date: Wed, 25 Jun 2008 14:41:20 +0200
> > >> From: andrew@lunn.ch
> > >> To: a_a_coskunoc@hotmail.com
> > >> CC: ecos-discuss@ecos.sourceware.org
> > >> Subject: Re: [ECOS] SNMP authentication problem
> > >>
> > >> On Wed, Jun 25, 2008 at 03:22:48PM +0300, Alperen Coskun wrote:
> > >>>
> > >>> I know its place, but I asked as the basic of SNMP, when I entered lines below to /etc/snmp/snmpd.conf file:
> > >>>
> > >>> createUser username MD5  "password"
> > >>> rwuser username auth
> > >>>
> > >>> it should create a user "username" with password "password" and encrypt&cypt the coming-coming packets according to MD5.  But, neither it creates a user in usm nor it encrypts&cypts the packets. The thing I want to learn is why it doesn't do it. When I aim to get any parameter from agent, agent says there isn't any user recorded. Am i doing sth wrong? 
> > >> I think i once did use the snmpd.conf file, but i don't remember if we
> > >> put users in it. I did test create using dynamically using the tests
> > >> shown on
> > >>
> > >> http://ecos.sourceware.org/docs-latest/ref/net-snmp-test-cases.html
> > >>
> > >> Do these tests work for you? I you might need to enable some of the
> > >> features in tests/snmpping.c
> > >>
> > >>     Andrew
> > 
> > 
> > -- 
> > ------------------------------------------------------------
> > Gary Thomas                 |  Consulting for the
> > MLB Associates              |    Embedded world
> > ------------------------------------------------------------
> 
> _________________________________________________________________
> Discover the new Windows Vista
> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 
> 
> 
> 

_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ECOS] Different flash
  2008-06-27 15:11 ` Alperen Coskun
@ 2008-07-03 12:55   ` Laurie Gellatly
  2008-07-03 13:11     ` Andrew Lunn
  0 siblings, 1 reply; 13+ messages in thread
From: Laurie Gellatly @ 2008-07-03 12:55 UTC (permalink / raw)
  To: ecos discuss

Hi All,
I have a board that currently has a pair of ST AM29W 4Mbit flashes on it.
The next revision will require more space so I'm looking at replacing the
STs with ATMEL AT49 64Mbit chips as they are cheaper.
I'm using V2 flash API.
I'd like my code to detect and setup to use either the smaller ST 4Mbit
parts (legacy support) or the larger ATMEL parts. Start address is the same
for both.
In eCos I see that I'll have to change the sector table info on startup
(once the part is detected) but I have a few questions.
I'm trying to get my head around this and wondered if anyone has done this
before and can give me some advice on:
1) Are there specific drivers for the AT49 or will the AM29 driver be OK.
3) If there are specific drivers (or I have to modify/write my own)  then do
I populate the cyg_dev_flash_funs with the appropriate function set at
startup or do I have two of these structures?
If 2 structures where/how do I tie them into eCos?

A dev board that already has this kind of different size flash from
different manufactures would be a good to review.

Thanks			...Laurie:{)


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ECOS] Different flash
  2008-07-03 12:55   ` [ECOS] Different flash Laurie Gellatly
@ 2008-07-03 13:11     ` Andrew Lunn
  2008-07-03 21:39       ` Laurie Gellatly
  2008-07-13 12:44       ` Laurie Gellatly
  0 siblings, 2 replies; 13+ messages in thread
From: Andrew Lunn @ 2008-07-03 13:11 UTC (permalink / raw)
  To: Laurie Gellatly; +Cc: ecos discuss

> 1) Are there specific drivers for the AT49 or will the AM29 driver be OK.

Im too lazy to go look at the data sheet, so i will skip 1)

My mind reading capabilities is also off line,  so i will skip 2) as well.

> 3) If there are specific drivers (or I have to modify/write my own)  then do
> I populate the cyg_dev_flash_funs with the appropriate function set at
> startup or do I have two of these structures?
> If 2 structures where/how do I tie them into eCos?

Flash v2 makes this easy. Just register both drivers. The flash
infrastructure will run the probe function to see if the flash
actually exist. So you would expect one to fail to probe and one to
work. The flash infrastructure will then direct all operations through
the working driver.

    Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [ECOS] Different flash
  2008-07-03 13:11     ` Andrew Lunn
@ 2008-07-03 21:39       ` Laurie Gellatly
  2008-07-13 12:44       ` Laurie Gellatly
  1 sibling, 0 replies; 13+ messages in thread
From: Laurie Gellatly @ 2008-07-03 21:39 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos discuss

Hi Andew,
Sorry if this came across as being lazy, that was not the intent.
I was trying to go with the spirit of this group which I thought included
not
re-inventing the wheel for a driver that already existed and simple sharing
of knowledge.
'2)' was missing - yeah, that what I get for writing email late at night.

CDL is not my strong suit so thanks for the advise. I'll give it a go.

I'm actually considering moving the flash routines onto the processor
and away from external flash. That way the processor flash could
have the specifics of the flash stored in it and the flash structure would
still be static.

Anyway, thanks again.			...Laurie:{)

> -----Original Message-----
> From: Andrew Lunn [mailto:andrew@lunn.ch]
> Sent: Thursday, 3 July 2008 11:11 PM
> To: Laurie Gellatly
> Cc: ecos discuss
> Subject: Re: [ECOS] Different flash
>
>
> > 1) Are there specific drivers for the AT49 or will the AM29
> driver be OK.
>
> Im too lazy to go look at the data sheet, so i will skip 1)
>
> My mind reading capabilities is also off line,  so i will skip 2) as well.
>
> > 3) If there are specific drivers (or I have to modify/write my
> own)  then do
> > I populate the cyg_dev_flash_funs with the appropriate function set at
> > startup or do I have two of these structures?
> > If 2 structures where/how do I tie them into eCos?
>
> Flash v2 makes this easy. Just register both drivers. The flash
> infrastructure will run the probe function to see if the flash
> actually exist. So you would expect one to fail to probe and one to
> work. The flash infrastructure will then direct all operations through
> the working driver.
>
>     Andrew
>
> Internal Virus Database is out of date.
> Checked by AVG.
> Version: 8.0.100 / Virus Database: 270.3.0/1503 - Release Date:
> 6/14/2008 6:02 PM
>


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [ECOS] Different flash
  2008-07-03 13:11     ` Andrew Lunn
  2008-07-03 21:39       ` Laurie Gellatly
@ 2008-07-13 12:44       ` Laurie Gellatly
  1 sibling, 0 replies; 13+ messages in thread
From: Laurie Gellatly @ 2008-07-13 12:44 UTC (permalink / raw)
  To: ecos discuss

All,
Just as an update and FYI on adding alternate flash devices.
I tried adding a second, alternate, flash driver to my project and the
system was not happy when it booted.
A complaint about the device addresses being the same from what I recall.
What I did to resolve it was to change from using
cyg_am29xxxxx_init_check_devid_XX to cyg_am29xxxxx_init_cfi_XX
and then just defining the one flash. That's fine with either flash present
provided the chip supports CFI.
One point that was not clear at first in the documentation was about the
number of entries in the blocks within CYG_FLASH_DRIVER
which I now believe is the number of rows in block_info.

Also the Atmel chips and the ST (Numonyx) chips look almost compatible and
that's exactly what they are - ALMOST compatible.

Hope this helps someone else.				...Laurie:{)


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [ECOS] SNMP authentication problem
  2008-06-26 11:24         ` Gary Thomas
@ 2008-06-26 13:28           ` Alperen Coskun
  0 siblings, 0 replies; 13+ messages in thread
From: Alperen Coskun @ 2008-06-26 13:28 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Andrew Lunn, ecos discuss




I can create a file named as "snmpd.conf" in run time, write the given usernames, groups etc in it, then in "read_config.c" file, I can set SNMPCONFPATH as the folder to be read. I did it like that. But, I couldn't find a code  where it reads these lines in file...



----------------------------------------
> Date: Thu, 26 Jun 2008 05:13:15 -0600
> From: gary@mlbassoc.com
> To: a_a_coskunoc@hotmail.com
> CC: andrew@lunn.ch; ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] SNMP authentication problem
> 
> Alperen Coskun wrote:
> > 
> > Thanks for your response,
> > 
> > I think, the main problem is my ECOS snmp agent doesn't read the lines from snmd.conf file. (or reads but doesn't use it)
> > Because, it should at least call "vacm_parse_security" or "vacm_parse_group" functions to register the user. but, it doesn't. 
> > Or, i'm still missing some points.
> > 
> > May be there are some patches i didn't use. Can it be the problem? 
> 
> Where did you expect it to "read" this file from?  This is an _embedded_ system, no?
> 
> > ----------------------------------------
> >> Date: Wed, 25 Jun 2008 14:41:20 +0200
> >> From: andrew@lunn.ch
> >> To: a_a_coskunoc@hotmail.com
> >> CC: ecos-discuss@ecos.sourceware.org
> >> Subject: Re: [ECOS] SNMP authentication problem
> >>
> >> On Wed, Jun 25, 2008 at 03:22:48PM +0300, Alperen Coskun wrote:
> >>>
> >>> I know its place, but I asked as the basic of SNMP, when I entered lines below to /etc/snmp/snmpd.conf file:
> >>>
> >>> createUser username MD5  "password"
> >>> rwuser username auth
> >>>
> >>> it should create a user "username" with password "password" and encrypt&cypt the coming-coming packets according to MD5.  But, neither it creates a user in usm nor it encrypts&cypts the packets. The thing I want to learn is why it doesn't do it. When I aim to get any parameter from agent, agent says there isn't any user recorded. Am i doing sth wrong? 
> >> I think i once did use the snmpd.conf file, but i don't remember if we
> >> put users in it. I did test create using dynamically using the tests
> >> shown on
> >>
> >> http://ecos.sourceware.org/docs-latest/ref/net-snmp-test-cases.html
> >>
> >> Do these tests work for you? I you might need to enable some of the
> >> features in tests/snmpping.c
> >>
> >>     Andrew
> 
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------

_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ECOS] SNMP authentication problem
  2008-06-26 10:08       ` Alperen Coskun
@ 2008-06-26 11:24         ` Gary Thomas
  2008-06-26 13:28           ` Alperen Coskun
  0 siblings, 1 reply; 13+ messages in thread
From: Gary Thomas @ 2008-06-26 11:24 UTC (permalink / raw)
  To: Alperen Coskun; +Cc: Andrew Lunn, ecos discuss

Alperen Coskun wrote:
> 
> Thanks for your response,
> 
> I think, the main problem is my ECOS snmp agent doesn't read the lines from snmd.conf file. (or reads but doesn't use it)
> Because, it should at least call "vacm_parse_security" or "vacm_parse_group" functions to register the user. but, it doesn't. 
> Or, i'm still missing some points.
> 
> May be there are some patches i didn't use. Can it be the problem? 

Where did you expect it to "read" this file from?  This is an _embedded_ system, no?

> ----------------------------------------
>> Date: Wed, 25 Jun 2008 14:41:20 +0200
>> From: andrew@lunn.ch
>> To: a_a_coskunoc@hotmail.com
>> CC: ecos-discuss@ecos.sourceware.org
>> Subject: Re: [ECOS] SNMP authentication problem
>>
>> On Wed, Jun 25, 2008 at 03:22:48PM +0300, Alperen Coskun wrote:
>>>
>>> I know its place, but I asked as the basic of SNMP, when I entered lines below to /etc/snmp/snmpd.conf file:
>>>
>>> createUser username MD5  "password"
>>> rwuser username auth
>>>
>>> it should create a user "username" with password "password" and encrypt&cypt the coming-coming packets according to MD5.  But, neither it creates a user in usm nor it encrypts&cypts the packets. The thing I want to learn is why it doesn't do it. When I aim to get any parameter from agent, agent says there isn't any user recorded. Am i doing sth wrong? 
>> I think i once did use the snmpd.conf file, but i don't remember if we
>> put users in it. I did test create using dynamically using the tests
>> shown on
>>
>> http://ecos.sourceware.org/docs-latest/ref/net-snmp-test-cases.html
>>
>> Do these tests work for you? I you might need to enable some of the
>> features in tests/snmpping.c
>>
>>     Andrew


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [ECOS] SNMP authentication problem
  2008-06-25 15:46     ` Andrew Lunn
@ 2008-06-26 10:08       ` Alperen Coskun
  2008-06-26 11:24         ` Gary Thomas
  0 siblings, 1 reply; 13+ messages in thread
From: Alperen Coskun @ 2008-06-26 10:08 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos discuss



Thanks for your response,

I think, the main problem is my ECOS snmp agent doesn't read the lines from snmd.conf file. (or reads but doesn't use it)
Because, it should at least call "vacm_parse_security" or "vacm_parse_group" functions to register the user. but, it doesn't. 
Or, i'm still missing some points.

May be there are some patches i didn't use. Can it be the problem? 


----------------------------------------
> Date: Wed, 25 Jun 2008 14:41:20 +0200
> From: andrew@lunn.ch
> To: a_a_coskunoc@hotmail.com
> CC: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] SNMP authentication problem
> 
> On Wed, Jun 25, 2008 at 03:22:48PM +0300, Alperen Coskun wrote:
> > 
> > 
> > I know its place, but I asked as the basic of SNMP, when I entered lines below to /etc/snmp/snmpd.conf file:
> > 
> > createUser username MD5  "password"
> > rwuser username auth
> > 
> > it should create a user "username" with password "password" and encrypt&cypt the coming-coming packets according to MD5.  But, neither it creates a user in usm nor it encrypts&cypts the packets. The thing I want to learn is why it doesn't do it. When I aim to get any parameter from agent, agent says there isn't any user recorded. Am i doing sth wrong? 
> 
> I think i once did use the snmpd.conf file, but i don't remember if we
> put users in it. I did test create using dynamically using the tests
> shown on
> 
> http://ecos.sourceware.org/docs-latest/ref/net-snmp-test-cases.html
> 
> Do these tests work for you? I you might need to enable some of the
> features in tests/snmpping.c
> 
>     Andrew

_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ECOS] SNMP authentication problem
  2008-06-25 12:42   ` Alperen Coskun
@ 2008-06-25 15:46     ` Andrew Lunn
  2008-06-26 10:08       ` Alperen Coskun
  0 siblings, 1 reply; 13+ messages in thread
From: Andrew Lunn @ 2008-06-25 15:46 UTC (permalink / raw)
  To: Alperen Coskun; +Cc: ecos discuss

On Wed, Jun 25, 2008 at 03:22:48PM +0300, Alperen Coskun wrote:
> 
> 
> I know its place, but I asked as the basic of SNMP, when I entered lines below to /etc/snmp/snmpd.conf file:
> 
> createUser username MD5  "password"
> rwuser username auth
> 
> it should create a user "username" with password "password" and encrypt&cypt the coming-coming packets according to MD5.  But, neither it creates a user in usm nor it encrypts&cypts the packets. The thing I want to learn is why it doesn't do it. When I aim to get any parameter from agent, agent says there isn't any user recorded. Am i doing sth wrong? 

I think i once did use the snmpd.conf file, but i don't remember if we
put users in it. I did test create using dynamically using the tests
shown on

http://ecos.sourceware.org/docs-latest/ref/net-snmp-test-cases.html

Do these tests work for you? I you might need to enable some of the
features in tests/snmpping.c

    Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [ECOS] SNMP authentication problem
  2008-06-25 12:19 ` Andrew Lunn
@ 2008-06-25 12:42   ` Alperen Coskun
  2008-06-25 15:46     ` Andrew Lunn
  0 siblings, 1 reply; 13+ messages in thread
From: Alperen Coskun @ 2008-06-25 12:42 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos discuss



I know its place, but I asked as the basic of SNMP, when I entered lines below to /etc/snmp/snmpd.conf file:

createUser username MD5  "password"
rwuser username auth

it should create a user "username" with password "password" and encrypt&cypt the coming-coming packets according to MD5.  But, neither it creates a user in usm nor it encrypts&cypts the packets. The thing I want to learn is why it doesn't do it. When I aim to get any parameter from agent, agent says there isn't any user recorded. Am i doing sth wrong? 
Thanks,


----------------------------------------
> Date: Wed, 25 Jun 2008 14:09:56 +0200
> From: andrew@lunn.ch
> To: a_a_coskunoc@hotmail.com
> CC: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] SNMP authentication problem
> 
> On Wed, Jun 25, 2008 at 02:10:21PM +0300, Alperen Coskun wrote:
> > 
> > 
> > Hi all,
> > I'm using SNMP V3 configured in ECOS. I have  a problem like that;
> > User page on ECOS web site says, we can configure agent authentication for V3 in snmpd.conf file. I'm writing following lines to that
> > file as below:
> > 
> > createUser username MD5 "password" DES
> > rwuser username auth
> > 
> > I aim to use authentication with no privacy. Also MD5 for authentication. But, ECOS agent does not create any user like that,
> > also I see that it doesn't use MD5. (I seached source c files and found nothing)
> 
> md5 code is in net/snmp/lib/current/src/md5.c
> 
> Did you not find that?
> 
>     Andrew

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ECOS] SNMP authentication problem
  2008-06-25 12:05 [ECOS] SNMP authentication problem Alperen Coskun
@ 2008-06-25 12:19 ` Andrew Lunn
  2008-06-25 12:42   ` Alperen Coskun
  0 siblings, 1 reply; 13+ messages in thread
From: Andrew Lunn @ 2008-06-25 12:19 UTC (permalink / raw)
  To: Alperen Coskun; +Cc: ecos discuss

On Wed, Jun 25, 2008 at 02:10:21PM +0300, Alperen Coskun wrote:
> 
> 
> Hi all,
> I'm using SNMP V3 configured in ECOS. I have  a problem like that;
> User page on ECOS web site says, we can configure agent authentication for V3 in snmpd.conf file. I'm writing following lines to that
> file as below:
> 
> createUser username MD5 "password" DES
> rwuser username auth
> 
> I aim to use authentication with no privacy. Also MD5 for authentication. But, ECOS agent does not create any user like that,
> also I see that it doesn't use MD5. (I seached source c files and found nothing)

md5 code is in net/snmp/lib/current/src/md5.c

Did you not find that?

    Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ECOS] SNMP authentication problem
@ 2008-06-25 12:05 Alperen Coskun
  2008-06-25 12:19 ` Andrew Lunn
  0 siblings, 1 reply; 13+ messages in thread
From: Alperen Coskun @ 2008-06-25 12:05 UTC (permalink / raw)
  To: ecos discuss



Hi all,
I'm using SNMP V3 configured in ECOS. I have  a problem like that;
User page on ECOS web site says, we can configure agent authentication for V3 in snmpd.conf file. I'm writing following lines to that
file as below:

createUser username MD5 "password" DES
rwuser username auth

I aim to use authentication with no privacy. Also MD5 for authentication. But, ECOS agent does not create any user like that,
also I see that it doesn't use MD5. (I seached source c files and found nothing)
What am I doing wrong?  I expect after writing lines above in snmd.conf file will create an USM user and with setting SNMP manager
according to that user data,  I can get and set parameters. Could anyone help me?


_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-07-13 12:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-26 16:27 [ECOS] SNMP authentication problem Georg Brutscheid
2008-06-27 15:11 ` Alperen Coskun
2008-07-03 12:55   ` [ECOS] Different flash Laurie Gellatly
2008-07-03 13:11     ` Andrew Lunn
2008-07-03 21:39       ` Laurie Gellatly
2008-07-13 12:44       ` Laurie Gellatly
  -- strict thread matches above, loose matches on Subject: below --
2008-06-25 12:05 [ECOS] SNMP authentication problem Alperen Coskun
2008-06-25 12:19 ` Andrew Lunn
2008-06-25 12:42   ` Alperen Coskun
2008-06-25 15:46     ` Andrew Lunn
2008-06-26 10:08       ` Alperen Coskun
2008-06-26 11:24         ` Gary Thomas
2008-06-26 13:28           ` Alperen Coskun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).