compile error with disman-script-mib - SNMP

This is a discussion on compile error with disman-script-mib - SNMP ; Hi all i tried to compile the DISMAN-SCRIPT-MIB into Net-Snmp. The configuration summary looks like this: --------------------------------------------------------- Net-SNMP configuration summary: --------------------------------------------------------- Net-SNMP Version: 5.0.9 Building for: linux Network transport support: Callback Unix TCP UDP SNMPv3 Security Modules: usm Agent MIB ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: compile error with disman-script-mib

  1. compile error with disman-script-mib

    Hi all

    i tried to compile the DISMAN-SCRIPT-MIB into Net-Snmp. The
    configuration summary looks like this:

    ---------------------------------------------------------
    Net-SNMP configuration summary:
    ---------------------------------------------------------

    Net-SNMP Version: 5.0.9
    Building for: linux
    Network transport support: Callback Unix TCP UDP
    SNMPv3 Security Modules: usm
    Agent MIB code: mibII ucd_snmp snmpv3mibs notification
    target agent_mibs agentx agent_mibs utilities host disman/event-mib
    DISMAN-SCRIPT-MIB
    Authentication support: MD5
    Encryption support:

    ---------------------------------------------------------

    But when i execute the make command the following error appears:
    gcc -I../include -I../include -I.. -I./.. -I./../snmplib -I. -I.
    -I./mibgroup -Imibgroup -g -O2 -Dlinux -c snmp_vars.c -fPIC
    -DPIC -o .libs/snmp_vars.lo
    In file included from mibgroup/mib_module_includes.h:13,
    from snmp_vars.c:123:
    mibgroup/DISMAN-SCRIPT-MIB.h:1: error: syntax error before '-' token
    In file included from mibgroup/mib_module_includes.h:13,
    from snmp_vars.c:123:
    mibgroup/DISMAN-SCRIPT-MIB.h:21:73: missing terminating " character
    mibgroup/DISMAN-SCRIPT-MIB.h:22: error: syntax error at '@' token
    mibgroup/DISMAN-SCRIPT-MIB.h:31: error: syntax error at '@' token
    mibgroup/DISMAN-SCRIPT-MIB.h:39: error: syntax error at '@' token
    mibgroup/DISMAN-SCRIPT-MIB.h:47: error: syntax error at '@' token
    mibgroup/DISMAN-SCRIPT-MIB.h:48:417: missing terminating " character
    mibgroup/DISMAN-SCRIPT-MIB.h:50:402: missing terminating " character
    mibgroup/DISMAN-SCRIPT-MIB.h:51:463: missing terminating " character
    .................................................. ......................

    Does somebody had the same problem and can help me? I'm using Debian
    unstable...

    Thanks
    Angela


  2. Re: compile error with disman-script-mib

    Angela Stempfel wrote:

    > i tried to compile the DISMAN-SCRIPT-MIB into Net-Snmp. The
    > configuration summary looks like this:


    [...]

    > mibgroup/DISMAN-SCRIPT-MIB.h:1: error: syntax error before '-' token


    Where did you get DISMAN-SCRIPT-MIB.h? I don't think that the jasmin
    implementation has such a file. Anyway, check the contents to see why
    it does not compile.

    If you generated DISMAN-SCRIPT-MIB.h yourself using whatever tool you
    have, please note that the implementation of the semantics is a non
    trivial programming exercise.

    /js

    --
    Juergen Schoenwaelder International University Bremen
    P.O. Box 750 561, 28725 Bremen, Germany

  3. Re: compile error with disman-script-mib

    Hello

    >
    >>mibgroup/DISMAN-SCRIPT-MIB.h:1: error: syntax error before '-' token

    >
    >
    > Where did you get DISMAN-SCRIPT-MIB.h? I don't think that the jasmin
    > implementation has such a file. Anyway, check the contents to see why
    > it does not compile.
    >
    > If you generated DISMAN-SCRIPT-MIB.h yourself using whatever tool you
    > have, please note that the implementation of the semantics is a non
    > trivial programming exercise.


    Hmm i just added it while configuring ->
    -with-mib-modules="DISMAN-SCRIPT-MIB"

    I didn't check if there is a DISMAN-SCRIPT-MIB.h included in Net-SNMP.
    But now i see it is not. But this MIB is the one i use for executing
    Scripts, am I right? Or do i only need the DISMAN/EVENT-MIB?

    Thanks Angela


  4. Re: compile error with disman-script-mib

    Angela Stempfel wrote:

    > I didn't check if there is a DISMAN-SCRIPT-MIB.h included in Net-SNMP.
    > But now i see it is not. But this MIB is the one i use for executing
    > Scripts, am I right?


    Correct. But in order to use this MIB, you need an _implementation_ of
    that MIB. The Jasmin project did such an implementation and there are
    papers which describe a bit more about the details. But I think the
    implementation is not shipped with net-snmp and I am sure it requires
    some extra work to get it up and running.

    /js

    --
    Juergen Schoenwaelder International University Bremen
    P.O. Box 750 561, 28725 Bremen, Germany

  5. Re: compile error with disman-script-mib

    hi
    >
    > Correct. But in order to use this MIB, you need an _implementation_ of
    > that MIB. The Jasmin project did such an implementation and there are
    > papers which describe a bit more about the details. But I think the
    > implementation is not shipped with net-snmp and I am sure it requires
    > some extra work to get it up and running.
    >
    > /js
    >


    ok i tried now to install the jasmin implementation. I configured it
    like that:
    hippie@minimii:~/jasmin-1.0.0$ ./configure -prefix=/usr/local
    --with-jdk12-home=/usr/local/j2sdk1.4.2 --with-fetch=wget
    --with-toolkit=ucd

    and it ends with this error:
    checking for javac... no
    checking for JDK1.1...
    checking for javac... no
    checking for JDK1.2... /usr/local/j2sdk1.4.2
    checking for SNMPSHAREPATH... failed.

    I know i should use jdk1.1.x, but i'm working with 1.4.2. I don't
    think this should cause this error. Do you have an idea? Is this
    a variable i have to set?

    Thanks ANgela


+ Reply to Thread