Ked testujem mibku cez smilint
$ smilint -l3 AN-Dcz_SDSMICRO_MIB.txt.orig
AN-Dcz_SDSMICRO_MIB.txt.orig:31: revision for last update is missing
AN-Dcz_SDSMICRO_MIB.txt.orig:815: TRAP-TYPE macro is not allowed in SMIv2
AN-Dcz_SDSMICRO_MIB.txt.orig:815: macro `TRAP-TYPE' has not been imported from module `RFC-1215'
AN-Dcz_SDSMICRO_MIB.txt.orig:816: syntax error, unexpected STATUS, expecting ENTERPRISE
AN-Dcz_SDSMICRO_MIB.txt.orig:819: syntax error, unexpected DESCRIPTION
AN-Dcz_SDSMICRO_MIB.txt.orig:826: syntax error, unexpected DESCRIPTION
...
AN-Dcz_SDSMICRO_MIB.txt.orig:1289: syntax error, unexpected DESCRIPTION
AN-Dcz_SDSMICRO_MIB.txt.orig:1296: syntax error, unexpected DESCRIPTION
AN-Dcz_SDSMICRO_MIB.txt.orig:1303: syntax error, unexpected DESCRIPTION
$
Tak pri urovni 3 (man smilint)
3 SMI/SPPI error which is likely tolerated by many implementations. Examples are misplaced SMIv2 MODULE-IDENTITY invocations or SMIv2 textual conventions derived from other textual conventions.
vidim v mibke drobne syntaticke chyby. Pokusal som sa mibku opravit viacej krat a nakoniec som ju prepisal z TRAP-TYPE na definicie NOTIFICATION-TYPE a dostal som sa na 1 warning. Potom mi uz isla naimportovat do komercneho monitorovacieho sw.
$ smilint -l3 AN-Dcz_SDSMICRO_MIB.txt
AN-Dcz_SDSMICRO_MIB.txt:29: revision for last update is missing
$
Zaciatok upravenej mibky vyzera takto:
AN-Dcz-SDS-MIB DEFINITIONS ::= BEGIN
IMPORTS
IpAddress
FROM RFC1155-SMI
enterprises,
MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
Counter32, Integer32, Gauge32
FROM SNMPv2-SMI;
Neviem ako vam zaslat danu mibku, pozeram ze v tomto fore nie je zakazany upload suborov.
Chovanie programu v SDS-C mi je jasne. To funguje ako ma.
Softwer v ktorom neviem dekodovat trapy je "CA Infrastructure Manager". Dany sw danu mibku pred importom najprv kompiluje a ked je kompilacia bez problemov, umozni import mibky do aplikacie.
Neskusali ste nahodou cez wireshark ci je mozne dane trapy na zaklade vasej mibky precitat ?