SNMP ASN.01 BER | 99 |
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={onyestrue}
To use the ASN.01 BER rule, which is the default, use the command:
set snmp asnberpadding={offnofalse}
The following table lists examples.
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 |
|
|
|
|
|
To see whether or not padding is added, use the command:
show snmp
and check the new “ASN.01 BER Padding” field.
Version