Sample Script

A sample script is supplied with Universal Discovery in the following location:

C:\UCMDB\DataFlowProbe\tools\InventoryTools\AnalysisWorkbench\Scripts

Section names must not begin or end with space characters. Sections can be in any order.

[Comments]

*** SAMPLE SCRIPT ***

This section is ignored – There is no need to comment out lines.

[Startup]

; This section contains information which will be used to configure

; Analysis Workbench on starting the script and does not have to exist

LOG_CLEAR

DISPLAY_PROGRESS ON

RUN_PROCESS ClearAW

[Process]

LOAD_DIRECTORY_LIST TestDirList

RUN_PROCESS Business5

RUN_PROCESS BusinessAll

RUN_PROCESS Operational5

RUN_PROCESS OperationalAll

QUERY_LOAD C:\UCMDB\DataFlowProbe\tools\InventoryTools\AnalysisWorkbench\Queries\nt4ws

QUERY_RUN

[ClearAW]

UNLOAD ALL

[Business5]

RUN_PROCESS ClearAW

SET_BUSINESS

LOAD_SCAN_LIST 5XSFListLondon

SAVE_STATE C:\UCMDB\DataFlowProbe\tools\InventoryTools\AnalysisWorkbench\State Images\Business5.aws

Business5.AWS,Demo state containing 5 scans from the London office in Business mode

[BusinessAll]

RUN_PROCESS ClearAW

SET_BUSINESS

LOAD_DIRECTORY C:\UCMDB\DataFlowProbe\tools\InventoryTools\Samples\s

SAVE_STATE C:\UCMDB\DataFlowProbe\tools\InventoryTools\AnalysisWorkbench\State Images,Demo state containing all scans from the London and Frankfurt offices in Business mode

[Operational5]

RUN_PROCESS ClearAW

SET_OPERATIONAL

LOAD_SCAN_LIST 5XSFListLondon

SAVE_STATE C:\UCMDB\DataFlowProbe\tools\InventoryTools\AnalysisWorkbench\State Images\Operational5.AWS,Demo state containing 5 scans from the London office in Operational mode

[OperationalAll]

RUN_PROCESS ClearAW

SET_OPERATIONAL

LOAD_DIRECTORY C:\UCMDB\DataFlowProbe\tools\InventoryTools\Samples

SAVE_STATE C:\UCMDB\DataFlowProbe\tools\InventoryTools\AnalysisWorkbench\State Images\OperationalAll.AWS,Demo state containing all scans from the London and Frankfurt offices in Operational mode

[5XSFListLondon]

C:\UCMDB\DataFlowProbe\tools\InventoryTools\Samples\London\LND1000.xsf

C:\UCMDB\DataFlowProbe\tools\InventoryTools\Samples\London\LND1002.xsf

C:\UCMDB\DataFlowProbe\tools\InventoryTools\Samples\London\LND1006.xsf

C:\UCMDB\DataFlowProbe\tools\InventoryTools\Samples\London\LND1028.xsf

C:\UCMDB\DataFlowProbe\tools\InventoryTools\Samples\London\LND1038.xsf

[TestDirList]

; This section contains a test list of directories to load

; note c:\ /sub will attempt to load ALL Scan Files on drive C

; d:\scan files will load only scan files in that directory - subdirectories would be ignored

c:\/sub

d:\scan files

e:\/sub

f:/sub

[End]

; This section contains commands to be run before script finishes and does not have to exist

;LOG_SAVE c:\AWScriptLogFile.txt

;TERMINATE_PROGRAM