Hi,
I need to export all tests to a text file using command line tool. I can do this from file menu but i just want to insert test details to a database with a scheduled task, and I want to take a report which servers are monitored and which are not by sql join to server list table.
It will be possible with exporting tests with a command line tool to a text file. Or any other suggestions to do this?
Thanks and regards
Export to text file
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Probaly, the best way to automate exporting tests, is to create a specific report. For instance, you may use "Custom Report" : http://www.ks-soft.net/hostmon.eng/mfra ... CustomHTML
You may use following variable with in report's body: http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
I wan to point out at "Test specific macro variables", like %HostAddr
Quote from the manual:
=========
%HostAddr% - Represents the host name (or IP address) of the target system for the following tests: Ping, TCP, URL, HTTP Oracle, Interbase, MS SQL, MySQL, Sybase, Postgre, Process, Service, NT Log, CPU Usage, SNMP, SMTP, POP, IMAP, DNS, LDAP, UNC, UDP, NTP, RADIUS, Temperature Monitor, Traffic Monitor
=========
So, you may create custom report with "%HostAddr%" variable, that will be represent monitored servers for "Database Tests" and you may join it to servers list table, I suppose.
To implement exporting test automatically, you should create foregoing report, create action profile with "Generate reports" action ( http://www.ks-soft.net/hostmon.eng/mfra ... htm#actRep ) and schedule such action profile using built-in Scheduler ("Options > Scheduler" http://www.ks-soft.net/hostmon.eng/mfra ... #SchedPage )
Also you may enable "Generate reports every N min" option. Option available at "Options > Reports" tab.
Regards,
Max
You may use following variable with in report's body: http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
I wan to point out at "Test specific macro variables", like %HostAddr
Quote from the manual:
=========
%HostAddr% - Represents the host name (or IP address) of the target system for the following tests: Ping, TCP, URL, HTTP Oracle, Interbase, MS SQL, MySQL, Sybase, Postgre, Process, Service, NT Log, CPU Usage, SNMP, SMTP, POP, IMAP, DNS, LDAP, UNC, UDP, NTP, RADIUS, Temperature Monitor, Traffic Monitor
=========
So, you may create custom report with "%HostAddr%" variable, that will be represent monitored servers for "Database Tests" and you may join it to servers list table, I suppose.
To implement exporting test automatically, you should create foregoing report, create action profile with "Generate reports" action ( http://www.ks-soft.net/hostmon.eng/mfra ... htm#actRep ) and schedule such action profile using built-in Scheduler ("Options > Scheduler" http://www.ks-soft.net/hostmon.eng/mfra ... #SchedPage )
Also you may enable "Generate reports every N min" option. Option available at "Options > Reports" tab.
Regards,
Max