Ah! Great.

       SYNTAX  OCTET STRING (SIZE(50))

That did the trick!

Thanks!



Dave Shield wrote:
> 2009/6/12 Jay Atkinson <[email protected]>:
>
>   
>> C:\Projects\Clients\ADTRAN\workspace\TA5K-Conf\src>snmpset -c 'private' -d 
>> -v2c
>> X.X.X.X adGenMenPortRowStatus.69.86.67.50.48.50.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
>> .0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.23933901 i 5
>>     
>
>
>   
>> I'm trying to connect a port (23933901) to EVC202 (69.86.67.50.48.50
>> in ASCII)
>>     
>
> If the string index value is "EVC202", then this would be represented as
>
>     6.69.86.67.50.48.50
>
> where '6' is the length of the string.
> So the full OID would be
>
>     adGenMenPortRowStatus.6.69.86.67.50.48.50.23933901
>
>
>
>
>
>   
>>      adGenEVCNameFixedLen OBJECT-TYPE
>>         SYNTAX  OCTET STRING
>>         MAX-ACCESS not-accessible
>>         STATUS current
>>         DESCRIPTION
>>           "The name of the EVC to which the MEN Port should be added.
>>            This string matches adGenEvcName from adGenEVCTable, but it is
>>            padded at the end with 0x00 so that the table index has a fixed
>>            length of 50 characters."
>>         ::= { adGenEVCMenPortEntry 1}
>>     
>
> Notwithstanding the text of the description, this MIB object is *not* defined
> as having a fixed length.   So the Net-SNMP tools don't treat it as such.
>
> You could try amending the MIB definition to read
>
>          SYNTAX  OCTET STRING(50)
>
> which should then be handled as expected.   (Though I haven't tested this)
>
> Dave
>   

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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

Reply via email to