Oups, I think I posted to the wrong list (net-snmp-coders instead of users).
> [CCing the -coders list again; please keep conversations on the list]
>
> >>>>> On Fri, 21 Aug 2009 11:45:38 -0400, Daniel Savard <
> daniel.sav...@gmail.com> said:
>
> DS> I did preliminary work and found that the old SMIv1 traps definitions
> are
> DS> ignored by the @foreach $n notifications@ loop. Only those specified
> as per
> DS> the SMIv2 standard are parsed. Anything I can do except redefining them
> to
> DS> NOTIFICATION-TYPE? These files are coming from a third-party and I
> would
> DS> like to avoid modifications to them for easier maintenance.
>
> Ahh.... Bummer.
>
> The easiest and fastest solution is to probably convert it
> automatically. Install libsmi, and use their "smidump" utility to
> auto-convert it from SMIv1 to SMIv2.
>
> The net-snmp library code probably needs to be hacked to make it work
> with SMIv1 notifications. But SMIv1 MIBs are fairly rare these days
> (finally) so the motivation to do it is rather low.
>
This is working fine. Now in the mib2c utility, how can I escape the $ sign
to have output as litteral? I did try the $$, single-quoting and \$
sequences without success.
For example, I want to output a line like:
ATTR(=,$ENTERPRISE),VALUE(=,"$var");
where $var is actually replaced by the value of the variable and $ENTERPRISE
must be output as a litteral not trying to interpret it as a variable.
--
-----------------
Daniel Savard
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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