Re: Size of MIB variable using mib2c

This is a discussion on Re: Size of MIB variable using mib2c within the SNMP Users forums, part of the Networking and Network Related category; > What do you mean by that? > The size of an arbitrary string value that your MIB module should &...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-11-2008
Raghavendra Prasad
 
Posts: n/a
Default Re: Size of MIB variable using mib2c

> What do you mean by that?
> The size of an arbitrary string value that your MIB module should
> report back? Or the size of a new string value that is being SET?
> Or what?


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. For example

controllerDialUpDialOutPhoneNumber OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..16))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Dial Up Networking
Dial-Out Phone Number (for traps)"
::= { controller 6 }

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.

Other wise I have to manually edit the script file to allocate memory
of 16 characters for the above MIB variable.

With regards,

Raghavendra

-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0