Class JsmiMibParser

    • Constructor Detail

      • JsmiMibParser

        public JsmiMibParser()
        Instantiates a new JLIBSMI MIB parser.
    • Method Detail

      • setMibDirectory

        public void setMibDirectory​(File mibDirectory)
        Description copied from interface: MibParser
        Sets the MIB directory.
        Specified by:
        setMibDirectory in interface MibParser
        Parameters:
        mibDirectory - the MIB directory
      • parseMib

        public boolean parseMib​(File mibFile)
        Description copied from interface: MibParser
        Parses the MIB.
        Specified by:
        parseMib in interface MibParser
        Parameters:
        mibFile - the MIB file
        Returns:
        true, if successful
      • getFormattedErrors

        public String getFormattedErrors()
        Description copied from interface: MibParser
        Gets the formatted errors.
        Specified by:
        getFormattedErrors in interface MibParser
        Returns:
        the formatted errors
      • getMibName

        public String getMibName()
        Description copied from interface: MibParser
        Gets the MIB name.
        Specified by:
        getMibName in interface MibParser
        Returns:
        the MIB name.
      • getEvents

        public Events getEvents​(String ueibase)
        Description copied from interface: MibParser
        Gets the event list.
        Specified by:
        getEvents in interface MibParser
        Parameters:
        ueibase - the UEI base
        Returns:
        the event list
      • getGroup

        protected Group getGroup​(DatacollectionGroup data,
                                 String groupName,
                                 String resourceType)
        Gets the group.
        Parameters:
        data - the data collection group object
        groupName - the group name
        resourceType - the resource type
        Returns:
        the group
      • convertMibToEvents

        protected Events convertMibToEvents​(org.jsmiparser.smi.SmiModule module,
                                            String ueibase)
        Convert MIB to events.
        Parameters:
        module - the module object
        ueibase - the UEI base
        Returns:
        the events
      • getTrapEvent

        protected Event getTrapEvent​(org.jsmiparser.smi.Notification trap,
                                     String ueibase)
        Gets the trap event.
        Parameters:
        trap - the trap object
        ueibase - the UEI base
        Returns:
        the trap event
      • getTrapEventUEI

        protected String getTrapEventUEI​(org.jsmiparser.smi.Notification trap,
                                         String ueibase)
        Gets the trap event UEI.
        Parameters:
        trap - the trap object
        ueibase - the UEI base
        Returns:
        the trap event UEI
      • getTrapEventLabel

        protected String getTrapEventLabel​(org.jsmiparser.smi.Notification trap)
        Gets the trap event label.
        Parameters:
        trap - the trap object
        Returns:
        the trap event label
      • getTrapEventLogmsg

        protected Logmsg getTrapEventLogmsg​(org.jsmiparser.smi.Notification trap)
        Gets the trap event LogMsg.
        Parameters:
        trap - the trap object
        Returns:
        the trap event LogMsg
      • getTrapEventDescr

        protected String getTrapEventDescr​(org.jsmiparser.smi.Notification trap)
        Gets the trap event description.
        Parameters:
        trap - the trap object
        Returns:
        the trap event description
      • getTrapVarbindsDecode

        protected List<Varbindsdecode> getTrapVarbindsDecode​(org.jsmiparser.smi.Notification trap)
        Gets the trap varbinds decode.
        Parameters:
        trap - the trap object
        Returns:
        the trap varbinds decode