Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


packman73
2014-01-06T20:52:45Z
We are trying to setup a job that will reboot several servers, doesn't appear there is a way to do this in a group, just individually. If anyone knows how to do it for a list of servers, that would be most excellent.

Secondly, we are setting up a ping task for each of the servers in the list, we would like this to be based off a list as well, not individual jobs.

Finally, if the server cannot be pinged, we need to get a notification. So far, I'm not able to determine what the variable is that can be used for the e-mail notification. When I use hostname, it returns the hostname of the VC server, not the host in which the job is being run against.

Any help would be greatly appreciated.
Sponsor
Forum information
Support
2014-01-07T08:09:35Z
Originally Posted by: packman73 

We are trying to setup a job that will reboot several servers, doesn't appear there is a way to do this in a group, just individually. If anyone knows how to do it for a list of servers, that would be most excellent.

Secondly, we are setting up a ping task for each of the servers in the list, we would like this to be based off a list as well, not individual jobs.

Finally, if the server cannot be pinged, we need to get a notification. So far, I'm not able to determine what the variable is that can be used for the e-mail notification. When I use hostname, it returns the hostname of the VC server, not the host in which the job is being run against.

Any help would be greatly appreciated.



You should take a look at the loop tutorial here:

http://www.visualcron.com/Tutorials.aspx 

Maybe you can read computer names from a file and then loop that list?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
packman73
2014-01-07T14:08:44Z
I've been through that tutorial, and no dice. What I've done is setup a list in a file, read it in, and then attempted to reboot, it fails. Not sure why. If there is 1 item in the file, it works, more than one, it doesn't work. Must be an issue with the loop functionality.
Support
2014-01-07T14:10:35Z
Originally Posted by: packman73 

I've been through that tutorial, and no dice. What I've done is setup a list in a file, read it in, and then attempted to reboot, it fails. Not sure why. If there is 1 item in the file, it works, more than one, it doesn't work. Must be an issue with the loop functionality.



You should test your values first. Easiest way to test is to use the Popup Task so that the values in each loop are presented to you in a popup. This way you can determine if each value is correct. Another way is to write the values to a file using the File write Task.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
packman73
2014-01-07T16:43:18Z
Support
2014-01-07T17:11:39Z
Instead of looping your Task you loop File write or popup Task and use the same value there to confirm the values.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
packman73
2014-01-07T19:00:04Z
My apologies, but I'm not following what you are describing.
Support
2014-01-08T07:20:55Z
Have you succeeded in creating a loop today (even though it does not work for you? Same way you create a loop today with the Restart Task you instead create a loop with File write Task. The reason is simply to debug the values of each iteration in the loop.

The video tutorial shows how to create a simple loop looping through values. Please let me know exactly which step of creating the loop that does not work for you.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
packman73
2014-01-08T15:45:54Z
Yes, we are able to create a loop, the issue is that the values in the file don't appear as though they are being read correctly. Is there any way to export the configuration for this job to txt?
Support
2014-01-08T15:47:44Z
The problem is probably not in the configuration.

If you can create a loop you can create the same loop with a File write Task and write the loop value you use to a file. This way you can verify what value is used in each loop iteration.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Users browsing this topic
Scroll to Top