Re: SNMPv3 support in SNMP trap daemon software

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 22 July 2010 07:49, Gaurav Chaturvedi <[email protected]> wrote:
> If I send engine-id using command  [snmptrap]:

> This is stored in u_char * engine_id as engine_id[0] = 0x01
>                                                         engine_id[1] = 0x02
>                                                         engine_id[2] = 0x03
>                                                         engine_id[3] = 0x04
>                                                         engine_id[4] = 0x05
>
> and the length is 5.

This is correct.
  [Well - strictly speaking it's probably not a valid engineID value,
   according to the description in the SnmpEngineID TC.
   But that's not important right now]



> Whereas, the engine-id we store in user database is session.engineId =
> "0x0102030405" and length is 12.

Are you talking about the value in the session structure?
Or the value in the user database?

In any case, you should be assigning a string of binary values,
not a printable string.   Try configuring the engineID within your
application using the code I posted yesterday.

Dave
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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.