SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
backup remote agents
Goto page Previous  1, 2
 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
backup remote agents
Author Message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
Don't try connecting to the RA server as you connect to an agent. It is not a substitute for an agent, it is a different piece of the software. To work with RA servers you need to write little JAL scripts to establish the connection and tell the server what to do. Please see 24x7 Linux & UNIX RA Server Reference manual for details. Same commands work on Windows systems, with same parameters and virtually the same behavior.

An example script copied from RARunAndWait topic is below

RAConnect "123.45.789.01", 1096, "user", "password"
// move remote files
Dim process_id, number
Dim output, string
RARunAndWait "mv /trade/ftp/*.dat /trade/backup", 0, process_id, output
// now, files from the remote directory are backed, let's copy new file
RARunAndWait "do_ftp", 0, process_id, output
// and finally start the load process
RARun "do_load", process_id
// close connection
RADisconnect


Note that the local "output" variable contains the standard and error output of the remote process and the "process_id" variable refers to the system id of the remote process.

To test this first time try something really simple,

RAConnect "myserver", 1096, "user", "password"
Dim process_id, number
RARun "notepad.exe", process_id
RADisconnect
Sun Nov 04, 2007 6:12 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Might be username and pwd related? When I try to use the raconnect statement in a jal script, I don't have a uname and pwd to specify so it fails. How do I specify a username and password in the remote agent or is it windows auth?
Sun Nov 04, 2007 6:17 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
oic, yes it is windows auth.
Sun Nov 04, 2007 6:19 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
Yes, it is either a local Windows system user or a valid network user. For local users, enter their names in scripts as .\\user, for network users, enter them as domain\\user. The user authentication is performed by the Windows server. The process is also created in the context of the authenticated user account, sort of a remote session.
Sun Nov 04, 2007 6:25 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Is there any way to cloak the password in the JAL script? It shows up in clear text
Sun Nov 04, 2007 6:38 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Or use current logged on credentials?
Sun Nov 04, 2007 6:40 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
1. you can password protects the job definition using File/Protect Job menu. Use a different password for the job.
2. Use a variable instead of a hard-coded password, and populate that variable in run-time getting the required password value from some secure place.
Sun Nov 04, 2007 6:43 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
You cannot use "current user" because for every connection, the server creates a separate remote session specifically for the connected user.
Sun Nov 04, 2007 6:52 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
Goto page Previous  1, 2
Page 2 of 2

 
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.