Normalization Simulation with nesim.bat. How to do it

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 CMDB Suite


    COMPONENT:

    BMC Atrium CMDB Suite


    APPLIES TO:

    BMC Atrium CMDB Suite 7604 and later versions, but the file names specified in the batch file will be different.



    QUESTION:

    We also would like to learn the following regarding normalization simulation:

    Q1) Are we able to specify where the result to be written?

    Q2) Are we able to specify the name of the result file to be written?

    Q3) What is the best practices regarding the use of norm sim in general and including where to put nesim.bat and its result file?
     


    ANSWER:

     

    Legacy ID:KA385730

       Q1) Are we able to specify where the result to be written?

    ANSWER>The Normalization Engine provides logging information in different areas. 
    All types have different contexts and can occur simultaneously. For example, BMC Atrium CMDB has three datasets configured for normalization. 
    Dataset A is normalized once a week as a batch job so its logging information is saved to NE.datasetA.nnn.log. 
    DatasetB is normalized in continuous mode, and its logging data is saved to necont.log. 

    Batch normalization jobs- The log file is automatically generated as AtriumCore_install\cmdb\server\logs\neJob.dataSetId.jobID.log. 
    It captures information for batch and inline normalization jobs. The job ID is available in the Normalization console. By default, the logging level for 
    normalization is set to Information. 

    Continuous normalization- The log file in AtriumCore_install\cmdb\server\logs\neContinuous.log is automatically generated to capture information for continuous normalization. 
    By default, the logging level for continuous normalization is set to Warning 

    Normalization API-The default log file name and location is AtriumCore_install\cmdb\server\logs\neapi.log. 
    By default, the logging level for normalization API functions is set to Information. 
    If discovery products use normalization APIs, use this log file to diagnose problems. 

    Dataset C is configured for a weekly batch normalization using the Normalization API, so it has more detailed logging information about the API events in neapi.log. 
    This log file contains information for inline normalization. 

    Is there a particular reason why you would want to set this to anywhere other than the default?

    Q2) Are we able to specify the name of the result file to be written? 

    ANSWER> to a degree yes see above, by default a job ID and sequence ID gets appended to the logs. 

    Q3) What is the best practices regarding the use of norm sim in general and including where to put nesim.bat and its result file? 

    ANSWER> Best Practice for use of this would be the following: 
    Before you begin 
    - Configure the dataset for normalization. 
    - Update or add class configurations as needed for the dataset. 
    - Populate the dataset with representative data. 
    - Verify that the Product Catalog is updated and configured as required for your business needs. 

    To create a batch file for Windows 
    1 Create a file named nesim.bat, and open it in a text editor. 

    2 Add following lines into this batch file: 

    SYNTAX for 9.1.04 (1805) version of nesim.bat: 

    ECHO OFF
    set java_bin="C:\Program Files\Java\jre1.8.0_181\bin"
    set class_path="%ATRIUMCORE_HOME%\cmdb\plugins\ne\neapi91.jar"
    set class_path=%class_path%;"%ATRIUMCORE_HOME%\cmdb\sdk\bin\arapi91_build004.jar"
    set class_path=%class_path%;"%ATRIUMCORE_HOME%\cmdb\sdk\bin\cmdbapi91.jar"
    set class_path=%class_path%;"%ATRIUMCORE_HOME%\cmdb\plugins\ne\netools91.jar"
    set class_path=%class_path%;"%ATRIUMCORE_HOME%\cmdb\sdk\bin\commons-lang-2.4.jar"
    ECHO ON
    %java_bin%\java -classpath %class_path% com.bmc.ne.tools.SimulateNormalization %*


    Syntax sample: nesim.bat localhost 0 Demo %mypass% BMC.SAMPLE BMC_IPEndpoint BMC_IPENDPOINT 500

    SYNTAX for 7.6.04 version of nesim.bat: 

    ECHO OFF 
    set java_bin="%ATRIUMCORE_HOME%\BMCAtriumCoreInstallJVM\bin" 
    set class_path="%ATRIUMCORE_HOME%\cmdb\plugins\ne\neapi7604.jar" 
    set class_path=%class_path%;"%ATRIUMCORE_HOME%\cmdb\sdk\bin\arapi7604_build002.jar" 
    set class_path=%class_path%;"%ATRIUMCORE_HOME%\cmdb\sdk\bin\cmdbapi7604.jar" 
    set class_path=%class_path%;"%ATRIUMCORE_HOME%\cmdb\plugins\ne\netools7604.jar" 
    set class_path=%class_path%;"%ATRIUMCORE_HOME%\cmdb\sdk\bin\commons-lang-2.4.jar" 
    ECHO ON 
    %java_bin%\java -classpath %class_path% com.bmc.ne.tools.SimulateNormalization %* 

    Save the file, but make sure the jar files and paths actually match your environment. Versions could be different in the jar name. 
    Also the java_bin may in a different location. Verify these. 

    arguments are: [ ] 

    Example run:
    netsim.bat VW-AUS-Server 0 Demo Demo BMC.ADDM BMC_ComputerSystem BMC_COMPUTERSYSTEM 500

    Results will look like this: 

    Logged in to server :VW-AUS-Server
    Processing class:BMC_ComputerSystem
                Processed so far :500 
                Processed so far :1000
                Processed so far :1500
                Processed so far :2000
                Processed so far :2500
                Processed so far :3000
                Processed so far :3500
                Processed so far :4000 
                Processed so far :4299

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

    Total CIs = 4299
    Failed CIs = 5
    Success CIs = 4294
    Skipped CIs = 0
    NewProducts = 15

    ****** Dataset Summary *****
    Total CIs = 4299
    Failed CIs = 5
    Success CIs = 4294
    Skipped CIs = 0
    NewProducts = 15


    The detailed summary is in You can import this file in Microsoft Excel with delimeter as <|> 

    The file would have results like this: 

    Success|BMC_ComputerSystem|ProLiant DL380 G5|Hewlett-Packard Company|null|null|Hardware|Server|Physical|OI-11f3f21c4f26431482f61110a7fde2b8 
    Failed(Product is null)|BMC_ComputerSystem|null|NICE_SYS|null|null|Hardware|Processing unit|Server|OI-11f7e25ef8f14362959e2f46ddccdcdc 
    New product(CTI)|BMC_ComputerSystem|null|null|null|null|Hardware|Processing unit|Server|OI-12543e522bb14ba387e203e7aab75a4d 

    Review the results and fix accordingly. 

     


    Article Number:

    000030002


    Article Type:

    FAQ/Procedural



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