Re: Size of MIB variable using mib2c
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 11/03/2008, Raghavendra Prasad <[email protected]> wrote: > I am talking about writing source code generation configuration > script files like mib2c.scalar.conf- I am writing a script file to > generate source-code-framework, I need to find size of the string from > MIB file. OK - got you. > In the above example the MIB variable has a size of upto 16 character. > I should be able to parse this in the script file - currently I am not > able to do that. Hmmm... I've had a quick look at the mib2c script. And it does indeed look as if the size may not be accessible. You *might* be able to do something with the $var.syntax or $var.ranges tokens - but I haven't investigated these at all. There's a full list of the supported tokens embedded within the mib2c script itself. Search for "AUTO-EXTRACT", and then see the rest of that comment block. Do let us know how you get on. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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