perl - netsnmp - How to get the size-constraints of a column in net-snmp? -


suppose have following code in mib2c.conf:

@foreach $t table@      starting table $t     @foreach $c column@        echo $t has column $c has syntax of $c.syntax        ...     @end@ @end@ eof 

how can size-related constraints column $c mib file (min/max value integers or list of accepted values enums). feed these values netsnmp_chech_vb_xxxx in order validate snmp set requests, not sure how them.

from mib2c code you'll see comment below:

 #   @foreach $range_start, $range_end range node@ #     repeat iterate on code until @end@ setting $range_start , $range_end #     legal accepted range set given mib node. 

you'll note need iterate on ranges. integers , sizes don't have single range of time. ie, it's legal have integer must 2-4 or 6-8 blank in middle. above code let loop through every range set.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -