Normalization NESIM script not working in 9104

Version 6
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BMC Atrium Core - CMDB


    COMPONENT:

    BMC Atrium Core


    APPLIES TO:

    BMC AtriumCore 9.1.01 and later.



    PROBLEM:

     

    Try to run the nesim.bat or nesim.sh to get normalization report.

      

    bash-4.2$ ./nesim.sh localhost 46262 Demo password BMC.SAMPLE BMC_ComputerSystem BMC_COMPUTERSYSTEM 100 

      

    You'll get an error:

      

    Exception in thread "main" java.lang.NoClassDefFoundError: com/bmc/arsys/api/ARServerUser

      

    at com.bmc.ne.tools.SimulateNormalization.main(Unknown Source)

      

    Caused by: java.lang.ClassNotFoundException: com.bmc.arsys.api.ARServerUser

      

    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

      

    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

      

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)

      

    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

      

    ... 1 more

      

      

      

    EXPECTED RESULTS: 

      

    bash-4.2$ ./nesim.sh localhost 46262 Demo password BMC.SAMPLE BMC_ComputerSystem BMC_COMPUTERSYSTEM 100

      

    Logged in to server :localhost

      

     Processing class:BMC_ComputerSystem

      

      

      

    ****** Class Summary ***** 

      

    Total CIs = 0

      

    Failed CIs = 0

      

    Success CIs = 0

      

    Skipped CIs = 0

      

    NewProducts = 0

      

      

      

    ****** Dataset Summary *****

      

      

      

    Total CIs = 0

      

    Failed CIs = 0

      

    Success CIs = 0

      

    Skipped CIs = 0

      

    NewProducts = 0

      

      

      

    The detailed summary is in <BMC.SAMPLE_NESimulation.txt>

      

      

      

    You can import this file in Microsoft Excel with delimeter as <|>

      


     

     


    CAUSE:

    The problem is in the arapi version specified in the bat or sh script. It lists arapi91_build001.jar instead of arapi91_build004.jar:


    SOLUTION:

     

    Fix the nesim CLASSPATH to use the correct version of the arapi91.jar. For example:

      

    CLASSPATH=$NEDIR/neapi91.jar:$NEDIR/netools91.jar:$CMDBDIR/arapi91_build004.jar:$CMDBDIR/cmdbapi91.jar:$CMDBDIR/commons-lang-2.4.jar

      

    Make sure that the arapi91 jar file actually exists in the CMDB/server/bin folder.
    Fixing the version of the API does work. You can run the NE Simulation report after that.

    Example of script as it works, syntax and result for 1805 NESIM: 

    nesim.sh:
    #!/bin/sh
    ATRIUMCORE_HOME=/opt/bmc/AtriumCore/
    export ATRIUMCORE_HOME
    LIBPATH=$ATRIUMCORE_HOME/cmdb/sdk/bin
    export LIBPATH
    LD_LIBRARY_PATH=$ATRIUMCORE_HOME/cmdb/sdk/bin
    export LD_LIBRARY_PATH
    SHLIB_PATH=$ATRIUMCORE_HOME/cmdb/sdk/bin
    export SHLIB_PATH
    CLASSPATH=$ATRIUMCORE_HOME/cmdb/plugins/ne/neapi91.jar:$ATRIUMCORE_HOME/cmdb/plugins/ne/netools91.jar:$ATRIUMCORE_HOME/cmdb/sdk/bin/arapi91_build005.jar:$ATRIUMCORE_HOME/cmdb/sdk/bin/cmdbapi91.jar:$ATRIUMCORE_HOME/cmdb/sdk/bin/commons-lang-2.4.jar
    export CLASSPATH
    /usr/jdk/jdk1.8.0_45/jre/bin/java -classpath $CLASSPATH com.bmc.ne.tools.SimulateNormalization $*


    /opt/bmc/AtriumCore/cmdb/utils# ./nesim.sh `hostname` 0 Demo password BMC.ASSET BMC_Product BMC_PRODUCT 500
    Logged in to server :xxxxxxxx


    Processing class:BMC_Product

            ****** Class Summary *****

                    Total   CIs = 3
                    Failed  CIs = 3
                    Success CIs = 0
                    Skipped CIs = 0
                    NewProducts = 0

            ****** Dataset Summary *****

                    Total   CIs = 3
                    Failed  CIs = 3
                    Success CIs = 0
                    Skipped CIs = 0
                    NewProducts = 0

    The detailed summary is in <BMC.SAMPLE_NESimulation.txt>

    You can import this file in Microsoft Excel with delimeter as <|>
    /opt/bmc/AtriumCore/cmdb/utils# cat BMC.ASSET_NESimulation.txt
    Status|Class|Model|ManufacturerName|VersionNumber|PatchNumber|Category|Type|Item|InstanceId
    Skipped|BMC_Product|null|null|null|null|null|null|null|OI-2DA89FDB303148C49F815AC9DAFC73F8
    Failed(Manufacturer is null)|BMC_Product|Adobe Photoshop CS5|null|null|null|Software|Application|Third Party|OI-6F629E99D79D4C0EA6B1636576D087E6
    Skipped|BMC_Product|null|null|null|null|null|null|null|OI-8DBAE44BE8A8499295A6E44155696044



     

     


    Article Number:

    000155532


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles