SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Running local script on remote machine

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Running local script on remote machine
Author Message
Sotiris Georgiou



Joined: 04 Nov 2004
Posts: 18

Post Running local script on remote machine Reply with quote

Hi,

I am new to this. I am trying out 24x7 Scheduler
and I want to do the following:

I want to run a windows command script
that is stored locally on the server machine
on a remote machine.

How do I do this? Currently I have to
first place the script on the remote
machine and then run the job.

Thanks
Sotiris

Thu Nov 04, 2004 10:35 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Running local script on remote machine Reply with quote

Solution 1.
Create a JAL script job that dynamically transfers and executes your batch file
For example,
computer A runs 24x7 Scheduler
computer B runs 24x7 Remote Agent
On A setup a remote agent profile (Tools/Remote Agents menu). Let's say the profile name is "AgentB"
On A schedule a local job Job1 of program type with [no schedule] for the schedule and the following command line c:\temp\my_batch.bat
On A schedule a local job Job2 (any schedule) of JAL script type with the following script

//////////////////
FileTransferEx "ToRemote", "AgentB", "c:\\scripts\\my_batch.bat", "c:\\temp"
JobRemoteRun "Job1", "AgentB"
//////////////////

Solution 2: (a much more simple way to do the same thing)
On A schedule a remote job of JAL or VBScript script type, Select AgentB as a host.
In the job script implement the logic of your current batch file.

Note that in the second solution, no batch file is needed and everything is deployed automatically. Also just 1 job is required for the same processing.

: Hi,

: I am new to this. I am trying out 24x7 Scheduler
: and I want to do the following: I want to run a windows command script
: that is stored locally on the server machine
: on a remote machine.

: How do I do this? Currently I have to
: first place the script on the remote
: machine and then run the job.

: Thanks
: Sotiris

Thu Nov 04, 2004 12:44 pm View user's profile Send private message
Sotiris Georgiou



Joined: 04 Nov 2004
Posts: 18

Post Re: Running local script on remote machine Reply with quote

Thanks!

It works. I used method 2.

Sotiris

: Solution 1.
: Create a JAL script job that dynamically transfers and executes your batch
: file
: For example,
: computer A runs 24x7 Scheduler
: computer B runs 24x7 Remote Agent
: On A setup a remote agent profile (Tools/Remote Agents menu). Let's say the
: profile name is "AgentB"
: On A schedule a local job Job1 of program type with [no schedule] for the
: schedule and the following command line c:\temp\my_batch.bat
: On A schedule a local job Job2 (any schedule) of JAL script type with the
: following script

: //////////////////
: FileTransferEx "ToRemote", "AgentB",
: "c:\\scripts\\my_batch.bat", "c:\\temp"
: JobRemoteRun "Job1", "AgentB"
: //////////////////

: Solution 2: (a much more simple way to do the same thing)
: On A schedule a remote job of JAL or VBScript script type, Select AgentB as a
: host.
: In the job script implement the logic of your current batch file.

: Note that in the second solution, no batch file is needed and everything is
: deployed automatically. Also just 1 job is required for the same
: processing.

Thu Nov 04, 2004 1:45 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.