string, security name or the two pass phrases).
This is to avoid them being visible in the output of "ps" or in core dumps.

Untested, but you might want to try setting the first parameter
to be "snmpd-proxy".   This will suppress the clearing of these
sensitive parameters.
   (We could perhaps do with a better way to handle this!)

char com[] = "public";
char *argv[] = {"snmpd-proxy", "-v", "1", "-c", com, "172.22.92.10", "", "6", 
"17", "", "", "MY-TEST-GRP::myLocation", "s", "HERE", "MY-TEST-GRP::myId", "i", 
"1000"}; // 17 args

After the call to snmp_parse_args, I observed that the stack frame gets 
corrupted.
I tried passing "snmpd-proxy" as the first parameter. But that didn't help 
either.

As a workaround, I am saving the argv pointer and using that later.
But now I am not able to send an enterprise specific trap with arguments as 
shown in argv above.
It fails to resolve the MY-TEST-GRP::myLocation and I get the following error:
        MY-TEST-GRP::myLocation: Unknown Object Identifier 
(MY-TEST-GRP::myLocation)

I even tried adding the MIB file to snmp.conf.
Am I missing out something in the request or am I not giving it correctly?

Regards,
Vinod


http://www.mindtree.com/email/disclaimer.html

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to