Populate varibale from test?

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
grussell
Posts: 36
Joined: Thu Jan 21, 2010 2:24 am

Populate varibale from test?

Post by grussell »

Hello,

Is it possible to populate a user defined varibale with the results of a test. In particular a WMI query.

Many thanks,

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

Post by KS-Soft »

HM Script offers SetUserVariable, SaveUserVariable commands
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript

Regards
Alex
grussell
Posts: 36
Joined: Thu Jan 21, 2010 2:24 am

Post by grussell »

Not the HM Script, I mean from a vbscript (or WMI). For example, I could run a test which obtains the NT Domain of a remote server, populate a variable, and then when events occur - automatically populate the database with the NT domain stored in a variable.

I could imagine an option (tick box) saying "Move Reply into variable %fvar_domain%".

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

Post by KS-Soft »

Yes, I understand. You may assign alert profile with "Execute HM Script" action to this test. Macro variable %Reply% can be used in the script

Regards
Alex
Post Reply