; ----------------------------------------------------------------------------
; This is a sample script to be executed by HostMonitor
; ----------------------------------------------------------------------------
;
; Comments: lines beginning with a semicolon are ignored
;
; Commands: commands are case insensitive
; Parameters: parameters are case sensitive
;
; ----------------------------------------------------------------------------

; -- New in version version 3.0 --

SetCurrentFolder Root
IncludeSubfolders yes

; SetCurrentFolder <name of folder>|<full path>  - by default, HostMonitor uses the top folder
; IncludeSubfolders yes|no                       - by default, HostMonitor works with the specified folder and all its subfolders

; As of version 3.0, HostMonitor now supports macro variables (%TestName%,
; %Comment%, %Folder%, etc.)
; Please note:
; - if script is launched as a result of a test, the test's parameters
;   are used for macros;
; - if script is launched manually, parameters of the selected test are used
;   for macros (if no test is selected, macros are not translated)

; -- Discontinued in version 3.0 --

;DeleteTest

; -- Command for working with test lists --

; Warning: HostMonitor doesn't save changes to test lists made by script. 
; To save a list, use SaveTestList command.

NewTestList                            
LoadTestList    c:\list1.hml 
AppendTestList  c:\list2.hml
ImportFromFile  c:\import1.txt  SkipDuplicates  WriteLog
SaveTestList    c:\list3.hml

; -- Commands for generating reports --

;HTMLReport           c:\rep01.html
;DBFReport            c:\rep02.dbf
;WMLReport_AllBig     c:\filename1.wml
;WMLReport_AllSmall   c:\filename2.wml
;WMLReport_DeadBig    c:\filename3.wml
;WMLReport_DeadSmall  c:\filename4.wml

; In version 3.0 all these commands have been replaced with a single command:

CreateReport "report profile name"  c:\fullrep.html

; -- manipulation with tests --

; when HostMonitor execute script it can modify current list but doesn't save
; changes to file until command SaveTestList

RefreshAll
DisableAllTests
EnableAllTests

; The following four commands require TestName as a parameter.
; Remember, all parameters are case sensitive

;DeleteTest  www.yahoo.com         ; discontinued in version 3.0
DisableTest  www.microsoft.com
EnableTest   www.altavista.com
RefreshTest  www.borland.com

; Use the following test name constants to specify all tests of a given type
; rather than list the tests explicitly;
; _AllPing
; _AllTCP
; _URL
; _UNC
; _FreeSpace
; _FolderSize
; _FileExists
; _FileContents
; _Process
; _Service
; _NTLog
; _CPU
; _Interbase
; _MsSQL
; _MySQL
; _Oracle
; _Postgre
; _Sybase
; _SNMP
; _ExternalPrg
; _DLL
; _AllODBC
; _AllSMTP
; _AllPOP3
; _AllIMAP
; _AllDNS
; _AllLDAP
; _AllTrace
; _AllCountFiles

DisableTest  _AllTCP
EnableTest   _AllPing
RefreshTest  _AllURL

SetTestParam  _AllPing  Timeout   4000
SetTestParam  "CPU \\server1"  UserName  testuser1
SetTestParam  "CPU \\server1"  Password  my long secret password

; -- Other --

ExecuteProgram  c:\generator.exe  c:\database.dbf  c:\newtest.txt
StopMonitor
StartMonitor
;QuitMonitor

; ----------------------------------------------------------------------------
