I have some questions for using agent++.(SNMP Tool) - SNMP

This is a discussion on I have some questions for using agent++.(SNMP Tool) - SNMP ; Hi guys, I have some questions for using agent++. I'm using agent++(agentgen_sta, v1.5) to compile mibs. Currently I found some errors & warning when compiling SNMPV2- SMI.MIB. I tried \agentgen.sta>agentgen.bat ../mibrepository add SNMPv2-SMI.mib The errors description are stated below. ________________________________________ ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: I have some questions for using agent++.(SNMP Tool)

  1. I have some questions for using agent++.(SNMP Tool)


    Hi guys,
    I have some questions for using agent++.
    I'm using agent++(agentgen_sta, v1.5) to compile mibs.
    Currently I found some errors & warning when compiling SNMPV2-
    SMI.MIB.

    I tried
    \agentgen.sta>agentgen.bat ../mibrepository add SNMPv2-SMI.mib

    The errors description are stated below.
    ________________________________________
    Loading MIB file [SNMPv2-SMI.mib]...Encountered: "MODULE-IDENTITY" at
    line 59, column 1:
    Was expecting one of:
    "END" ...
    ...
    ...

    at
    com.agentpp.smiparser.SMIParser.generateParseExcep tion(SMIParser.java:
    4952)
    at com.agentpp.smiparser.SMIParser._$68770(SMIParser. java:
    4830)
    at com.agentpp.smiparser.SMIParser.Def(SMIParser.java :153)
    at com.agentpp.smiparser.SMIParser.Input(SMIParser.ja va:56)
    at
    com.agentpp.repository.DefaultRepositoryManager.ad dModules(DefaultRepositoryManager.java:
    253)
    at
    com.agentpp.agentgen.AgentGenConsole.(AgentGenConsole.java:71)
    at
    com.agentpp.agentgen.AgentGenConsole.main(AgentGen Console.java:297)
    failed.
    Reason: Syntax error: Encountered: "MODULE-IDENTITY" at line 59,
    column 1:
    Was expecting one of:
    "END" ...
    ...
    ...
    ________________________________________
    Error point of Mib file

    -- definitions for information modules

    MODULE-IDENTITY MACRO ::=
    BEGIN
    TYPE NOTATION ::=
    "LAST-UPDATED" value(Update ExtUTCTime)
    "ORGANIZATION" Text
    "CONTACT-INFO" Text
    "DESCRIPTION" Text
    RevisionPart

    VALUE NOTATION ::=
    value(VALUE OBJECT IDENTIFIER)

    RevisionPart ::=
    Revisions
    | empty
    Revisions ::=
    Revision
    | Revisions Revision
    Revision ::=
    "REVISION" value(Update ExtUTCTime)
    "DESCRIPTION" Text
    -- a character string as defined in section 3.1.1
    Text ::= value(IA5String)
    END
    ________________________________________

    My Questions are

    1. Why occurred these errors?
    2. How to compile MIB file that imported other MIB(ex. SNMPv2-SMI)
    with agentgen_sta.


    Regards,
    Thanks.

  2. Re: I have some questions for using agent++.(SNMP Tool)

    Hi,

    hw.kang.7@gmail.com wrote:
    > My Questions are
    >
    > 1. Why occurred these errors?


    Because you tried to compile a file that
    does not contain a SMI MIB specification.
    Instead it contained ASN.1 (a specific
    version).

    > 2. How to compile MIB file that imported other MIB(ex. SNMPv2-SMI)
    > with agentgen_sta.


    Compile a SMI MIB specification and all is
    fine (see also the AgenPro FAQ) and
    http://www.mibdesigner.com/html/mibdesign.html

    Regards,
    Frank Fock

+ Reply to Thread