File/Folder Availability test - Question
File/Folder Availability test - Question
Is there anyway to have this test check remote servers or mapped drives on the local system without writing a script? This is a easy process with the Process and Service test.
I'm trying to work with Connection Manager, but still don't see the drive appear in the drop down list.
I'm trying to work with Connection Manager, but still don't see the drive appear in the drop down list.
You don't need any script. There are 2 options:
- type UNC path to the file (e.g. \\server\resource\filename)
- if you have mapped that resource to local drive, you may select file using file selection dialog
If you have mapped drive but dialog does not allow you to select that drive, probably you have started HostMonitor as service using account that does not have permissions to access remote system
Also you may use agent to monitor files on remote system.
Regards
Alex
- type UNC path to the file (e.g. \\server\resource\filename)
- if you have mapped that resource to local drive, you may select file using file selection dialog
If you have mapped drive but dialog does not allow you to select that drive, probably you have started HostMonitor as service using account that does not have permissions to access remote system
Also you may use agent to monitor files on remote system.
Regards
Alex
Fails test - Returns Reply "The directory name is invalid".- type UNC path to the file (e.g. \\server\resource\filename)
Turns out there are two files that I have to check for by filename. Unfortunately the date and time are built into the filename. One changes hourly and the other daily.
Tried this as well. Created a link on my C:\ drive to a file on the remote drive. When I try to have HM access it, receive info window: "The drive or network connection that the shortcut 'adp.2004.0629.txt.lnk' refers to is unavailable. Make sure that the disk is properly inserted or the network resource is available, and then try again" If I create a link to the drive and try it. The drive shows up with a Red question mark under it in the drive select dialog window.- if you have mapped that resource to local drive, you may select file using file selection dialog
The HM app. was started as a service, with "Log on as" set to Local system account. I don't have admin access to install anything on the server that the files reside on.
Looks like I will have to write a script. Also looks like HM doesn't know how to run a Perl script, only VBScript and JScript's correct?
Local system account does not have right to access network. That's why HostMonitor cannot check remote files.The HM app. was started as a service, with "Log on as" set to Local system account.
Script? And how script can help you if you (HostMonitor) are using account that does not have necessary rights?Looks like I will have to write a script.
Regards
Alex
HostMonitor does not execute scripts by itself. It uses scripting host that calls scripting engine... I means if you have installed Perl, you may call perl scripts from HostMonitor.Also looks like HM doesn't know how to run a Perl script, only VBScript and JScript's correct?
Please note: there are 2 different test methods that use scripts:
Active Script: http://www.ks-soft.net/hostmon.eng/mfra ... htm#script
Shell Script: http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell
However you don't need any script. You need to specify account that has rights to access remote resources.
Regards
Alex
PS: If you cannot use admin's account to start HostMonitor, you should install RMA on remote system.
http://www.ks-soft.net/hostmon.eng/rma-win/index.htm
Regards
Alex
http://www.ks-soft.net/hostmon.eng/rma-win/index.htm
Regards
Alex
You were correct, I did not have to create a script. I used the Connection Manager tool and set up the login credentials. This way I didn't have to map a drive either. I also used the "Translate Macros" option to build a filename by using the current date minus one day. I also used the scheduler with different time intervals and created a user defined variable, which I had to use to send the same filename in my snmp trap that was translated using the translate macro option.
Building this test has really been a learning experience with your application, and I still say that this is an excellent application.
It would be nice if you added the "Connect as" features like you have in the UNC test, to the File/Availability test. I guess that should be posted on the wish list.
Thanks Again!
Building this test has really been a learning experience with your application, and I still say that this is an excellent application.
It would be nice if you added the "Connect as" features like you have in the UNC test, to the File/Availability test. I guess that should be posted on the wish list.
Thanks Again!
Thank youuilding this test has really been a learning experience with your application, and I still say that this is an excellent application.
Actually we kept "Connect as" option for compatibility with older versions. I think "Connection Manager" is more convenient. Am I wrong?It would be nice if you added the "Connect as" features like you have in the UNC test, to the File/Availability test. I guess that should be posted on the wish list.
Regards
Alex
Sorry for being a pain in the neck, but
On server 2000 when I specify a wild character '*' in the "File or Folder Name" field it works fine. On 2003 it doesn't. I don't get an error message or anything, just a "Bad" reply.
Here's the string that I'm using:
\\bsfiletr2\xferusers\ecomm\wsod.%yyyymmdd[-1d]%073*.txt
Actual filename: "wsod.20050413073056.txt"
Why they included the seconds in the filename is beyond me.
On server 2000 when I specify a wild character '*' in the "File or Folder Name" field it works fine. On 2003 it doesn't. I don't get an error message or anything, just a "Bad" reply.
Here's the string that I'm using:
\\bsfiletr2\xferusers\ecomm\wsod.%yyyymmdd[-1d]%073*.txt
Actual filename: "wsod.20050413073056.txt"
Why they included the seconds in the filename is beyond me.
Probably there are more than one file that fit "wsod.%yyyymmdd[-1d]%073*.txt" mask and you are checking age of the file?
When you are using wild character, HostMonitor checks 1st file that fits the mask. Which file is 1st, depends on location of the record in file system directory. So, if you have several files, you cannot predict which file will be checked...
Regards
Alex
When you are using wild character, HostMonitor checks 1st file that fits the mask. Which file is 1st, depends on location of the record in file system directory. So, if you have several files, you cannot predict which file will be checked...
Regards
Alex