Inventory Building CLI

Inventory Building CLI

CLI (Command Line Interface) for Inventory Building

Execute ETL Projects

  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. ::Stop CM evolveIT service
  25. SC stop %EVITSVC%

  26. TIMEOUT /T 10 >nul

  27. ::Start CM evolveIT service
  28. SC start %EVITSVC%
  29. pause


Discovery your source

  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. :: Run Discovery
  21. CD /D %WAPATH%\%INVNAME%
  22. %EVIT_ROOT%\DWB\AutoDWB.exe %WAPATH%\%INVNAME% -log %WAPATH%\%INVNAME%.log
  23. pause

  24. ::Stop CM evolveIT service
  25. SC stop %EVITSVC%

  26. TIMEOUT /T 10 >nul

  27. ::Start CM evolveIT service
  28. SC start %EVITSVC%
  29. pause



Import Workarea to Inventory 

  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. ::Run Import
  21. CD /D %EVIT_ROOT%\AdminWorkbench\bin
  22. AdminCLI.exe  --import-wa "|%WAPATH%\%INVNAME%|%INVNAME%|"  --logon "%USER%$%PASSWORD%" --server "%SERVER%:%PORT%"
  23. pause

  24. ::Stop CM evolveIT service
  25. SC stop %EVITSVC%

  26. TIMEOUT /T 10 >nul

  27. ::Start CM evolveIT service
  28. SC start %EVITSVC%
  29. pause




Cross Reference Desktop Inventory

  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. ::Run Cross-Reference of full Inventory
  21. CD /D %EVIT_ROOT%\AdminWorkbench\bin
  22. AdminCLI.exe --cross-ref "|%INVNAME%|" --logon "%USER%$%PASSWORD%" --server "%SERVER%:%PORT%"

  23. ::Stop CM evolveIT service
  24. SC stop %EVITSVC%

  25. TIMEOUT /T 10 >nul

  26. ::Start CM evolveIT service
  27. SC start %EVITSVC%
  28. pause




Web Inventory ETL

  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. :: Run Web ETL
  21. cd /D %EVIT_ROOT%\WebData\bin
  22. EvITInventoryTransformUtil.exe -m "%INVPATH%\%INVNAME%" -i %INVNAME% -p %MODE% -e ET
  23. pause

  24. ::Stop CM evolveIT service
  25. SC stop %EVITSVC%

  26. TIMEOUT /T 10 >nul

  27. ::Start CM evolveIT service
  28. SC start %EVITSVC%
  29. pause






    • Related Articles

    • Building CM evolveIT Inventory

      Desktop Inventory 1. Prepare Source File Folders Preparing folder and copy all sources - {Root}\Sources In this example, the Root folder is Discovery, the source subfolder is DemoSrcCode. 2. How to Create Inventory and Workarea Create WorkAreas and ...
    • What is 'Building Inventory'?

      About this page, CM evolveIT provides both Desktop and Web user interface to provides analysis. The data is called Inventory. There are two type of Inventory, Desktop and Web. CM evolveIT provides parser/scanner for various source code types. This ...
    • Inventory Transform

      This document will cover the basics of the CM evolveIT Dashboard Inventory Transformation.   After completing this document, you should have a basic understanding of where the inventory transform process gets its data, how to determine a process has ...
    • Inventory Management

      Dashboard - Inventory Management This document will cover the basics of how to map Inventories to Object Groups in the CM EvolveIT Dashboard. There will be a discussion of how to assign and remove Inventories form an Object Group. After completing ...
    • Inventory and Object Group Mapping

      This document will cover the basics of how to map Inventories to Object Groups in the CM evolveIT Dashboard. There will be a discussion of how to assign and remove Inventories form an Object Group. After completing this document, you should have an ...