 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
tedolson
Joined: 12 Sep 2012 Posts: 13 Country: United States |
|
JavaScript error |
|
Directory.syncRemoteDir('LOCAL', 'myagent', 'servname\username', 'userpassword', "F:\corcom\to\Hills\daytime", "\\servname\CashReg\Corporate\Day2stor", true, true, true,false);
This command in undocumented in the 24x7 Scheduler™ 4.4 Multi-platform Edition JavaScript Reference. I am getting the error "Invalid name. User name must be specified in domain\user format!". I am using 'servname\username', 'userpassword', just as I am when running remote batch files, which is working fine.
|
|
Wed Sep 19, 2012 2:05 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Hi,
JavaScript uses backslash as an escape character, (JAL actually too). Every litelar backslash needs to be prefixed by another backslash, for example,
 |
 |
Directory.syncRemoteDir('LOCAL', 'myagent', 'servname\\username', 'userpassword', "F:\\corcom\\to\\Hills\\daytime", "\\\\servname\\CashReg\\Corporate\\Day2stor", true, true, true, false); |
|
|
Wed Sep 19, 2012 4:34 pm |
|
 |
tedolson
Joined: 12 Sep 2012 Posts: 13 Country: United States |
|
Source and Destination seem to be the same... |
|
As you can see there is a local directory "F:\CorCom\To\Hills\DayTime" and a remote directory "\\ANT\RCFdata\CashReg\Corporate\DAY2STOR", but then during the actual sync it is showing the source and target to be the same. Here is the debug log:
2012-09-19 14:17:32,069 [Thread-15] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptRunner - Directory.syncRemoteDir(): master=LOCAL agent=HillsFW localDir=F:\CorCom\To\Hills\DayTime remoteDir=\\ANT\RCFdata\CashReg\Corporate\DAY2STOR addNew=true deleteMissing=true updateOld=true subdir=true
2012-09-19 14:17:32,085 [Thread-15] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - sourceID 0
2012-09-19 14:17:32,085 [Thread-15] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - Type 2
2012-09-19 14:17:32,085 [Thread-15] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - Log record Wed Sep 19 14:17:32 PDT 2012, null, 2, null, HillsSendFilesToStore, Agent "HillsFW" contacted.
2012-09-19 14:17:32,085 [Thread-15] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptCommand - execSyncDir(): srcDir=F:\CorCom\To\Hills\DayTime targetDir=\\ANT\RCFdata\CashReg\Corporate\DAY2STOR addNew=true deleteMissing=true updateOld=true subdir=true
2012-09-19 14:17:32,085 [Thread-15] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptCommand - SyncDir(): sync source F:\CorCom\To\Hills\DayTime with \\ANT\RCFdata\CashReg\Corporate\DAY2STOR
2012-09-19 14:17:32,085 [Thread-15] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptCommand - Start
2012-09-19 14:17:32,085 [Thread-15] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptCommand - Source File: F:\CorCom\To\Hills\DayTime\APXXXPO.DBF
2012-09-19 14:17:32,085 [Thread-15] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptCommand - Target File: F:\CorCom\To\Hills\DayTime\APXXXPO.DBF
2012-09-19 14:17:32,101 [Thread-15] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptCommand - SyncDir(): copy F:\CorCom\To\Hills\DayTime\APXXXPO.DBF to F:\CorCom\To\Hills\DayTime\APXXXPO.DBF [add new]
|
|
Wed Sep 19, 2012 5:25 pm |
|
 |
tedolson
Joined: 12 Sep 2012 Posts: 13 Country: United States |
|
Agent Log |
|
Here is the debug log from the Remote Agent:
2012-09-19 14:17:32,085 [RMI TCP Connection(67)-192.168.101.10] DEBUG com.softtreetech.jscheduler.business.agent.remote.RemoteAgentImpl - Authenticating user ANT\CORCOM
2012-09-19 14:17:32,085 [RMI TCP Connection(67)-192.168.101.10] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - authNativeUser: d:\Program Files\24x7 Agent\userchk.exe
2012-09-19 14:17:32,085 [RMI TCP Connection(67)-192.168.101.10] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptCommand - Start
2012-09-19 14:17:32,085 [RMI TCP Connection(67)-192.168.101.10] DEBUG com.softtreetech.jscheduler.business.runner.javascript.JavaScriptCommand - Dir: \\ANT\RCFdata\CashReg\Corporate\DAY2STOR
|
|
Wed Sep 19, 2012 5:56 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
That doesn't look right to me. I don't understand why it calls SyncDir for local file synchronization. Maybe it senses that \\ANT\RCFdata\CashReg\Corporate\DAY2STOR can be accessed via a share so that there is no need for sending data to the agent. I'm not sure. I'm going to submit a case to investigate that further.
|
|
Wed Sep 19, 2012 7:58 pm |
|
 |
|
|
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
|
|
|