Re: Facing problems while sending traps using snmp api's

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 12 November 2010 11:16, Sampige, Sahana Prabhakar (STSD)
<[email protected]> wrote:
>    session.securityEngineIDLen = strlen("0x80001f8880654ceb30a484dc4c");
>    session.securityEngineID = (u_char*)malloc(session.securityEngineIDLen);
>    memcpy(session.securityEngineID,"0x80001f8880654ceb30a484dc4c",session.securityEngineIDLen);

The securityEngineID should be a 13-octet *binary* value, not an ascii string.
   Try using snmp_hex_to_binary() to convert this string into the
appropriate value.
(See 'snmplib/snmp_parse_args.c' for an example)


Dave

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
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.