How can I debug the discover merge process nhiDciMerge?

Document ID : KB000023379
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

How to debug the merge process command nhiDciMerge ? 

 

Environment:  

For any Operating Systems and any CA eHealth Versions

 

Answer:  

 

1.   Obtain the discovery DCI from a command-line discovery

             nhDiscover -c <Community_String> -policy <PolicyName> -t 15 -res

             $NH_HOME\tmp\discoverResults.log -o $NH_HOME\tmp\discover.dci IP_ADDRESS

              -Dt -Dall > $NH_HOME\tmp\nhDsicover_dbg.log 2>&1

 

2.   Make sure NH_DBG_OUTPATH is set to an existing directory:

      Examples:

      UNIX:
      NH_DBG_OUTPATH="$NH_HOME/tmp" export NH_DBG_OUTPATH

      Windows:
      set NH_DBG_OUTPATH=%NH_HOME%/tmp/

 

        3.  nhiDciMerge -i $NH_HOME/tmp/discover.dci -o $NH_HOME/tmp/merge_out.dci

            -commit yes -Dall -Dt > $NH_HOME/tmp/nhiDciMerge_dbg.log 2>&1

 

           

4.   Collect:

 

             $NH_HOME/tmp/discoverResults.log

             $NH_HOME/tmp/discover.dci

             $NH_HOME/tmp/nhDsicover_dbg.log

             $NH_HOME/tmp/nhiDciMerge_dbg.log

$NH       $NH_HOME/tmp/nhiDciMerge_dbg.txt