File availability test
File availability test
Alex,
I am currently working on a new requirement that has come up. Basically to check for the presence of a new file and if conditions meet, set up an action to transfer the file to another location. Also to confirm if the transfer was successful. There are over 130 remote locations to which I need to perform this test. I have been testing with "File/Folder availability test" and "Compare files test".
So far so good. But there is a challenge. The source file name keeps changing everytime. In this case, what do I check for ? What do I compare with ? Can we have an option to define the filenames in the form of a UserDefinedVariable ? I will be setting up 130 tests and in each I will just define this variable one time. In this case I can setup an operator to telnet to hostmonitor and execute a simple command to insert the right filename as a UserDefinedVariable.
Highly appreciate your reply OR any other suggestion that you may have.
Thanks,
Arun.
I am currently working on a new requirement that has come up. Basically to check for the presence of a new file and if conditions meet, set up an action to transfer the file to another location. Also to confirm if the transfer was successful. There are over 130 remote locations to which I need to perform this test. I have been testing with "File/Folder availability test" and "Compare files test".
So far so good. But there is a challenge. The source file name keeps changing everytime. In this case, what do I check for ? What do I compare with ? Can we have an option to define the filenames in the form of a UserDefinedVariable ? I will be setting up 130 tests and in each I will just define this variable one time. In this case I can setup an operator to telnet to hostmonitor and execute a simple command to insert the right filename as a UserDefinedVariable.
Highly appreciate your reply OR any other suggestion that you may have.
Thanks,
Arun.
Alex,
This file is generated by an application and the filename contains some random 'alphanumeric' characters which the application remembers and keeps track of it. We are an oil company and the company issues its own credit cards for using at all gas stations. This file is just a plain text file containing 'hotlisted' cards and it needs to be sent accross to all filling stations at regular intervals. Each time the list is modified, the application generates a new file with a new name.
This means, on any given day, this file could be generated multiple times and each new file needs to be pushed to all sites immediately. Upon which, I will setup another file check/compare test to confirm proper delivery.
Regards,
Arun
This file is generated by an application and the filename contains some random 'alphanumeric' characters which the application remembers and keeps track of it. We are an oil company and the company issues its own credit cards for using at all gas stations. This file is just a plain text file containing 'hotlisted' cards and it needs to be sent accross to all filling stations at regular intervals. Each time the list is modified, the application generates a new file with a new name.
This means, on any given day, this file could be generated multiple times and each new file needs to be pushed to all sites immediately. Upon which, I will setup another file check/compare test to confirm proper delivery.
Regards,
Arun
tips
Hi,
You can use robocopy (Windows ressources kit) to copy your file to the other location. You've got lots of options like /MIR so that all your directories will be mirroring.
So you wouldn't need to monitor.
Cédric.
You can use robocopy (Windows ressources kit) to copy your file to the other location. You've got lots of options like /MIR so that all your directories will be mirroring.
So you wouldn't need to monitor.
Cédric.
Update available at www.ks-soft.net/download/hm447d.zip
Now you may use User Defined Variables to specify folder/file for the following test methods: Folder/File Size, File/Folder Availability, File Compare, Count Files, Text Log
Of course "Translate macro" option should be enabled
Regards
Alex
Now you may use User Defined Variables to specify folder/file for the following test methods: Folder/File Size, File/Folder Availability, File Compare, Count Files, Text Log
Of course "Translate macro" option should be enabled
Regards
Alex
Boxy,
Thanks a lot for the suggestion. In this particular case, there are over 140 remote locations and these are on dial-on-demand VPN. As such, they are not ON all the 24 hrs. Also, this operation is user initiated and on-demand. With Host-Monitor, I can enjoy customizing with the fantastic Schedules, Actions, Reports etc etc.. I can setup those 140 individual tests and a simple operator can refresh and see the results online with those wonderful 'green' and 'red' indicators. Also, various Alerts can be automated upon specific conditions.
Alex,
I have tried the Update and it works. Thanks a lot for your great support.
I want to setup a user profile and the only right the user should have is to modify/change a 'user defined variable'. I tried adding 'manage action profies' and it works. But the user gets right to all action profiles. Any way to fine tune it? Basically, this user will insert the right filename as a variable and refresh tests/folder. The user should not get any other rights.
Regards,
Arun
Thanks a lot for the suggestion. In this particular case, there are over 140 remote locations and these are on dial-on-demand VPN. As such, they are not ON all the 24 hrs. Also, this operation is user initiated and on-demand. With Host-Monitor, I can enjoy customizing with the fantastic Schedules, Actions, Reports etc etc.. I can setup those 140 individual tests and a simple operator can refresh and see the results online with those wonderful 'green' and 'red' indicators. Also, various Alerts can be automated upon specific conditions.
Alex,
I have tried the Update and it works. Thanks a lot for your great support.
I want to setup a user profile and the only right the user should have is to modify/change a 'user defined variable'. I tried adding 'manage action profies' and it works. But the user gets right to all action profiles. Any way to fine tune it? Basically, this user will insert the right filename as a variable and refresh tests/folder. The user should not get any other rights.
Regards,
Arun
Alex,
Its not a burning issue as such. Can wait. No problems.
I am in the process of automating a telnet procedure to insert this variable. Some interactive session which will just ask for username,password and just the variable. Any suggestion/advise ?
Is it possible to log the entire session including the commands, the parameters entered and the date/time ?
Highly appreciate.
Regards,
Arun
Its not a burning issue as such. Can wait. No problems.
I am in the process of automating a telnet procedure to insert this variable. Some interactive session which will just ask for username,password and just the variable. Any suggestion/advise ?
Is it possible to log the entire session including the commands, the parameters entered and the date/time ?
Highly appreciate.
Regards,
Arun
There are many telnet client utilities, some of them support scripting and may be logging http://www.snapfiles.com/shareware/netw ... elnet.htmlI am in the process of automating a telnet procedure to insert this variable. Some interactive session which will just ask for username,password and just the variable. Any suggestion/advise ?
Is it possible to log the entire session including the commands, the parameters entered and the date/time ?
Hope it will be useful
Regards
Alex
It works but you need to mark SECOND "Translate macros" option. This option is not visible when "File contains string" or "File does not contain string" alert mode is selected.
So, choose "Files are different" alert option, mark second(!) "Translate macros" option and switch back to "File contains string" alert mode
Regards
Alex
So, choose "Files are different" alert option, mark second(!) "Translate macros" option and switch back to "File contains string" alert mode
Regards
Alex
Alex,
The first option. 1st string somewhere and 2nd string somewhere else, but in the same file. Below is the actual line I am analyzing from a log file. This will be the only line in the file each time it is generated.
23/06/2004 03:02:14:6008 row(s) imported from the data file, c:\backoffice\hotcard\HC711621.HCF
In the above line, the most significant parameters for me are the strings "imported" and "HC711621.HCF <filename>". If these two are found, then the result should be good. As mentioned earlier, the filename is different each time and this will be fed through a UDV and 'imported' could be different if process failed.
Regards,
Arun
The first option. 1st string somewhere and 2nd string somewhere else, but in the same file. Below is the actual line I am analyzing from a log file. This will be the only line in the file each time it is generated.
23/06/2004 03:02:14:6008 row(s) imported from the data file, c:\backoffice\hotcard\HC711621.HCF
In the above line, the most significant parameters for me are the strings "imported" and "HC711621.HCF <filename>". If these two are found, then the result should be good. As mentioned earlier, the filename is different each time and this will be fed through a UDV and 'imported' could be different if process failed.
Regards,
Arun