Macro Value for Test File size

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
cmaceach
Posts: 4
Joined: Wed Mar 24, 2010 1:54 pm

Macro Value for Test File size

Post by cmaceach »

Hi,

I'm curious on how I would get the value returned for the just the file location. I get the information from %TestedObjectInfo% but is more then I need just the location but it returns
"Size of \\127.0.0.1\c$\scripts\test\test.txt on localhost (subfolders: No)"

I just need a reply of "\\127.0.0.1\c$\scripts\test\test.txt"

Which is the value in the test field. I am trying to make it so I can have a bad test email me the log for each system without me having to hard code the location to every single test. If there anyway to parse out the value?

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

Post by KS-Soft »

I think you may use %TestName% or %CommentLine1% variables.
If test name shows name of the file, you may use %TestName% variable for the action. Otherwise you may use comment field.

Also you may setup HostMonitor to fill up name and/or comment fields automatically using menu Profiles -> Patterns.
In such pattern you may use %Path% or %Object% variables
http://www.ks-soft.net/hostmon.eng/mfra ... #templates

Regards
Alex
Post Reply