Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is the max length that i can have in MIB of syntax DisplayString (SNMPv2)

openConnectionsList OBJECT-TYPE
    SYNTAX      DisplayString
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
            "The textual"
    ::= {  MONITOR-MIB 2 }
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

SNMPv2?

255

http://ipmsupport.solarwinds.com/mibs/SNMPV2-TC/item.aspx?tid=DisplayString

share|improve this answer
    
I create my own mib module and i have no problem to define it there as static char connections_list_value[1024]; and i didnt have problem to call get and set with 1024 chars –  user1495181 Sep 13 '12 at 16:18
    
@user1495181, the problem of your own overriding is that except your own objects, all other objects are still using 255 as maximum, where you introduce unnecessary incompatibility. If you don't like the limit, create your own type of DisplayString, such as MyLongDisplayString. Never override an existing type especially when that type is widely used elsewhere. –  Lex Li Dec 17 '12 at 9:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.