> Thanks for the info. I was afraid of that.
>
> Is there an easy place to hack this in?
> All I really need to do call my app once during the commit phase.
Well the simplest approach would be to edit
agent/mibgroup/ucd-snmp/pass.c
and adjust the routine setPass() to read
- if (action != ACTION)
+ if (action != COMMIT)
return SNMP_ERR_NOERROR;
That would invoke your application during the commit phase instead.
Otherwise you could tweak it to run on both passes,
and adjust the statement
snprintf(passthru->command, sizeof(passthru->command),
"%s -s %s ", passthru->name, buf);
to use a different flag for the commit phase.
Something like (untested):
snprintf(passthru->command, sizeof(passthru->command),
"%s -%s %s ", passthru->name,
(action == ACTION ? 's' : 'c' ),
buf);
But of course this would be specific to your local setup, and wouldn't
work with a "standard" distribution.
Dave
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders