test if a file exists in remote machine

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
doniphon
Posts: 26
Joined: Wed Feb 13, 2008 4:38 am

test if a file exists in remote machine

Post by doniphon »

How can i test if a file exists in a remote machine without use hostmonitor agent in thath remote machine, that is to say, only using the hostmonitor console? It's possible? How can i reference the remote machine in the "test properties" page?
Many thanks in advance.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Then you should provide access to the file using any standard network protocol, e.g. Microsoft network client, HTTP.

>How can i reference the remote machine in the "test properties" page?

It depends on what method have you used to provide access to the file.
If you are using Microsoft network client, then setup "File/Folder Availability" test and specify UNC path to the file, e.g. \\server\resource\file
If you want to access file using HTTP protocol, setup URL or HTTP test method and provide URL

Regards
Alex
doniphon
Posts: 26
Joined: Wed Feb 13, 2008 4:38 am

the same test result for file exists or doesn't

Post by doniphon »

Ok, I use the UNC "\\remoteserver\folder\file" but when in the test page of properties I choose "file exists", it exists or don't exist the file, the test result is the same one. Equally it does happen when I choose "file doesn't exist". Why?
Thanks again.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

the test result is the same one
What exactly means "the same one"? Bad? Ok? Unknown? some other?

Regards
Alex
doniphon
Posts: 26
Joined: Wed Feb 13, 2008 4:38 am

means "OK"

Post by doniphon »

Sorry, i means "Ok"
Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Well, Ok status for "File/Folder Availability" test with "Alert when file exists" means HostMonitor is able to access specified resource on target system but there is no such file.
Then if you change option to "Alert when file doesn't exist", HostMonitor will set "Bad" status.

It cannot show Ok status in both cases. Unless you setup test to check age of the file as well.

Regards
Alex
Post Reply