While trying to compile Mcafee NDLP mibs we are getting the below error.
Could not parse the file MCAFEE-DLP-PREVENT-MIB. The error occurred at the line no: 474 ,column: 17.
The identifier should not start or end with number or special character.
When we checked with vendor they are saying the Mibs are correct and as per standards..
Release : 21.2
Spectrum is very forgiving towards non compliant mibs but the McAfee mibs are not compliant at all. This was verified through various 3rd party mib validation tools which produced many "severe" errors. Usually we are able to manually fix the errors and allow it to compile in Spectrum but there too many errors here that we are unable to fix.
You will need to speak with McAfee and get to them fix their non compliant mibs. You can send them the output from the 3rd party mib validators. I tested it with various and and cannot resolve the errors and cannot upload to Spectrum.
https://www.muonics.com/Tools/smicheck.php
https://www.simpleweb.org/ietf/mibs/validate/
it produced a lot of severity 1 level error which would need to be resolved before this mib is usable by any network management software like Spectrum.
0 | [1] failed to locate MIB module `MCAFEE-SMI' | |
8 | 1 | (null): No such file or directory |
18 | 1 | unknown object identifier label `mcafeeGATEWAY' |
54 | 1 | syntax error, unexpected COLON_COLON_EQUAL, expecting OBJECT |
471 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
478 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
485 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
492 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
499 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
506 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
513 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
534 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
541 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
548 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
555 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
562 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
569 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
576 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
583 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
590 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
597 | 1 | syntax error, unexpected LOWERCASE_IDENTIFIER |
688 | 1 | syntax error, unexpected UPPERCASE_IDENTIFIER, expecting LOWERCASE_IDENTIFIER |
744 | 1 | syntax error, unexpected MAX_ACCESS |
752 | 1 | syntax error, unexpected UPPERCASE_IDENTIFIER, expecting LOWERCASE_IDENTIFIER |
905 | 1 | syntax error, unexpected MAX_ACCESS |
934 | 1 | unknown object identifier label `eventID' |
935 | 1 | unknown object identifier label `eventReason' |
looking at the syntax error, unexpected LOWERCASE_IDENTIFIER e.g. line 471
it shows SYNTAX stateValue
So I changed all instances of this to
SYNTAX STATEVALUE
and retried. This just moved past this error to another that i cannot resolve