How should I deal with these SNMP mib file parsing errors? -


i trying use mib files supplied cisco make sense info obtainend polling switch via snmp. it's sg300-52p, files can found here.

after placed files in 1 of netsnmp's default mib directories, there multiple errors when tried decode 1 of description numeric value verify mib files work. thought resolving issues, numerous, decided try , simplest of these files work netsnmp. placed snmpv2-smi file in 1 of netsnmp's default mib directories (because came in errors , short file no dependencies; i've appended content easy reference) , ran following command:

snmptranslate -m snmpv2-smi zerodotzero 

however, returns following 2 erros:

expected last-updated (smi): @ line 35 in /home/buildmanager/.snmp/mibs/snmpv2-smi.my zerodotzero: unknown object identifier (sub-id not found: (top) -> zerodotzero) 

after googling , guessing, went ahead , checked file online mib file validator here, objected that

line 34: 2   `smi' should start lower case letter 1   syntax error, unexpected module_identity, expecting object 

i have no idea make of these messages, googling them revealed nothing make sense of. mean file has errors? it's file officially supplied cisco, , it's basic - can't imagine case. i've made sure there no interfering snmpv2-smi anywhere else on system, i'm sure file netsnmp using. suspect there here did not understand snmp , these mib files in general, please point me @ right direction or tell me , how answers. thanks!

contents of snmpv2-smi:

-- file: snmpv2-smi.my -- changes: --      converted smic format. -- dperkins@scruznet.com  snmpv2-smi definitions ::= begin  org             object identifier ::= { iso 3 } dod             object identifier ::= { org 6 } internet        object identifier ::= { dod 1 } directory       object identifier ::= { internet 1 } mgmt            object identifier ::= { internet 2 } mib-2           object identifier ::= { mgmt 1 } transmission    object identifier ::= { mib-2 10 } experimental    object identifier ::= { internet 3 } private         object identifier ::= { internet 4 } enterprises     object identifier ::= { private 1 } security        object identifier ::= { internet 5 } snmpv2          object identifier ::= { internet 6 }  -- transport domains snmpdomains     object identifier ::= { snmpv2 1 }  -- transport proxies snmpproxys      object identifier ::= { snmpv2 2 }  -- module identities snmpmodules     object identifier ::= { snmpv2 3 }    -- macros  smi module-identity smi object-identity smi object-type smi notification-type   -- types  smi counter32 smi counter64 smi gauge32 smi integer32 smi ipaddress smi opaque smi timeticks smi bits smi unsigned32   zerodotzero    object-identity     status     current     description             "a value used null identifiers."     ::= { 0 0 }  end 

that snmpv2-smi file quoted has been modified original/standard use special syntax specific smic compiler (those "smi" keywords "smi counter32"), per comments @ beginning:

--      converted smic format. 

this broken syntax (no longer valid smiv1 or smiv2) according other parser/compiler, hence errors. should add mibs net-snmp need not provided (as snmpv2-smi should be), , should use standard syntax, not compiler-specific extensions (unless implemented in comments).


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -