Sample Scripts

Sample Scripts

Sample automation Script to execute full Inventry Building process

Pre-requirement

  1. Install CM evolveIT
  2. Create Workarea root folder
  3. Create Inventory root folder
  4. Create Empty Inventory Folder like MyInv under  Inventory root folder
  5. Install 'MyInv' using Administrator Workbench
  6. OrientDB Service is running and accessible
  7. CM evolveIT Web API is running and accessible

Configuration

{EvolveITRoot}\WebData\bin\ConfigX\GraphTransformOptions.json
  1. {
  2.   "EvITAPIURL": http://localhost:32670,
  3.   "DBURL": http://localhost:2480
  4. }
Multi Server Discovery 


Alert
Administrator access to the Windows machine. 
Execute the script as administrator

Sample Script for Single Server Automation

  1. SET INVNAME=MyInv
  2. :: Set CM evolveIT installed root Folder Path
  3. SET EVIT_ROOT=C:\CMFirst\evolveIT-11.7
  4. :: Set Workarea root Folder Path
  5. SET WAPATH=C:\CMEvolveIT\Workareas
  6. :: Set Inventory root Folder Path
  7. SET INVPATH=D:\CMEvolveIT\Inventories
  8. :: SET user and password to connect Server Service
  9. SET USER=Administrator
  10. SET PASSWORD=cmfirst
  11. :: Set Server service host and port
  12. SET EVITSVC=evolveIT-11.7
  13. SET SERVER=localhost
  14. SET PORT=65491
  15. :: Set mode (MF or IBMI)
  16. SET MODE=MF

  17. :: Please add your own source file copy process here.. such xcopy, ftp, unzip etc.

  18. ::Start CM evolveIT service
  19. SC start %EVITSVC%

  20. :: Refresh DB2 catalog
  21. cd /d %EVIT_ROOT%\WebData\ETLProject
  22. evolveITSrcFileManagementCLI.exe -m FULL -w "5a96992c-019a-4535-8ec4-59112b548dd8" -p "1d1081c7-bc6b-40d0-a8a9-e7aed0129c24"  
  23. pause

  24. :: Run Discovery
  25. CD /D %WAPATH%\%INVNAME%
  26. %EVIT_ROOT%\DWB\AutoDWB.exe %WAPATH%\%INVNAME% -log %WAPATH%\%INVNAME%.log
  27. pause

  28. ::Run Import
  29. CD /D %EVIT_ROOT%\AdminWorkbench\bin
  30. AdminCLI.exe  --import-wa "|%WAPATH%\%INVNAME%|%INVNAME%|"  --logon "%USER%$%PASSWORD%" --server "%SERVER%:%PORT%"
  31. pause

  32. :: Run Web ETL
  33. cd /D %EVIT_ROOT%\WebData\bin
  34. EvITInventoryTransformUtil.exe -m "%INVPATH%\%INVNAME%" -i %INVNAME% -p %MODE% -e ET
  35. pause

  36. ::Run Cross-Reference of full Inventory
  37. CD /D %EVIT_ROOT%\AdminWorkbench\bin
  38. AdminCLI.exe --cross-ref "|%INVNAME%|" --logon "%USER%$%PASSWORD%" --server "%SERVER%:%PORT%"

  39. ::Stop CM evolveIT service
  40. SC stop %EVITSVC%

  41. TIMEOUT /T 10 >nul

  42. ::Start CM evolveIT service
  43. SC start %EVITSVC%
  44. pause


Multi Server Automation

CM evolveIT also supports multi-server Inventory Building.
Please contact CM evolveIT Support Team.



    • Related Articles

    • Ho to set the obsvr.properties file

      CM MatchPoint uses the obsvr.properties to store the application settings. Here is a sample of the data to set:  
    • CA 2E application to Web/API Migration POC

      The Purpose of this Article is to Provide the Steps to Gather Data Needed for a 2E to Web POC Please share item #1 and #2 first, if #3 and #4 require significant additional time. 1. Create a save file of the 2E model library. Model Library (use ...
    • CM evolveIT Dashboard APIs

      This document will cover the basics of the CM evolveIT Dashboard Configuration Tool. There will be a discussion about what APIs are available, how to use the APIs and how to test results from the APIs. The last section of the document will walk ...
    • CA 2E Mode requirements

      This article describes the steps needed to provide information needed for setting up evolveIT for 2E requirements gathering. Please zip your files and upload to https://spaces.hightail.com/uplink/cmfirsttech 1. Create a save file of the 2E model ...
    • Managing Users in Active Directory Mode

      This document will cover the basics of the CM evolveIT Dashboard managing users in Active Directory mode within the dashboard. This document will discuss add users with Active Directory. After completing this document, you should be able to set up ...