Enable / Disable tests from command line

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
karpe
Posts: 16
Joined: Mon Sep 14, 2009 9:23 am

Enable / Disable tests from command line

Post by karpe »

Hi,

I don´t know if there is some option to manage any tests from command line and them enable or disable it. How can i change the current status without manual intervention.

I use HM version 7.50

Thanks and regars
Carlos
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Command line? There is no such option.
Test settings can be changed by operator using HostMonitor or RCC, some settings can be changed thru Web Service.
RCC: http://www.ks-soft.net/hostmon.eng/rcc/index.htm
Web Service: http://www.ks-soft.net/hostmon.eng/webservice/index.htm

Automatically some settings can be changed by HM Script or Import file
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
http://www.ks-soft.net/hostmon.eng/examples/import1.htm

Also you may use Telnet Service. It allows you to use Telnet client connected to HostMonitor.
http://www.ks-soft.net/hostmon.eng/teln ... /index.htm
You may create some script for your telnet client and start it automatically.

Regards
Alex
karpe
Posts: 16
Joined: Mon Sep 14, 2009 9:23 am

Post by karpe »

I see very ussefull create a HMS script. But to run a script, i need go to File -> Execute script.

It´s a manually option, is there other posibility?

Regards,
Carlos
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There is "Execute HM Script" action. Actions can be started by built-in Scheduler also you may setup some test (e.g. File/Folder Availibility) and assign action profile to the test...

Regards
Alex
karpe
Posts: 16
Joined: Mon Sep 14, 2009 9:23 am

Post by karpe »

I know,

I have a oracle test, then I need to disable it while the backup are running. The backup windows it´s not the same (i can´t use a scheduled task) , them i would like to execute the hms script from ms-dos.
(really: I would like that netbackup automatically will stop the oracle test...)

Regards
Carlos
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm, you don't know when backup process can be started? Somebody starts it manually?
Probably you can modify script that starts backup procedure? E.g. add some command to create temporary file as flag, add NT Event Log record or send SNMP Trap message to HostMonitor. Then you may setup additional test to check for such flag and use this tast as Master test for Oracle test :roll:
Also you may create script for your telnet client and use Telnet Service to disable/enable tests.

Regards
Alex
Post Reply