Smarts | SNMP-EPARSER-Mangled or incorrect packet; parsing aborted and data discarded; in file "/work/redcurrent/DMT-9.4.2.0/10/smarts/snmp/lib/SNMP_Parser.c" at line 1339
search cancel

Smarts | SNMP-EPARSER-Mangled or incorrect packet; parsing aborted and data discarded; in file "/work/redcurrent/DMT-9.4.2.0/10/smarts/snmp/lib/SNMP_Parser.c" at line 1339

book

Article ID: 331963

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


Some traps are failing with 

SNMP-EPARSER-Mangled or incorrect packet; parsing aborted and data discarded; in file "/work/redcurrent/DMT-9.4.2.0/10/smarts/snmp/lib/SNMP_Parser.c" at line 1339

Environment

VMware Smart Assurance - SMARTS

Cause

These errors come when the trap does not follow RFC. In this instance the mangled trap did not start with sysupTIme which is mandatory,
 
Example of mangled trap:

: VarBindList ->

35: VarBind -> SEQUENCE (0x30), 23 bytes:
37: OBJ-ID (0x06), 10 bytes == ".1.3.6.1.6.3.1.1.4.1.0" *
49: OBJ-ID (0x06), 9 bytes == ".1.3.6.1.4.1.1899.0.5"

for the ones with no error you can see

29: VarBindList ->
SEQUENCE (0x30), 238 bytes: 
32: VarBind -> SEQUENCE (0x30), 16 bytes: 
34: OBJ-ID (0x06), 8 bytes == ".1.3.6.1.2.1.1.3.0" 
44: TIME-TICKS (0x43), 4 bytes == 440575600 
 

Resolution

Other products may accept traps that are not conforming to RFC but for Smarts in needs to conform to RFC