Summary
Virtual Visit: Data Transfer troubleshootingDetails
Personnel: Douglas Alden
-
Switched from using lftp from the RWP WPC to the BFS rugged computer for file transfer to using a batch file called from Task Scheduler. The batch file uses WinSCP and a WinSCP script (syncRWP_BFS_WinSCP_script.txt) on the BFS rugged computer to pull files from the RWP WPC. The batch file and WinSCP script can be found in D:\Data\Software\WinSCP\scripts\. Sessions are logged to D:\Data\Software\WinSCP\Logs\
Old log files should be cleared on a monthly basis. - syncRWP_BFS.bat
@echo off
REM === Set timestamp for log file naming ===
set TIMESTAMP=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%_%TIME:~0,2%%TIME:~3,2%
REM === Set the log directory ===
set LOGDIR=D:\Software\WinSCP\Logs
set LOGFILE=D:\Software\WinSCP\Logs\LastTaskRun_%TIMESTAMP%.logREM === Redirect all output (stdout and stderr) to the log file ===
(
echo === Task Started at %DATE% %TIME% ===
REM Run WinSCP with script
"C:\Program Files (x86)\WinSCP\winscp.com" ^
/log="D:\Software\WinSCP\Logs\WinSCP_%TIMESTAMP%.log" ^
/ini=nul ^
/script="D:\Software\WinSCP\scripts\syncRWP_BFS_WinSCP_script.txt"REM === Delete .log files older than 30 days ===
forfiles /p "%LOGDIR%" /s /m *.log /d -30 /c "cmd /c del @path"echo === Task Completed at %DATE% %TIME% ===
) > "%LOGFILE%" 2>&1
- Installed Eaton IPP on rugged computer. Set power source to cw3e-xbs-wpc/192.168.13.102. Rugged computer will shutdown after 60 seconds. WPC is set to call a script to shutdown after 90 seconds. The script insures the profiler is properly shutdown before the power is turned off.
- I noticed some issues with lftp connections to FileZilla Server. This could have been due to a misconfig of the RV55 security settings. Changed Security > Port Filtering - Inbound from 51000-51002 to 51000-51010.
- Rebooted Windows computer to install updates.