Example #1
0
from com.afdxsuite.config.parsers.icdparser import parseICD
from com.afdxsuite.application.properties import get
from com.afdxsuite.logger import general_logger
from com.afdxsuite.config.parsers import ICD_INPUT_VL
from com.afdxsuite.core.network.scapy import load_mib
from com.afdxsuite.application import PARENT_PATH

general_logger.info("Loading the ICD file")
parseICD(get("ICD_FILE"))
load_mib(PARENT_PATH + "conf/" + get("ES_MIB"))
print "loaded mib file", PARENT_PATH + "conf/" + get("ES_MIB")
Example #2
0
from com.afdxsuite.application.properties import get
from com.afdxsuite.core.network.scapy import load_mib, conf

oid_value_mapping = {}

load_mib(get("AFDXES_MIB"))

for oidname in conf.mib.keys():
    val = conf.mib[oidname]

    val = str(val).replace("enterprises", "1.3.6.1.4.1")

    oid_value_mapping[val] = 0

print 'Loaded AFDX end system MIB objects'


SNMP_IP_MIB_CODE = "afdxProtocolInError"
SNMP_FRAG_MIB_CODE = "iPreassemblyInError"
SNMP_UDP_MIB_CODE  = "afdxUDPCoherencyError"