Snmp asn.01 ber padding-cr00016523 – Allied Telesis AT-WA1104G-10 User Manual

Page 99

Advertising
background image

SNMP ASN.01 BER Padding—CR00016523

99

Version 291-10
C613-10488-00 REV G

SNMP ASN.01 BER Padding—CR00016523

This enhancement enables you to specify whether SNMP adds 0x00 padding when the most significant 9 bits of an object’s value are all 1, or whether the
encoding follows the ASN.01 BER rule, which cuts off the most significant byte of 0xff. This setting has an impact on all integer type MIB objects, including 32
bit and 64 bit counter objects.

To add the padding, use the command:

set snmp asnberpadding={on|yes|true}

To use the ASN.01 BER rule, which is the default, use the command:

set snmp asnberpadding={off|no|false}

The following table lists examples.

To see whether or not padding is added, use the command:

show snmp

and check the new “ASN.01 BER Padding” field.

Bits

Value (decimal)

Value (hex)

asnberpadding setting

Encoding

counter32

4289592837

0xFFADFE05

on

41 05 00 ff ad fe 05

off

41 03 ad fe 05

counter64

18410715280977201498

0xFF800000ff80895A

on

46 09 00 ff 80 00 00 ff 80 89 5a

off

46 07 80 00 00 ff 80 89 5a

Advertising