FTP Scripting Manual
|
|
|
- Shanna Briggs
- 10 years ago
- Views:
Transcription
1 FTP Scripting Manual
2 Table of Contents Introduction... iv 1. Basic syntax Commenting your script Script commands Predefined Status flags and constants Strings, numbers, variables and lists Conditional execution Loops List manipulation loops Error checking Adding execution delays Forced exit from loops Script termination Working with string and numeric variables Setting and updating variables Printing variables Incrementing and decrementing numeric variables Converting strings to uppercase or lowercase Modifying string contents Comparing strings Working with lists of files and folders Creating a list Accessing items in a list Appending to lists Comparing lists File transfer commands Connecting to remote hosts Local and remote paths Obtaining folder listings Transferring files and folders Modification time for remote file Dealing with duplicate files Passive mode transfers ASCII and binary transfer types Non RFC959 compliant FTP servers File system commands Renaming files and folders Deleting files and folders Creating folders Executing custom remote FTP commands Executing local programs Compressing and uncompressing local files and folders Copying and moving local files and folders ii
3 FTP Scripting Manual 6. Recursive File Transfers Comparing Files and Folders Synchronizing Files and Folders Backup Files and Folders Reading and writing local files Opening and closing local files Reading lines Writing lines notification Creating messages Multi line messages and attachments Sending OpenPGP Encryption and Decryption OpenPGP automation concepts Generating OpenPGP key pairs Keyrings and key management Encrypting files with OpenPGP Decrypting OpenPGP encrypted files Error reporting Setting program exit codes Writing out error files notifications Working with timestamps Generating timestamps Formatted Timestamps Using timestamps Accessing system information Reading environmental variables Getting the local computer name Getting username running the script Reading windows registry values Command line script parameters Running a script from the command line Specifying log files Passing Environmental variables Protecting passwords and other strings Index iii
4 Introduction FTP scripts enable the automation of file transfers and many other file processing activities. The scripting language is simple yet expressive and provides for error checking, conditional execution, looping, list handling, wildcard matching, and variable manipulation. Secure file transfers using both FTPS (SSL/TLS) and SFTP (SSH2) are supported in addition to regular FTP. Execution status can be communicated through exit codes, log files, error files, or even by sending a status from within the script. Scripts may be executed from the command line, scheduled as one-time/recurring tasks, triggered when the contents of a monitored folder changes, or called from other scripts. These scripts may also be executed by Sysax Multi Server in response to server connection events. This document contains the scripting language guide, a cookbook of frequently scripted operations, and sample FTP scripts. You may also contact our support team by filing a support ticket online at for questions and help on writing FTP scripts. iv
5 1 Basic syntax 1.1. Commenting your script Script commands Predefined Status flags and constants Strings, numbers, variables and lists Conditional execution Loops List manipulation loops Error checking Adding execution delays Forced exit from loops Script termination
6 Basic syntax 1.1. Commenting your script Comments may be inserted into FTP scripts by preceding it with the "#" character. All text after "#" is ignored till the end of the current line. Exhibit 1.1. Example for using the command for end #this is a comment endscript; #this is comment 1.2. Script commands All predefined script commands must be terminated with a semicolon. Parenthesis and commas between parameters are optional. Parenthesis are also optional for commands with no arguments. Exhibit 1.2. Examples for using the connect and disconnect commands for ftp ftpconnect " ", 21, "anonymous", "[email protected]"; #command without parenthesis ftpconnect " " 21 "anonymous" "[email protected]"; #command without parenthesis and commas ftpconnect(" ", 21, "anonymous", "[email protected]"); #command with parenthesis and commas ftpdisconnect(); #command with no arguments with parenthesis ftpdisconnect; #command with no arguments without parenthesis 2
7 Basic syntax 1.3. Predefined Status flags and constants The ftpresult predefined status flag contains the result of commands that begin with the phrase ftp. It is set to the predefined constant success if the command completed successfully. The mailresult predefined status flag contains the result of commands that begin with mail. It is set to the predefined constant success if the command completed successfully. The fileresult predefined status flag contains the result of commands that begin with file. It is set to the predefined constant success if the command completed successfully. Other predefined constants are true and false that denote the corresponding conditions Strings, numbers, variables and lists A string is any group of characters enclosed in quotes. Strings may also contain wildcards such as * and?. A number is any value between 0 and 2^32. A variable is represented by a ~ character followed by alphanumeric or underscore characters. A variable may contain either string or numerical values and will be treated as a string or number depending on the context in which it is used. A variable is automatically created and initialized to an empty string at the point of first use. Protected variables may be used to hide passwords and other strings. The contents of a protected variable will be automatically decrypted when the variable is passed to the ftpconnect* group of commands, the certload command or the pkeyload command. In all other cases, including printing of the variable, only the encrypted value is made available. The encrypted string for a protected variable should be generated from the command line using the -protectstring option. Exhibit 1.3. Examples for using the strings, numbers, and variables in script "this is a string" #string 45 #number ~my_variable #variable A list is represented by character followed by alphanumeric or underscore characters. Lists represent the contents of a folder and can contain zero or more items. Each item represents a specific file or folder. Lists can be set using the ftpgetlist command and each item in a list can be accessed using the foreach loop. Two lists can be compared using the listcompare command. The contents of an entire list or a single list item can be appended to another list using the listappend command. Each list also contains the following property: 3
8 Basic syntax.count number of items contained in the list Each list item is represented by a $ character followed by alphanumeric or underscore characters and contains the following properties:.name file or folder name string.isfolder flag set to false for file and true for folder.size size of the file in bytes.modtime modification time string in YYYYMMDDhhmmss format (Y=year, M=month, D=day, h=hour, m=minute, s=second) Exhibit 1.4. Example for using the lists in #count property of a list $list_item #list item $list_item.size #size property of list item 1.5. Conditional execution A conditional statement consists of the keyword if followed by the test condition and a statement block. The statement block is mandatory. An else keyword may also be used to specify an alternate condition. String comparison operators are: eq ne lt le gt ge (equality) (inequality) (less than) (less than or equal to) (greater than) (greater than or equal to) Numeric comparison operators are: 4
9 Basic syntax == (equality)!= (inequality) < (less than) <= (less than or equal to) > (greater than) >= (greater than or equal to) Arguments are automatically treated as strings or numbers based on the comparison operator that is used. Strings may also contain wildcards such as *. Exhibit 1.5. Syntax of conditional execution statement if <test condition> begin end if <test condition> begin end else begin end Exhibit 1.6. Examples for using the conditional execution statement if ~numvar < 5 begin end if ~strvar eq "*.txt" begin end else begin end 5
10 Basic syntax 1.6. Loops A loop statement consists of the keyword loop, followed by an integer number or a variable, followed by a statement block. A statement block begins with the begin keyword and ends with the end keyword. The statement block is mandatory. Exhibit 1.7. Syntax of loop statement loop <integer number> begin end Exhibit 1.8. Examples for using the loop statement loop 25 begin end loop ~my_variable begin end 1.7. List manipulation loops A list based loop statement consists of the keyword foreach followed by a list item name, the keyword in, the list name, and a statement block. The statement block is mandatory. Exhibit 1.9. Syntax of list manipulation loop statement foreach <list item name> in <list name> begin end 6
11 Basic syntax The list is filled using the ftpgetlist command and the foreach loop is used to access each file or folder item on the list. Exhibit Example for using the list manipulation loop statement foreach $list_item begin print "item name is ", $list_item.name, " and size is ", $list_item.size; end 1.8. Error checking The ftpresult, mailresult, and fileresult predefined status flags can be used to determine the result of the last executed command. The flags will be set to success if the command completed successfully. Errors may be reported by setting a program exit code, printing an error message, writing out an error file, or even sending out an message. Exhibit Examples for using some commands for error checking ftpconnect " ", 21, "anon", "[email protected]"; if ftpresult eq success begin end else begin end mailcreate "My name", "[email protected]", "Test mail", "This is a test mail"; if mailresult eq success begin end else begin end fileopen read, "myfile.txt"; if fileresult eq success begin end else begin end 7
12 Basic syntax 1.9. Adding execution delays Script execution can be temporarily paused using the waitsecs command. The time to wait is specified in seconds. Exhibit Syntax of command for execution delay waitsecs <number of seconds>; Exhibit Example for using the command for execution delay waitsecs 30; #pause script execution for 30 seconds Forced exit from loops The exitloop command can be used to immediately exit from a loop. If this command is called from nested loops, the innermost loop is exited. Exhibit Syntax of command for exit from loops exitloop; Exhibit Example for using the command for exit from loops loop 100 begin end ftpconnect "ftp.ftpsite.com", 21, "ftp", "[email protected]"; if success eq ftpresult begin exitloop; #exit loop immediately if connected end 8
13 Basic syntax Script termination A script will stop execution after the last command in the file is executed. The script can be terminated at any other execution point by calling the endscript command. Exhibit Example for how the script can be terminated at any other execution point if ftpresult ne success begin end endscript; 9
14 2 Working with string and numeric variables 2.1. Setting and updating variables Printing variables Incrementing and decrementing numeric variables Converting strings to uppercase or lowercase Modifying string contents Comparing strings
15 Working with string and numeric variables 2.1. Setting and updating variables A variable is automatically created and set to an empty string when first used. The setvar command or the strprint command can be used to set or update the values stored in a variable. A variable holds both numbers and strings and can be treated as a number or string based on the context. The setprotectedvar command is used to hide passwords and other strings. The contents of a protected variable will be automatically decrypted when the variable is passed to the ftpconnect* group of commands, the certload commnd or the pkeyload command. In all other cases, only the encrypted value is made available. The encrypted string for a protected variable should be generated from the command line using the -protectstring option. Exhibit 2.1. Syntax of commands for setting and updating variables setvar <variable>, <string or number>; strprint <variable>, <sequence of comma separated strings, numbers, and variables>; setprotectedvar <variable>, <encrypted string generated from the command line using the -protectstring option>; Exhibit 2.2. Examples for using the commands for setting and updating variables setvar ~my_number, 5; setvar ~my_string, "this is a string"; strprint ~my_value, "the value is ", 5, " bytes"; setprotectedvar ~my_value, ":#!FEC016d09ab332ff7edfdbe90dd212c8b0e37dd033bc6cd7ad3d31f5a4075e94d1f1c0ef8 ZGCM8g5Z08ASGrrdPLDDux2QA/6wtec7/yUg1mmVUAdLeWE="; 2.2. Printing variables The print command is used to print variables, strings, and numbers to the log file. 11
16 Working with string and numeric variables Exhibit 2.3. Syntax of command for printing variables print <variable>, <sequence of comma separated strings, numbers, and variables>; Exhibit 2.4. Example for using the command for printing variables print ~my_value, "the folder contains ", 17, " files with a combined size of ", ~my_size, " Megabytes"; 2.3. Incrementing and decrementing numeric variables The increment command and decrement commands can be used to increment or decrement a numeric variable by 1. Exhibit 2.5. Syntax of commands for incrementing and decrementing numeric variables increment <variable>; decrement <variable>; Exhibit 2.6. Example for using the commands for incrementing and decrementing variables setvar ~my_num, 4; increment ~my_num; #value of ~my_num is now 5 decrement ~my_num; #value of ~my_num is now Converting strings to uppercase or lowercase The strupper and strlower commands are used to string variables into upper or lower case. 12
17 Working with string and numeric variables Exhibit 2.7. Syntax of commands for converting strings to uppercase or lowercase strupper <variable>; strlower <variable>; Exhibit 2.8. Example for using the commands for converting strings to uppercase or lowercase setvar ~my_var, "NaMe.Txt"; strupper ~my_var; #convert to uppercase strlower ~my_var; # convert to lowercase 2.5. Modifying string contents The strslice command can be used to extract part of a string. The left and right keywords are used to specify the start direction for the extracted string slice. The offset specifies the number of characters to skip from the start direction. The character count specifies the number of characters to extract. A value of 0 for the character count extracts the entire remaining portion of the string. The extracted string replaces the original string contained in the variable. Exhibit 2.9. Syntax of command for modifying string contents strslice <variable>, <keyword: left, right>, <offset from start direction>, <character count>; 13
18 Working with string and numeric variables Exhibit Examples for using the command for modifying string contents setvar ~my_var, "my_string_value"; strslice ~my_var, left, 4, 0; #start from left, skip 4 chars and extract rest of the string. ~my_var contains "tring_value" strslice ~my_var, left, 0, 4; #start from left, extract 4 chars. ~my_var contains "my_s" strslice ~my_var, right, 4, 0; #start from right, skip 4 chars and extract rest of the string. ~my_var contains "my_string_v" strslice ~my_var, right, 0, 5; #start from right, extract 5 chars. ~my_var contains "value" The regexreplace command replaces parts of a string with another string based on a regular expression pattern. This is similar to the substitution operation in Perl. The regex pattern specifies the regular expression pattern to search for in the original string. The replacement text specifies the string to substitute when a match is found. The match options specify other conditions that affect a match. The available match options are: i g perform a case insensitive match match all occurances of a pattern Note that for the regular expression pattern string, a \ character must be preceeded by another \. Exhibit Syntax of command for modifying string contents regexreplace <variable>, <regex pattern string>, <replacement text string>, <match options>; 14
19 Working with string and numeric variables Exhibit Examples for using the command for modifying string contents setvar ~my_var, "xyz_file_050502out.txt"; regexreplace ~my_var, "[0-9]+", "", "ig"; #remove all numbers in string. ~my_var contains "xyz_file_out.txt" regexreplace ~my_var, "[0-9]+", "00000", "ig"; #replace numbers in string with ~my_var contains "xyz_file_00000out.txt" The replacement text can also contain backreferences. Backreferences are specified using $1 for the subexpression matched in the first parenthesis, $2 for the subexpression matched in the second parenthesis and so on. Exhibit Examples for using command for modifying string contents setvar ~my_var, "dat_file.txt"; regexreplace ~my_var, "([_a-za-z0-9]+)\\.[_a-za-z0-9]+", "$1.log", "ig"; #rename extension from txt to log. ~my_var contains "dat_file.log"; regexreplace ~my_var, "([_0-9a-zA-Z]+)[.][_0-9a-zA-Z]+", "$1_ txt", "ig"; #append a timestamp. ~my_var contains "dat_file_ txt 2.6. Comparing strings Strings can be directly compared using the string comparison operators. Additionally, strings can also be matched using wildcards such as *, and?. This is known as wildcard matching or pattern matching. * matches 0 or more characters while? matches exactly one character. 15
20 Working with string and numeric variables Exhibit Example for how to comparing strings if "index.txt" eq ~my_var begin end if "*.txt" eq ~my_var begin end The ftpwildcardmatch command can be used to perform wildcard matching. Additionally, this command allows case insensitive pattern matching when i is passed as a match option. If the strings match, the predefined flag ftpresult is set to the predefined constant success. Exhibit Syntax of command for performing wildcard matching ftpwildcardmatch <string to match>, <wildcard pattern string>, <match options>; Exhibit Example for using the command for wildcard matching ftpwildcardmatch ~my_var, "*.txt", "i"; #case insensitive wildcard match if success eq ftpresult begin end The ftpregexmatch command can be used to perform matching using regular expressions similar to that used in Perl. This command allows case insensitive regular expression matching when i is passed as a match option. If the strings match, the predefined flag ftpresult is set to the predefined constant success. Note that for the regular expression pattern string, a \ character must be preceeded by another \. Exhibit Syntax of another string matching command ftpregexmatch <string to match>, <regex pattern string>, <match options>; 16
21 Working with string and numeric variables Exhibit Example for using the command string matching ftpregexmatch ~my_var, "[a-za-z0-9]+\\.log", ""; #case sensitive regex match if success eq ftpresult begin end 17
22 3 Working with lists of files and folders 3.1. Creating a list Accessing items in a list Appending to lists Comparing lists
23 Working with lists of files and folders 3.1. Creating a list The contents of a folder can be listed and stored into a user specified list name. Each item in the list can then be individually accessed. The ftpgetlist command can be used to obtain a listing of the current working path. The predefined keywords local or remote are used to specify either the local or remote system. The recurse level determines the number of levels of subfolders that need to be listed. If no recurse level is specified, it is set to 1 by default and lists only the top level files and folders in the current working path. Setting the recurse level to 0 will create a recursive listing of all subfolders in the current working path. A user specified list name is used to store the listing result. And the.count parameter is used to get the number of items in a list. And the The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit 3.1. Syntax of command for obtaining folder listings ftpgetlist <keywords: local, remote>, <list name>, <recurse level>, <.count>; Exhibit 3.2. Example for using the command for folder listing ftpgetlist #get the listing of the current local working path ftpgetlist #get the listing of the current remote working path ftpgetlist 0; #get recursive listing of the current remote working path ftpgetlist 3; #get up to 3 levels of listings of the current remote working path 3.2. Accessing items in a list A list based loop statement consists of the keyword foreach followed by a list item name, the keyword in, the list name, and a statement block. The statement block is mandatory. 19
24 Working with lists of files and folders Exhibit 3.3. Syntax of list manipulation loop statement foreach <list item name> in <list name> begin end The list is filled using the ftpgetlist command and the foreach loop is used to access each file or folder item on the list. Exhibit 3.4. Example for using the list manipulation loop statement foreach $list_item begin print "item name is ", $list_item.name, " and size is ", $list_item.size; end 3.3. Appending to lists The listappend command can be used to append a single list item or an entire list to an existing list. Exhibit 3.5. Syntax of command for appending list listappend <targetlist>, <list item or list to be appended> Exhibit 3.6. Examples of command for appending single list item or list $myitem; #append a list item to a #append a list to another list 20
25 Working with lists of files and folders 3.4. Comparing lists A Folders can be compared between a local and remote computer, two remote computers, or even two local folders by first obtaining a listing using the ftpgetlist command and then using the listcompare command to compare the two lists. Comparisons can be performed based on size or date. The four output lists contain items in the first list items that are not present in the second list, identical to those in the second list, newer or larger compared to the second list, and older or smaller compared to the second list. Exhibit 3.7. Syntax of command for comparing folder listings listcompare <keywords: bydate, bysize>, <list 1>, <list 2>, <items only in list 1>, <identical items>, <newer or larger items>, <older or smaller items>; Exhibit 3.8. Example of command for comparing folder listings
26 4 File transfer commands 4.1. Connecting to remote hosts Local and remote paths Obtaining folder listings Transferring files and folders Modification time for remote file Dealing with duplicate files Passive mode transfers ASCII and binary transfer types Non RFC959 compliant FTP servers
27 File transfer commands 4.1. Connecting to remote hosts Connections to a remote FTP server are established using the ftpconnect command. The IP address of the remote server must be specified as the address string. The port number indicates the port where FTP connections are accepted by the remote server. The default port number for regular FTP connections is 21. The username and password strings are required to log into a specific user account. If the FTP server allows anonymous access, the username should be ftp and the password should be the user's address. Some legacy FTP servers may also require an optional account string. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Passwords and other strings can be protected using the setprotectedvar command. The contents of a protected variable will be automatically decrypted when the variable is passed to the ftpconnect* group of commands, the certload command, or the pkeyload command. In all other cases, including printing of the variable, only the encrypted value is made available. The encrypted string for a protected variable should be generated from the command line using the -protectstring option. Exhibit 4.1. Syntax of connect command for ftp ftpconnect <address string>, <port number>, <username>, <password> [, optional: <account>]; Secure connections using the SSL protocol (also known as FTPS) are established using the ftpconnectssl command. The ftpconnectssli command should be used if an implicit FTPS connection is required. The ftpconnectsslc command can be used if only the control connection needs to be encrypted using SSL. Exhibit 4.2. Syntax of connect command for ftps ftpconnectssl <address string>, <port number>, <username>, <password> [, optional: <account>]; ftpconnectssli <address string>, <port number>, <username>, <password> [, optional: <account>]; ftpconnectsslc <address string>, <port number>, <username>, <password> [, optional: <account>]; Client side SSL certificates may be used for authentication of a client to the remote server. The certload command enables a client side certificate to be loaded. The certificate must be loaded before establishing a connection using ftpconnectssl and must be in the pem format. 23
28 File transfer commands Exhibit 4.3. Syntax of certificate loading command certload <certificate file>, <private key file> [, optional: <passphrase>]; Secure connections using the SSH protocol (also known as SFTP) are established using the ftpconnectssh command. The default port number for ssh connections is 22. Exhibit 4.4. Syntax of connect command for sftp ftpconnectssh <address string>, <port number>, <username>, <password> [, optional: <account>]; Public key authentication for SSH connections allows clients to use a private key for authentication instead of a password. The pkeyload command enables a private key to be loaded to perform SSH public key authentication. The key must be loaded before establishing a connection using ftpconnectssh and must be in the pem format. Exhibit 4.5. Syntax of privatekey loading command pkeyload <private key file> [, optional: <passphrase>]; If it is necessary to connect using a http proxy server, the proxyhttp command should be called before establishing a connection. Exhibit 4.6. Syntax of command for using http proxy server to connect proxyhttp <proxy address>, <proxy port> [, optional: <proxy username>, <proxy password>]; The ftpdisconnect command is used to close a connection that was established using any of the above commands. Exhibit 4.7. Syntax of disconnect command for ftp ftpdisconnect; 24
29 File transfer commands Exhibit 4.8. Example for commands for connecting to remote hosts ftpconnect "ftp.mysite.com", 21, "username", "password"; #connect to a non-secure ftp server if success eq ftpresult begin end certload "c:\\certs\\mycert.pem", "c:\\keys\\myprivkey.pem", "keypass"; ftpconnectssl "ftp.securesite.com", 21, "user", "pass"; # connect to an SSL (FTPS) based secure server using client side certificate pkeyload "c:\\keys\\privkey.pem", "keypass"; ftpconnectssh "ftp.securesite.com", 22, "", ""; #connect to an SSH (SFTP) based secure server using public key auth setprotectedvar ~mypassword, ":#!FEC016d09ab332ff7edfdbe90dd212c8b0e37dd033bc6cd7ad3d31f5a4075e94d1f1c0ef8 ZGCM8g5Z08ASGrrdPLDDux2QA/6wtec7/yUg1mmVUAdLeWE="; ftpconnect "ftp.mysite.com", 21, "username", ~mypassword; #connect to server - here, a protected variable is passed in as the password ftpdisconnect; #disconnect from the remote ftp server 4.2. Local and remote paths The ftpsetpath command is used to set the current working path for the local and remote systems. The predefined keywords local or remote are used to specify either the local or remote system. The path string contains the new path to be set. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. 25
30 File transfer commands Exhibit 4.9. Syntax of command for setting local and remote paths ftpsetpath <keywords: local, remote>, <path string>; Exhibit Example for using the command for setting path ftpsetpath local, "c:\\ftptemp"; #set the current local working path ftpsetpath remote, "/home/ftpin"; "set the current remote working path 4.3. Obtaining folder listings The contents of a folder can be listed and stored into a user specified list name. Each item in the list can then be individually accessed. The ftpgetlist command can be used to obtain a listing of the current working path. The predefined keywords local or remote are used to specify either the local or remote system. The recurse level determines the number of levels of subfolders that need to be listed. If no recurse level is specified, it is set to 1 by default and lists only the top level files and folders in the current working path. Setting the recurse level to 0 will create a recursive listing of all subfolders in the current working path. A user specified list name is used to store the listing result. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for obtaining folder listings ftpgetlist <keywords: local, remote>, <list name>, <recurse level>; 26
31 File transfer commands Exhibit Example for using the command for folder listing ftpgetlist #get the listing of the current local working path ftpgetlist #get the listing of the current remote working path ftpgetlist 0; #get recursive listing of the current remote working path ftpgetlist 3; #get up to 3 levels of listings of the current remote working path 4.4. Transferring files and folders The ftpdownload command can be used to download either an individual file or an entire folder tree. The files and folders are downloaded to the current local working path that was set using the ftpsetpath command. The predefined keywords file and folder are used to specify either a file or a folder. An optional local name string can be provided to save the downloaded item to a new name. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for download files and folders ftpdownload <keywords: file, folder>, <remote name string> [, optional: <local name string>]; Exhibit Examples for using the command for download files and folders ftpdownload file, "text.dat"; #download file ftpdownload file, "text.dat", "text_0503.dat"; #download file and save as text_0503.dat ftpdownload folder, "www"; #download entire folder tree The ftpupload command can be used to upload either an individual file or an entire folder tree. The files and folders are uploaded to the current remote working path that was set using the ftpsetpath command. The predefined 27
32 File transfer commands keywords file and folder are used to specify either a file or a folder. An optional remote name string can be provided to save the uploaded item to a new name. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for upload files and folders ftpupload <keywords: file, folder>, <local name string> [, optional: <remote name string>]; Exhibit Examples for using the command for upload files and folders ftpupload file, "out_text.dat"; #upload file ftpupload file, "out_text.dat", "out_text_0503.dat"; #upload file, saving it as out_text_0503.dat ftpupload folder, "www"; #upload entire folder tree 4.5. Modification time for remote file The ftpmodtime command can be used to get the modification time for remote file. Exhibit Syntax of command for Modification time for remote file ftpmodtime <filename>, <user variable>; Exhibit Examples for using the command for Modification time for remote file ftpmodtime "remotefile.txt", ~remotefiletime; #get the modification time for remote file remotefile.txt 28
33 File transfer commands 4.6. Dealing with duplicate files During a download or an upload, if a file with the same name already exists in the destination path, the setduperules command can be used to specify a set of rules to compare the files by size or date and then choose to skip, overwrite, resume, or rename the file. The predefined keywords bysize and bydate are used to compare the files either by size or by date. The predefined keywords skip, overwrite, resume, and rename are used to specify the type of action to perform. An action is specified for each of the possible three cases - smaller/older, same size/date, and larger/newer. If the rename option is chosen for any of the three cases, an extension string to be used to rename the file can be optionally provided. The default rename extension is.fbak. Exhibit Syntax of command for dealing with duplicate files setduperules <keywords: bysize, bydate>, <action if smaller/older>, <action if same size/date>, <action if larger/newer> [, optional: <rename ext string>]; Exhibit Examples for using the command for dealing with duplicate files setduperules bysize, resume, skip, skip; #resume if smaller, skip if same size or larger setduperules bydate, overwrite, skip, skip; #owerwrite if older, skip if same date or newer setduperules bysize, rename, skip, rename, ".0503"; #skip if same size, rename with ext ".0503" if size is different 4.7. Passive mode transfers Files may be transferred using server initiated (PORT) or client initiated (PASV) data connections. The enablepasv command enables PASV data connections while the disablepasv command enables PORT data connections. These commands do not apply to SSH based SFTP file transfers. 29
34 File transfer commands Exhibit Syntax of commands for enabling PASV and PORT data connections enablepasv; disablepasv; Exhibit Example for using the commands for enabling PASV and PORT data connections enablepasv; #enable PASV data connections disablepasv; #enable PORT data connections 4.8. ASCII and binary transfer types The settransfertype command is used to set the appropriate transfer type for the file being transferred. The ASCII transfer type is used to transfer text while the binary transfer type is used to transfer images. The auto transfer type tries to detect the file type based on its extension and performs either ASCII or binary transfer. The predefined keywords ascii, binary, and auto are used to select the desired transfer type. Exhibit Syntax of command for setting ASCII and binary transfer types settransfertype <keywords: ascii, binary, auto>; Exhibit Example for using the command for setting ASCII and binary transfer types settransfertype binary; #set transfer type to binary settransfertype ascii; #set transfer type to ascii 30
35 File transfer commands 4.9. Non RFC959 compliant FTP servers Some legacy FTP servers produce folder content listings in non-standard formats. In these cases, the setnlst command can be used to provide a name-only listing. When a listing is obtained in this manner, only the.name property of each list item is available for use in a foreach loop. Name-only listings may be turned off using the unsetnlst command. Exhibit Syntax of commands setnlst and unsetnlast setnlst; unsetnlst; Exhibit Example for using the setnlst and unsetnlast commands setnlst; #enable name-only listing unsetnlst; #disable name-only listing 31
36 5 File system commands 5.1. Renaming files and folders Deleting files and folders Creating folders Executing custom remote FTP commands Executing local programs Compressing and uncompressing local files and folders Copying and moving local files and folders
37 File system commands 5.1. Renaming files and folders Files and folders can be renamed using the ftprename command. The predefined keywords local and remote are used to apply this command on either the local or remote computer. Both the original name string and the new name string should be specified. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit 5.1. Syntax of command for renaming files and folders ftprename <keywords: local, remote>, <original name string>, <new name string>; Exhibit 5.2. Examples for using the command for renaming files and folders ftprename local, "file_1.txt", "file_1_0305.txt"; #rename local file ftprename remote, "file.log", "file_0305.log"; #rename remote file 5.2. Deleting files and folders The ftpdelete command is used to delete files and folders. The predefined keywords local and remote are used to apply this command on either the local or remote computer. The predefined keywords file and folder are used to specify whether the item is a file or folder. Folders will be recursively deleted. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit 5.3. Syntax of command for deleting files and folders ftpdelete <keywords: local, remote>, <keywords: file, folder>, <name string>; 33
38 File system commands Exhibit 5.4. Examples for using the command for deleting files and folders ftpdelete local, file, "file_1.txt"; #delete local file ftpdelete remote, folder, "tmp_folder"; #delete remote folder and all sub-folders recursively 5.3. Creating folders The ftpmakefolder command is used to create a new folder. The predefined keywords local and remote are used to apply this command on either the local or remote computer. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit 5.5. Syntax of command for creating files and folders ftpmakefolder <keywords: local, remote>, <name string>; Exhibit 5.6. Examples for using the command for creating files and folders ftpmakefolder local, "tempfiles"; #create local folder ftpmakefolder remote, "tmp_folder"; #create remote folder 5.4. Executing custom remote FTP commands The ftpcustomcmd command is used to execute a literal RFC959 based FTP command string on the remote server when connected to a non secure or SSL (FTPS) based secure FTP server. When connected to an SSH (SFTP) based secure server, a shell command string can be executed if permitted by the server. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit 5.7. Syntax of command for executing custom remote FTP commands ftpcustomcmd <command string>; 34
39 File system commands Exhibit 5.8. Example for using the command for executing custom remote FTP commands ftpcustomcmd "SITE CHMOD 444 myfile.txt"; #run a site specific FTP command string 5.5. Executing local programs The ftprunprogram command runs a program on the local computer. The path to the program executable and the parameters to be passed to the program should be specified. The program can also be executed as a specific user if an optional username and password are provided. The command will fail to run the program if a username and password are specified but the user process running the ftp script does not have sufficient permissions to login as the specified user. It is therefore possible that the command successfully invokes the program when running under the scheduler service or as part of a server script (both of which run with systemwide permissions) but fails when run from the command line, logged in as a specific user. A timeout value in seconds can be optionally specified to terminate the program if it has not completed in the specified time. If a timeout value is not specified or if a value of 0 is specified, the script will wait until the program completes execution. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. An expected exit code value can also be optionally specified to compare against the actual program exit code. If the exit codes do not match, The ftpresult predefined status flag will not be set to the predefined constant success. Exhibit 5.9. Sytax of command for executing local programs ftprunprogram <program path string>, <parameter string> [, optional: <username>, <password>, <timeout value>, <expected error code>]; 35
40 File system commands Exhibit Example for using the command for executing local programs ftprunprogram "c:\\program Files\\notepad.exe", "C:\\myfile.txt"; #open a file in notepad ftprunprogram "c:\\program Files\\myprog.exe", "", "administrator", "admin"; #run a program as the administrator ftprunprogram "c:\\program Files\\myprog.exe", "", "", "", 10; #run a program but terminate it if it takes more than 10 seconds to run ftprunprogram "c:\\program Files\\myprog.exe", "", "", "", 0, 1; #run a program to completion and verify that the exit code is Compressing and uncompressing local files and folders Files and folders can be compressed using the ftpcompress command. The name string specifies the file or folder to compress. If compression is successful, the output name variable contains the name of the compressed file and the ftpresult predefined status flag is set to the predefined constant success. Exhibit Syntax of command for compressing local files and folders ftpcompress <name string>, <output name variable>; Exhibit Examples for using the command for compressing local files and folders ftpcompress "www_folder", ~zip_file_name; #compress a folder and all its contents ftpcompress "index.txt"; #compress a file A compressed file can be uncompressed using the ftpuncompress command. The name string specifies the file to be uncompressed. The zip, gz, tar.gz, and tgz compressed file formats are supported. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. 36
41 File system commands Exhibit Syntax of command for uncompressing local files and folders ftpuncompress <name string>; Exhibit Examples for using the command for uncompressing local files and folders ftpuncompress "in22.tar.gz"; #uncompress a tar.gz file ftpuncompress "dw441.zip"; #uncompress a zip file 5.7. Copying and moving local files and folders Files and folders can be copied using the ftpcopylocal command. The item identified by the source name is copied to the specified destination path. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for copying local files and folders ftpcopylocal <source name>, <destination path>; Exhibit Examples for using the command for copying local files and folders ftpcopylocal "filelist.txt", "C:\\backup"; #copy a file ftpcopylocal "dw_folder", "C:\\backup"; #copy a folder Files and folders can be moved using the ftpmovelocal command. The item identified by the source name is moved to the specified destination path. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully. 37
42 File system commands Exhibit Syntax of command for moving local files and folders ftpmovelocal <source name>, <destination path> Exhibit Examples for using the command for moving local files and folders ftpmovelocal "dirlist.txt", "C:\\backup"; #move a file ftpmovelocal "ac_folder", "C:\\backup"; #move a folder; 38
43 6 Recursive File Transfers 39
44 Recursive File Transfers A recursive list of files can be obtained using the ftpgetlist command by setting the recurse level to 0. The names of files within a subfolder are stored in the.name property as subfolder/filename.txt for a remote listing or subfolder\filename.txt for a local listing. A foreach statement can then be used to select each file in the list and perform the file transfer using the ftpupload or ftpdownload commands. The following examples will upload or download files recursively by creating subfolders as needed. Exhibit 6.1. Example for recursively uploading files that match the pattern *.txt ftpsetpath local, "c:\\ftpout"; ftpgetlist 0; foreach $ftpitem begin if $ftpitem.name eq "*.txt" begin ftpupload file, $ftpitem.name; end end Exhibit 6.2. Example for recursively downloading files that match the pattern *.txt ftpsetpath remote, "/ftpacc"; ftpgetlist 0; foreach $ftpitem begin if $ftpitem.name eq "*.txt" begin ftpdownload file, $ftpitem.name; end end If all the files in a folder tree need to be uploaded or downloaded to a single destination folder, the / or \ characters in the.name property that denote a path can be replaced by an underscore or another character using the regexreplace command. The following example replaces the / character with a - character and causes files from an entire folder tree in the remote folder to be saved the current local folder as subfolder-filename.txt. 40
45 Recursive File Transfers Exhibit 6.3. Example for recursively downloading files from a remote folder tree into a single local folder ftpsetpath remote, "/ftpacc"; ftpgetlist 0; foreach $ftpitem begin if $ftpitem.name eq "*.txt" begin strprint ~myfile, $ftpitem.name; regexreplace ~myfile, "/", "-", "ig"; ftpdownload file, ~myfile; end end 41
46 7 Comparing Files and Folders 42
47 Comparing Files and Folders A Folders can be compared between a local and remote computer, two remote computers, or even two local folders by first obtaining a listing using the ftpgetlist command and then using the listcompare command to compare the two lists. Comparisons can be performed based on size or date. The four output lists contain items in the first list items that are not present in the second list, identical to those in the second list, newer or larger compared to the second list, and older or smaller compared to the second list. Exhibit 7.1. Syntax of command for comparing folder listings listcompare <keywords: bydate, bysize>, <list 1>, <list 2>, <items only in list 1>, <identical items>, <newer or larger items>, <older or smaller items>; Exhibit 7.2. Example of command for comparing folder listings
48 8 Synchronizing Files and Folders 44
49 Synchronizing Files and Folders Files can be synchronized between source and destination folders. Synchronization can be performed between local and remote computers or between two drives or folders on a local computer. The setsource command is used to specify the source folder that needs to be synchronized and the rules for including or excluding files and folders contained in the source. The local or remote keywords indicate if the source is located on a local or remote computer. The include or exclude keyword is followed by a list of files or folders to be excluded or included in the source folder. Each of the file or folder pattern is prefixed by a "file=" or "folder=" string to indicate if the pattern should match a file or folder. Exhibit 8.1. Syntax of command to set source path for synchronization setsource <keywords: local, remote>, <path of source folder>, [<keywords: include, exclude>, "<file, folder>=<pattern>"...]; Exhibit 8.2. Example of command to set source path for synchronization setsource local, "c:\\ftpfolder", include, "file=*.txt", "file=*.doc", "folder=*data*", "folder=*info*"; The setdestination command is used to specify the destination folder that needs to be synchronized and the rules for preserving or removing extra files and folders contained in the destination (that are not present in the source). The local or remote keyword indicates if the destination is located on a local or remote computer. The preserve or remove keyword is followed by a list of files or folders that are present only in the destination and need to be preserved or removed. Each of the file or folder pattern is prefixed by a "file=" or "folder=" string to indicate if the pattern should match a file or folder. Exhibit 8.3. Syntax of command to set destination path for synchronization setdestination <keywords: local, remote>, <path of destination folder>, [<keywords: preserve, remove>, "<file, folder>=<pattern>"...]; Exhibit 8.4. Example of command to set destination path for synchronization setdestination remote, "/ftpdata", remove, "file=*.obj", "file=*.bin", "folder=*temp*", "folder=*tmp*"; 45
50 Synchronizing Files and Folders The syncrun command is used to start the synchronization operation. The bysize, bydate, bylargersize, bynewerdate, bycrc, bymd5, and bysha1 keywords are used to indicate the type of comparison to be performed between the source and destination. The main difference between synchronization and backup is that during synchronization, files and folders that exist only in the destination, that are selected to be preserved, are copied to the source folder. Also, if the bylargersize, and bynewerdate comparison types are selected, the source files will be replaced by the destination files if they are found to be newer or larger than corresponding files in the source folder. Exhibit 8.5. Syntax of syncrun command syncrun <keywords: bysize, bydate, bylargersize, bynewerdate, bycrc, bymd5, bysha1>; Exhibit 8.6. Example of syncrun command syncrun bysize; #synchronize using size based comparison 46
51 9 Backup Files and Folders 47
52 Backup Files and Folders Files can be backed up from a source folder to a destination storage folder. The destination folder can be either a local drive (local backup) or a remote server (online backup). Similarly the source can be a folder on a local computer or a remote server. The setsource command is used to specify the source folder that needs to be backed up and the rules for including or excluding files and folders contained in the source. The local or remote keywords indicate if the source is located on a local or remote computer. The include or exclude keyword is followed by a list of files or folders to be excluded or included in the source folder. Each of the file or folder pattern is prefixed by a "file=" or "folder=" string to indicate if the pattern should match a file or folder. Exhibit 9.1. Syntax of command to set source path for backup setsource <keywords: local, remote>, <path of source folder>, [<keywords: include, exclude>, "<file, folder>=<pattern>"...]; Exhibit 9.2. Example of command to set source path for backup setsource local, "c:\\ftpfolder", include, "file=*.txt", "file=*.doc", "folder=*data*", "folder=*info*"; The setdestination command is used to specify the destination backup folder and the rules for preserving or removing extra files and folders contained in the destination (files not present in the source). The local or remote keyword indicates if the backup destination is located on a local or remote computer. The preserve or remove keyword is followed by a list of files or folders that are present only in the destination and need to be preserved or removed. Each of the file or folder pattern is prefixed by a "file=" or "folder=" string to indicate if the pattern should match a file or folder. Exhibit 9.3. Syntax of command to set destination path for backup setdestination <keywords: local, remote>, <path of destination folder>, [<keywords: preserve, remove>, "<file, folder>=<pattern>"...]; Exhibit 9.4. Example of command to set destination path for backup setdestination remote, "/ftpdata", remove, "file=*.obj", "file=*.bin", "folder=*temp*", "folder=*tmp*"; 48
53 Backup Files and Folders The backuprun command is used to start the backup operation. The bysize, bydate, bylargersize, bynewerdate, bycrc, bymd5, and bysha1 keywords are used to indicate the type of comparison to be performed between the source and destination to determine which files and folders need to be backed up. The main difference between backup and synchronization is that during backup, files and folders that exist only in the destination, that are selected to be preserved, will never be copied to the source folder. Also, if the bylargersize,and bynewerdate comparison types are selected, if the destination files are found to be newer or larger than corresponding files in the source folder, the source files will simply be skipped. The source files will never be replaced by destination files. Exhibit 9.5. Syntax of backuprun command backuprun <keywords: bysize, bydate, bylargersize, bynewerdate, bycrc, bymd5, bysha1>; Exhibit 9.6. Example of backuprun command backuprun bysize; #backup using size based comparison 49
54 10 Reading and writing local files Opening and closing local files Reading lines Writing lines
55 Reading and writing local files Opening and closing local files A file can be opened for reading or writing using the fileopen command. The predefined keywords read, write, and append are used to open the file for reading, writing, or appending. If the file is opened for writing, any existing file with the same name is deleted and a new file will be created. The name string specifies the name of the file to open. The fileresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for opening local files fileopen <keywords: read, write, append>, <name string>; Exhibit Examples for using the command for opening local files fileopen write, "error.txt"; #create or open a new file for writing fileopen append, "output.txt"; #open a file to append data to the end of the file An opened file can be closed with the fileclose command. Since only one file can be opened at a time, no arguments are required. Exhibit Syntax of command for closing local files fileclose; Exhibit Example for using the command for closing local files fileclose; #close the file 51
56 Reading and writing local files Reading lines The filereadline command can be used to read lines from a file that has been opened with the fileopen command in read mode. A line of text is read from the file and placed in the user specified variable. The fileresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for reading lines filereadline <user specified variable>; Exhibit Examples for using the command for reading lines fileopen read, "eg_12.txt"; filereadline ~one_line; #read a line from the file filereadline ~one_line; #read the next line in the file Writing lines The filewriteline command can be used to write lines from a file that has been opened with the fileopen command in write or append mode. The line specified in the text line string is written to the file. The fileresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for writing lines filewriteline <text line string>; Exhibit Examples for using the command for writing lines fileopen append, "out_log.txt"; filewriteline "File 1 was uploaded"; #write a line to the file filewriteline "File 2 was uploaded"; #write the next line to the file 52
57 11 notification Creating messages Multi line messages and attachments Sending
58 notification Creating messages The mailcreate command is used to create an message that can be sent to recepients using the mailsend command. The sender's name and address should be specified in addition to the 's subject field and the message that needs to be sent. The mailresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for creating messages mailcreate <sender name>, <sender address>, < subject>, < message>; Exhibit Example for using the command for creating messages mailcreate "John Doe", "Script status", "Upload successful!"; #create message Multi line messages and attachments The mailaddline command is used to add an additional line to the message body that was created using the mailcreate command. The mailresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for adding multi lines to messages mailaddline <additonal message line>; 54
59 notification Exhibit Example for using the command for adding multi lines to messages mailcreate "John Doe", "Script status", "Upload successful!"; #create message mailaddline "additional message line"; #add an additional line to the message The mailaddfile command is used to attach a file to the message body that was created using the mailcreate command. The mailresult predefined status flag is set to the predefined constant success if the command completed successfully. Exhibit Syntax of command for attaching a file to messages mailaddfile <path to file to be attached>; Exhibit Example for using the command for attaching a file to messages mailcreate "John Doe", "[email protected]", "Script status", "Upload successful!"; #create message mailaddfile "c:\\temp\\status.txt"; #attach a file to the message Sending The mailsend command is used to send an message that has been created using the mailcreate command. The same message can be sent to multiple recipients by calling this command multiple times with the address of each recepient. The internet address of the mail server and the corresponding port number must be specified in addition to the recipient's name and address. In most cases, these values can be obtained from your default program. The mailresult predefined status flag is set to the predefined constant success if the command completed successfully. An optional username and password may also be supplied if the mail server requires it. Many mail servers now implicitly require users to authenticate before sending mail. In these cases, the username and password used to read from this server should be supplied. 55
60 notification Exhibit Syntax of command for sending mailsend <mail server address>, <server port>, <recipient name>, <recipient > [, optional: <username>, <password>]; Exhibit Examples for using the command for sending mailsend "mail.jdinc.com", 25, "Jim Jones", "username", "pass"; #send message mailsend "mail.jdinc.com", 25, "Joe Smith", "username", "pass"; #send same message to another recipient In addition, the mailsendssl command can be used to send an message if the mail server accepts only ssl encrypted connections. Exhibit Syntax of command for sending for ssl mailsendssl <mail server address>, <server port>, <recipient name>, <recipient > [, optional: <username>, <password>]; Exhibit Examples for using the command for sending for ssl mailsendssl "mail.jdinc.com", 25, "Jim Jones", "username", "pass"; #send message mailsendssl "mail.jdinc.com", 25, "Joe Smith", "username", "pass"; #send same message to another recipient And the mailsendtls command can be used to send an message if the mail server requires the use of STARTTLS to initiate secure SSL/TLS encrypted connections. Exhibit Syntax of command for sending for tls mailsendtls <mail server address>, <server port>, <recipient name>, <recipient > [, optional: <username>, <password>]; 56
61 notification Exhibit Examples for using the command for sending for ssl mailsendtls "mail.jdinc.com", 25, "Jim Jones", "username", "pass"; #send message mailsendtls "mail.jdinc.com", 25, "Joe Smith", "username", "pass"; #send same message to another recipient 57
62 12 OpenPGP Encryption and Decryption OpenPGP automation concepts Generating OpenPGP key pairs Keyrings and key management Encrypting files with OpenPGP Decrypting OpenPGP encrypted files
63 OpenPGP Encryption and Decryption OpenPGP automation concepts PGP (Pretty Good Privacy) is an encryption framework based on public key cryptography, originally developed by Philip Zimmermann. It is widely used to protect access to sensitive files and messages. Public key cryptography is based on the concept of a pair of cryptographically strong keys known as public and private keys. Users can generate a key pair and then publish the public key to any one that wants to send them files or messages. The sender will encrypt the file or message using this public key. Once encrypted, the file or message can only be decrypted by the person who has the corresponding private key. This scripting language provides commands to store and retrieve multiple public and private keys using keyrings, import and export public and private key files, and encrypt and decrypt files using OpenPGP. The pgpresult predefined status flag is set to the predefined constant success if the corresponding command completed successfully Generating OpenPGP key pairs The sysaxftp.exe console program can be used to generate a OpenPGP key pair using the -pgpkeygen option. An optional size value for the encryption key can also be specified. Valid key sizes are 1024, 2048, 4096, or If no keysize is specified, a default key size of 1024 is used. The new key pair is generated and stored in the default keyring. The username is specified using the -username option and the corresponding passphrase is specified using the -passphrase option. The username is a text string or address that is linked with the generated key pair and is used to select the private or public key belonging to the key pair. Exhibit Syntax of command for generating a openpgp key pair sysaxftp.exe -pgpkeygen [1024(default), 2048, 4096, or 8192] -username <username or > -passphrase <passprase value> [-keytype <rsa(default), or dsaelg>] 59
64 OpenPGP Encryption and Decryption Exhibit Examples for using the command for generating a openpgp key pair sysaxftp.exe -pgpkeygen -username john.doe -passphrase johnspassword #generate a RSA key pair with default size of 1024 and link it to a username sysaxftp.exe -pgpkeygen -username john.doe -passphrase johnspassword -keytype dsaelg #generate a DSA/Elgamal key pair with default size of 1024 and link it to a username sysaxftp.exe -pgpkeygen username john.doe@ .com -passphrase keypassword #generate a RSA key pair with size of 2048 and link it to an address Keyrings and key management Public and private key files used for OpenPGP encryption and decryption are stored in keyring files. The Sysax FTP Automation program maintains a default keyring. When a keyring file name is not explicitly specified, the default keyring is used. The -pgexportpublickey option is used to export a public key and the - pgpexportprivatekey option is used to export a private key. Exhibit Syntax of commands for exporting public and private keys sysaxftp.exe -pgpexportpubkey <username or > -pgpkeyout <output filename> [-pgpkeyring <keyring file name>] sysaxftp.exe -pgpexportprivkey <username or > -pgpkeyout <output filename> [-pgpkeyring <keyring file name>] Exhibit Examples for using the commands for exporting public and private keys sysaxftp.exe -pgpexportpubkey john.doe -pgpkeyout keyout.pub -pgpkeyring mykeyring.pgp #export public key for user john.doe from mykeyring.pgp sysaxftp.exe -pgpexportprivkey john.doe -pgpkeyout keyout.priv private key for user john.doe from default keyring #export 60
65 OpenPGP Encryption and Decryption The -pgpimportpubkey option is used to import a previously exported public key or a public key from a user to whom a file or message needs to be sent. The -pgpimportprivatekey option is used to import a previously exported private key. Exhibit Syntax of commands for importing public and private keys sysaxftp.exe -pgpimportpubkey <public key filename> [-pgpkeyring <keyring file name>] sysaxftp.exe -pgpimportprivkey <private key filename> [-pgpkeyring <keyring file name>] Exhibit Examples for using the commands for importing public and private keys sysaxftp.exe -pgpimportpubkey key.pub -pgpkeyring mykeyring.pgp public key from key.pub to mykeyring.pgp #import sysaxftp.exe -pgpimportprivkey key.priv key.priv to default keyring #import private key from The -pgplistkeys option is used to list the contents of the default public and private keyring or a specific keyring file that is specified. Exhibit Syntax of command for listing keyring contents sysaxftp.exe -pgplistkeys [-pgpkeyring <keyring file name>] Exhibit Examples for using the command for listing keyring contents sysaxftp.exe -pgplistkeys private keyring #list contents of the default public and sysaxftp.exe -pgplistkeys -pgpkeyring mykeyring.pgp mykeyring.pgp keyring #list contents of The pgpexportpubkey and pgpexportprivkey commands can be used to export public and private keys from within a script. 61
66 OpenPGP Encryption and Decryption The pgpresult predefined status flag is set to the predefined constant success if the corresponding command completed successfully. Exhibit Syntax of commands for keyrings and key management pgpexportpubkey <username or >, <output filename>, [<optional keyring file>]; pgpexportprivkey <username or >, <output filename>, [<optional keyring file>]; Exhibit Examples for using the commands for keyrings and key management pgpexportpubkey "john.doe", "keyout.pub", "mykeyring.pgp"; public key for user john.doe from mykeyring.pgp #export pgpexportprivkey "john.doe", "keyout.priv"; user john.doe from default keyring #export private key for The pgpimportpubkey and pgpimportprivkey commands can be used to import public and private keys from within a script. The pgpresult predefined status flag is set to the predefined constant success if the corresponding command completed successfully. Exhibit Syntax of commands for keyrings and key management pgpimportpubkey <key file to import>, [<optional keyring file>]; pgpimportprivkey <key file to import>, [<optional keyring file>]; Exhibit Examples for using the commands for keyrings and key management pgpimportpubkey "key.pub", "mykeyring.pgp"; key.pub to mykeyring.pgp #import public key from pgpimportprivkey "key.priv"; default keyring #import private key from key.priv to 62
67 OpenPGP Encryption and Decryption Encrypting files with OpenPGP The sysaxftp.exe program can be used to encrypt files using the -pgpencrypt option. If a keyring file name is not explicitly specified, the default keyring is used to obtain the public key used for encryption. The -armor option is used to convert the encrypted binary file into an ascii text format. The -signusername option also can be used to sign the encrypted file using the private key of the sender to establish the source of the encrypted file. Exhibit Syntax of command for encrypting files with openpgp sysaxftp.exe -pgpencrypt <file to encrypt> -username <username or > [-armor] [-pgpout <output filename>] [-pgpkeyring <keyring file name>] [-signusername <username or >] [-signpassphrase <private key passphrase>] [-signkeyring <keyring file name>] Exhibit Examples for using the command for encrypting files with openpgp sysaxftp.exe -pgpencrypt myfile.txt -username john.doe #encrypt myfile.txt to myfile.pgp using the public key for john.doe from the default keyring sysaxftp.exe -pgpencrypt myfile.txt -username john.doe -pgpout myfile.enc -pgpkeyring mykeyring.pgp #encrypt myfile.txt to myfile.enc using the public key from mykeyring.pgp The pgpencrypt command can be used to encrypt files from within a script. The pgpresult predefined status flag is set to the predefined constant success if the corresponding command completed successfully. If an empty string is passed in for the output filename, it will be derived from the input filename. Exhibit Syntax of command for encrypting files with openpgp pgpencrypt <file to encrypt>, <username or >, <output filename>, [<keyring file name>]; 63
68 OpenPGP Encryption and Decryption Exhibit Examples for using the command for encrypting files with openpgp pgpencrypt "myfile.txt", "john.doe", "myfile.enc"; #encrypt myfile.txt to myfile.enc using the public key for user john.doe pgpencrypt "myfile.txt", "john.doe", ""; #encrypt myfile.txt to myfile.pgp using the public key for user john.doe pgpencrypt "myfile.txt", "john.doe", "myfile.enc", "mykeyring.pgp"; #encrypt myfile.txt using the public key from mykeyring.pgp The pgparmoron or pgparmoroff commands can be called before the pgpencrypt command to enable or disable the conversion of the encrypted binary file into an ascii text format. Exhibit Syntax of commands for encrypting files with openpgp pgparmoron; pgparmoroff; Exhibit Examples for using the commands for encrypting files with openpgp pgparmoron; #turn on ascii text armoring pgparmoroff; #turn off ascii text armoring The pgpsign command can be called before the pgpencrypt command to sign the encrypted file using the private key of the sender to establish the source of the encrypted file. Exhibit Syntax of command for encrypting files with openpgp pgpsign <username or >, <private key passphrase>, [<keyring file name>]; 64
69 OpenPGP Encryption and Decryption Exhibit Examples for using the command for encrypting files with openpgp pgpsign "jane.doe", "mypass"; #sign using the private key for user jane.doe pgpsign "jane.doe", "mypass", "mykeyring.pgp"; #sign using the private key for user jane.doe from mykeyring.pgp Decrypting OpenPGP encrypted files The sysaxftp.exe program can be used to decrypt files using the -pgpdecrypt option. If a keyring file name is not explicitly specified, the default keyring is used to obtain the private key used for decryption. Exhibit Syntax of command for decrypting openpgp encrypted files sysaxftp.exe -pgpdecrypt <encrypted file> -passphrase <private key passphrase> [-pgpout <output filename>] [-pgpkeyring <keyring file name>] Exhibit Examples for using the command for decrypting openpgp encrypted files sysaxftp.exe -pgpdecrypt encrypted.pgp -passphrase mypass; #decrypt encrypted.pgp using private key of user jane.doe sysaxftp.exe -pgpdecrypt encrypted.pgp -passphrase mypass -pgpout myfile.txt -pgpkeyring mykeyring.pgp ; #decrypt encrypted.pgp to myfile.txt using private key from mykeyring.pgp The pgpdecrypt command can be used to decrypt files from within a script. The pgpresult predefined status flag is set to the predefined constant success if the corresponding command completed successfully. If an empty string is passed in for the output filename, it will be derived from the encrypted input file. Exhibit Syntax of command for decrypting openpgp encrypted files pgpdecrypt <file to decrypt>, <private key passphrase>, <output filename>, [<keyring file name>]; 65
70 OpenPGP Encryption and Decryption Exhibit Examples for using the command for decrypting openpgp encrypted files pgpdecrypt "encrypted.pgp", "mypass", "myfile.txt"; #decrypt encrypted.pgp to myfile.txt using the private key for user jane.doe pgpdecrypt "encrypted.pgp", "mypass", ""; #decrypt encrypted.pgp to encrypted.txt using the private key for user jane.doe pgpdecrypt "encrypted.pgp", "mypass", "myfile.txt", "mykeyring.pgp"; #decrypt encrypted.pgp using the private key from mykeyring.pgp 66
71 13 Error reporting Setting program exit codes Writing out error files notifications
72 Error reporting Setting program exit codes The setexitcode command sets an exit code for the program that is passed back to the command shell on program termination. This is used to report error codes when running FTP scripts from the command line. The syntax is Exhibit Syntax of command for setting program exit codes setexitcode <integer number>; Exhibit Example for using the command for setting program exit codes setexitcode 5; Writing out error files The section on reading and writing local files contains detailed information on opening and writing to a file. Exhibit Example for using some commands for writing out error files fileopen write, "c:\\errorlog.txt"; filewriteline "An error has occurred"; fileclose; notifications The section on notification contains detailed information on creating and sending . 68
73 Error reporting Exhibit Example for using some commands for notifications mailcreate "John Doe", "Script status regd.", "Failed to upload file."; mailsend "mail.jdoe.com", 25, "Joe Smith", "usename", "password"; 69
74 14 Working with timestamps Generating timestamps Formatted Timestamps Using timestamps
75 Working with timestamps Generating timestamps The gettimestamp command is used to generate the current timestamp in YYYYMMDDhhmmss format (Y=year, M=month, D=day, h=hour, m=minute, s=second). The generated timestamp is copied to the user variable. The predefined keywords incr and decr can be optionally used to generate timestamps for previous or future dates. The predefined keywords second, minute, hour, day, week, month, and year are used to specify the time interval to adjust, while the interval count specifies the number of such intervals. Exhibit Syntax of command for generating timestamps gettimestamp <user variable> [, optional: <keywords: incr, decr>, <keywords: second, minute, hour, day, week, month, year>, <interval count>]; Exhibit Examples for using the command for generating timestamps gettimestamp ~my_timestamp; #get current timestamp gettimestamp ~my_timestamp, decr, month, 2; #get a timestamp that is 2 months old gettimestamp ~my_timestamp, incr, day, 5; #get a timestamp that is 5 days in the future Formatted Timestamps The formattimestamp command enables timestamps to be represented in multiple formats. The same year, month, date, hour, minute, or second values are still used, but they are arranged in different ways like MM/DD/ YYYY or MM-DD-YY. The command takes a timestamp format string as input and generates the corresponding timestamp. An existing timestamp in the default YYYYMMDDhhyyss format that was previously generated using the gettimestamp command can also be used passed as an input to the formattimestamp command. If no timestamp is passed in, the current timestamp value is automatically generated and used. The following values in the format string are replaced with the corresponding timestamp values: 71
76 Working with timestamps %YYYY% - replaced by the 4 digit year %YY% - replaced by the 2 digit year %MM% - replaced by the 2 digit month %DD% - replaced by the 2 digit day %hh% - replaced by the 2 digit hour %mm% - replaced by the 2 digit minute %ss% - replaced by the 2 digit second Exhibit Syntax of the formattimestamp command formattimestamp <user variable>, <format string> [, optional: <timestamp in YYYYMMDDhhmmss format>]; Exhibit Example of using the formattimestamp command formattimestamp ~mytimestamp, "%MM%-%DD%-%YY%", " "; #output generated is formattimestamp ~mytimestamp, "%MM%-%DD%-%YY%"; #the current timestamp is generated in MM-DD-YY format Using timestamps Timestamps or portions of timestamps are frequently added to file names. The following examples show how time stamps can be appended to files and how file names can be searched for specific timestamps. 72
77 Working with timestamps Exhibit Example for using timestamps gettimestamp ~my_timestamp; # generate current timestamp foreach $local_item begin strprint ~new_name, ~my_timestamp, "_", $item.name; #prepend timestamp to file name end gettimestamp ~my_timestamp, decr, day, 1; #generate timestamp that is a day old foreach $local_item begin strprint ~search_name, "*", ~my_timestamp, "*"; #generate search string if ~search_name eq $local_item.name begin #search for files with this timestamp as part of their filename end end 73
78 15 Accessing system information Reading environmental variables Getting the local computer name Getting username running the script Reading windows registry values
79 Accessing system information Reading environmental variables The getenvvar command is used to access the values of environmental variables. The user variable receives the value of the specified environmental variable string. Refer to the section on command line script parameters for a method to create and set program specific environmental variables from the command line. Exhibit Syntax of command for reading environmental variables getenvvar <user variable>, <environment variable string>; Exhibit Example for using the command for reading environmental variables getenvvar ~os_variable, "OS"; #get the value of the environmental variable OS Getting the local computer name The getcompname command gets the name of the computer that the program is running on. The computer name is copied to the specified user variable. Exhibit Syntax of command for getting the local computer name getcompname <user variable>; An example is Exhibit Example for using the command for getting the local computer name getcompname ~comp_name; #get the name of this computer 75
80 Accessing system information Getting username running the script The getusername command can be used to get the username currently running the script. Exhibit Syntax of command for getting Getting username running the script getusername <user variable>; An example is Exhibit Example for using the command for Getting username running the script getusername ~currentuser; #get the username currently running the script Reading windows registry values The readwinregistry command can be used to get the windows registry value corresponding to parameters (registry key, registry subkey, registry entry name) of the command. Exhibit Syntax of command for Reading windows registry values readwinregistry <registry key><registry subkey><registry entry name><user variable>; An example is Exhibit Example for using the command for Reading windows registry values readwinregistry "HKEY_LOCAL_MACHINE", "SOFTWARE\Microsoft\DirectX", "Version", ~dxversion; #get the windows registry value corresponding to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX\Version 76
81 16 Command line script parameters Running a script from the command line Specifying log files Passing Environmental variables Protecting passwords and other strings
82 Command line script parameters Running a script from the command line An FTP script can be run from the command line using the sysaxftp.exe console program with the -script switch. Exhibit Syntax of command for running a script from the command line sysaxftp.exe -script <script file name>> Specifying log files The following switches are related to log file generation. -logfile -tslogfile -append (default is overwrite) -append <max file size> size specified in bytes generate an output log file generate a time stamped output log file append to log file generated during previous run roll over the log file after the maximum file Exhibit Examples for using the commands for specifying logfiles sysaxftp -script "test.fscr" -tslogfile "test.log" #generate a time stamped log file sysaxftp -script "test.fscr" -logfile "test.log" -append #rollover the appended log file every bytes Passing Environmental variables The following switch enables environmental variables to be created and passed to the program. 78
83 Command line script parameters -set <environment variable>=<value> variable create and set an environmental Exhibit Examples for using the switch for passing environmental variables sysaxftp -script "run.fscr" -set PASSWORD="mypass" #create env variable PASSWORD and set it to mypass sysaxftp -script "run.fscr" -set SERV_IP=" " #pass env variable. Value can be extracted from the script using getenvvar Protecting passwords and other strings The following switch encrypts the string that is passed in. It is part of a mechanism used to hide passwords and other important strings. The generated encrypted string can be used with the setprotectedvar command within a script. The contents of a protected variable will be automatically decrypted when the variable is passed to the ftpconnect* group of commands, the certload command, or the pkeyload command. In all other cases, including printing of the variable, only the encrypted value is made available. -protectstring <string to be protected> the setprotectedvar command encrypt a string for use with Exhibit Examples for using the switch for creating protected strings sysaxftp -protectstring mypassword #protect the "mypassword" string by encrypting it sysaxftp -protectstring mypassword > passfile.txt #encrypt "mypassword" and save it to passfile.txt where it can be copied and pasted inside a script for use with the setprotectedvar command. 79
84 Index A append, 51 ascii, 30 auto, 30 B begin, 6 binary, 30 bydate, 29 bysize, 29 C certload, 23 D day, 71 decr, 71 decrement, 12 disablepasv, 29 E else, 4 enablepasv, 29 end, 6 endscript, 9 exitloop, 8 F file, 27, 28, 33 fileclose, 51 fileopen, 51, 52, 52 filereadline, 52 fileresult, 3, 7 filewriteline, 52 folder, 27, 28, 33 foreach, 3, 6, 19 ftpcompress, 36 ftpconnect, 23 ftpconnectssh, 24, 24 ftpconnectssl, 23, 23 ftpconnectsslc, 23 ftpconnectssli, 23 ftpcopylocal, 37 ftpcustomcmd, 34 ftpdelete, 33 ftpdisconnect, 24 ftpdownload, 27 ftpgetlist, 3, 7, 19, 20, 26 ftpmakefolder, 34 ftpmodtime, 28 ftpregexmatch, 16 ftpremovelocal, 37 ftprename, 33 ftpresult, 3, 7, 16, 16, 19, 23, 25, 26, 27, 28, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 51, 52, 52 ftprunprogram, 35 ftpsetpath, 25, 27, 27 ftpuncompress, 36 ftpupload, 27 ftpwildcardmatch, 16 G getcompname, 75 getenvvar, 75 gettimestamp, 71 getusername, 76 H hour, 71 I if, 4 in, 6, 19 incr, 71 increment, 12 L left, 13 listappend, 3 listcompare, 3 local, 19, 25, 26, 33, 33, 34 loop, 6 M mailaddfile, 55 80
85 Index mailaddline, 54 mailcreate, 54, 54, 55, 55 mailresult, 3, 7, 54, 54, 55, 55 mailsend, 54, 55 minute, 71 month, 71 week, 71 write, 51 Y year, 71 O overwrite, 29 P pkeyload, 24 print, 11 proxyhttp, 24 R read, 51 readwinregistry, 76 regexreplace, 14 remote, 19, 25, 26, 33, 33, 34 rename, 29 resume, 29 right, 13 S second, 71 setduperules, 29 setexitcode, 68 setnlst, 31 setprotectedvar, 11 settransfertype, 30 setvar, 11 skip, 29 strlower, 12 strprint, 11 strslice, 13 strupper, 12 U unsetnlst, 31 W waitsecs, 8 81
WS_FTP Professional 12
WS_FTP Professional 12 Tools Guide Contents CHAPTER 1 Introduction Ways to Automate Regular File Transfers...5 Check Transfer Status and Logs...6 Building a List of Files for Transfer...6 Transfer Files
Table of Contents Introduction Supporting Arguments of Sysaxftp File Transfer Commands File System Commands PGP Commands Other Using Commands
FTP Console Manual Table of Contents 1. Introduction... 1 1.1. Open Command Prompt... 2 1.2. Start Sysaxftp... 2 1.3. Connect to Server... 3 1.4. List the contents of directory... 4 1.5. Download and Upload
FTP Service Reference
IceWarp Server FTP Service Reference Version 10 Printed on 12 August, 2009 i Contents FTP Service 1 V10 New Features... 2 FTP Access Mode... 2 FTP Synchronization... 2 FTP Service Node... 3 FTP Service
XFTP 5 User Guide. The Powerful SFTP/FTP File Transfer Program. NetSarang Computer Inc.
XFTP 5 User Guide The Powerful SFTP/FTP File Transfer Program NetSarang Computer Inc. Copyright 2015 NetSarang Computer, Inc. All rights reserved. Xftp Manual This software and various documents have been
FTP Service Reference
IceWarp Unified Communications Reference Version 11.3 Published on 1/6/2015 Contents... 3 About... 4 Reference... 5 General Tab... 5 Dialog... 6 FTP Site... 6 Users... 7 Groups... 11 Options... 14 Access...
Quick Reference Guide. Online Courier: FTP. Signing On. Using FTP Pickup. To Access Online Courier. https://onlinecourier.suntrust.
Quick Reference Guide Online Courier: FTP https://onlinecourier.suntrust.com With SunTrust Online Courier, you can have reports and files delivered to you using an FTP connection. There are two delivery
Sysax Multi Server User manual
Sysax Multi Server User manual Table of Contents 1. Introduction to Sysax Multi Server... 1 1.1. Introduction to Sysax Multi Server... 2 2. Minimum System Requirements... 4 2.1. System Requirements...
µtasker Document FTP Client
Embedding it better... µtasker Document FTP Client utaskerftp_client.doc/1.01 Copyright 2012 M.J.Butcher Consulting Table of Contents 1. Introduction...3 2. FTP Log-In...4 3. FTP Operation Modes...4 4.
BestSync Tutorial. Synchronize with a FTP Server. This tutorial demonstrates how to setup a task to synchronize with a folder in FTP server.
BestSync Tutorial Synchronize with a FTP Server This tutorial demonstrates how to setup a task to synchronize with a folder in FTP server. 1. On the main windows, press the Add task button ( ) to add a
Configuring Health Monitoring
CHAPTER4 Note The information in this chapter applies to both the ACE module and the ACE appliance unless otherwise noted. The features that are described in this chapter apply to both IPv6 and IPv4 unless
Managing Software and Configurations
55 CHAPTER This chapter describes how to manage the ASASM software and configurations and includes the following sections: Saving the Running Configuration to a TFTP Server, page 55-1 Managing Files, page
fåíéêåéí=péêîéê=^çãáåáëíê~íçêûë=dìáçé
fåíéêåéí=péêîéê=^çãáåáëíê~íçêûë=dìáçé Internet Server FileXpress Internet Server Administrator s Guide Version 7.2.1 Version 7.2.2 Created on 29 May, 2014 2014 Attachmate Corporation and its licensors.
Centers for Medicare and Medicaid Services. Connect: Enterprise Secure Client (SFTP) Gentran. Internet Option Manual 2006-2007
Centers for Medicare and Medicaid Services Connect: Enterprise Secure Client (SFTP) Gentran Internet Option Manual 2006-2007 Version 8 The Connect: Enterprise Secure Client (SFTP) Manual is not intended
Georgia State Longitudinal Data System
Georgia State Longitudinal Data System FTP Client Installation Manual Version 3.0 Table of Contents 1 Overview... 3 2 FTP Connection Checklist... 3 3 FTP Installation Instructions... 4 4 Apply license
Minnesota Health Care Programs (MHCP) MN-ITS User Guide https://mn-its.dhs.state.mn.us. Using MN ITS Batch. Secure FTP General Information.
Minnesota Health Care Programs (MHCP) MN-ITS User Guide https://mn-its.dhs.state.mn.us Objective Performed by Background To successfully use FTP client software protocols (FTPS or SFTP/SCP via SSH) to
WS_FTP Professional 12. Security Guide
WS_FTP Professional 12 Security Guide Contents CHAPTER 1 Secure File Transfer Selecting a Secure Transfer Method... 1 About SSL... 2 About SSH... 2 About OpenPGP... 2 Using FIPS 140-2 Validated Cryptography...
Using www.bcidaho.net
Using www.bcidaho.net Blue Cross supports a wide variety of clients and protocols for uploading and downloading files from our servers, including web-based tools, traditional clients and batch processing.
List of FTP commands for the Microsoft command-line FTP client
You are on the nsftools.com site This is a list of the commands available when using the Microsoft Windows command-line FTP client (requires TCP/IP to be installed). All information is from the Windows
SECURE FTP CONFIGURATION SETUP GUIDE
SECURE FTP CONFIGURATION SETUP GUIDE CONTENTS Overview... 3 Secure FTP (FTP over SSL/TLS)... 3 Connectivity... 3 Settings... 4 FTP file cleanup information... 5 Troubleshooting... 5 Tested FTP clients
SimpleFTP. User s Guide. On-Core Software, LLC. 893 Sycamore Ave. Tinton Falls, NJ 07724 United States of America
SimpleFTP User s Guide On-Core Software, LLC. 893 Sycamore Ave. Tinton Falls, NJ 07724 United States of America Website: http://www.on-core.com Technical Support: [email protected] Information: [email protected]
BatchSync Secure FTPS/SFTP User Manual. SiteDesigner Technologies, Inc.
BatchSync Secure FTPS/SFTP User Manual BatchSync Secure FTPS/SFTP All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including
Dove User Guide Copyright 2010-2011 Virgil Trasca
Dove User Guide Dove User Guide Copyright 2010-2011 Virgil Trasca Table of Contents 1. Introduction... 1 2. Distribute reports and documents... 3 Email... 3 Messages and templates... 3 Which message is
ichip FTP Client Theory of Operation Version 1.32
ichip FTP Client Theory of Operation Version 1.32 November 2003 Introduction The FTP protocol is described in RFC 959. General FTP (File Transfer Protocol) is defined as a protocol for file transfer between
Server Setup. Basic Settings
Server Setup Basic Settings CrushFTP has two locations for its preferences. The basic settings are located under the "Prefs" tab on the main screen while the advanced settings are under the file menu.
AUTOMATING FILE TRANSFERS WITH EVENT RULES EFT SERVER V6.5
AUTOMATING FILE TRANSFERS WITH EVENT RULES EFT SERVER V6.5 GlobalSCAPE, Inc. (GSB) Address: 4500 Lockhill-Selma Road, Suite 150 San Antonio, TX (USA) 78249 Sales: (210) 308-8267 Sales (Toll Free): (800)
WEBROOT EMAIL ARCHIVING SERVICE. Getting Started Guide North America. The best security in an unsecured world. TM
WEBROOT EMAIL ARCHIVING SERVICE Getting Started Guide North America Webroot Software, Inc. World Headquarters 2560 55th Street Boulder CO 80301 USA www.webroot.com 800.870.8102 Table of Contents Create
Published. Technical Bulletin: Use and Configuration of Quanterix Database Backup Scripts 1. PURPOSE 2. REFERENCES 3.
Technical Bulletin: Use and Configuration of Quanterix Database Document No: Page 1 of 11 1. PURPOSE Quanterix can provide a set of scripts that can be used to perform full database backups, partial database
Using SSH Secure Shell Client for FTP
Using SSH Secure Shell Client for FTP The SSH Secure Shell for Workstations Windows client application features this secure file transfer protocol that s easy to use. Access the SSH Secure FTP by double-clicking
WS_FTP Pro. User s Guide. Software Version 6. Ipswitch, Inc.
User s Guide Software Version 6 Ipswitch, Inc. Ipswitch, Inc. Phone: 781-676-5700 81 Hartwell Ave Fax: 781-676-5710 Lexington, MA 02421-3127 Web: http://www.ipswitch.com The information in this document
PageR Enterprise Monitored Objects - AS/400-5
PageR Enterprise Monitored Objects - AS/400-5 The AS/400 server is widely used by organizations around the world. It is well known for its stability and around the clock availability. PageR can help users
Manual Password Depot Server 8
Manual Password Depot Server 8 Table of Contents Introduction 4 Installation and running 6 Installation as Windows service or as Windows application... 6 Control Panel... 6 Control Panel 8 Control Panel...
Experian Secure Transport Service
Experian Secure Transport Service Secure Transport Overview In an effort to provide higher levels of data protection and standardize our file transfer processes, Experian will be utilizing the Secure Transport
WinSCP for Windows: Using SFTP to upload files to a server
WinSCP for Windows: Using SFTP to upload files to a server Quickstart guide Developed by: Academic Technology Services & User Support, CIT atc.cit.cornell.edu Last updated 9/9/08 WinSCP 4.1.6 Getting started
IceWarp to IceWarp Server Migration
IceWarp to IceWarp Server Migration Registered Trademarks iphone, ipad, Mac, OS X are trademarks of Apple Inc., registered in the U.S. and other countries. Microsoft, Windows, Outlook and Windows Phone
SFXCL Automation Tips
SFXCL Automation Tips 1. Introduction 2. Use Correct Command-Line Syntax 2.1. URL Specifications 2.2. Session Specifications 2.3. Local Path Specifications 2.4. File Transfer "Direction" (Upload vs. Download)
WS_FTP Professional 12
WS_FTP Professional 12 Security Guide Contents CHAPTER 1 Secure File Transfer Selecting a Secure Transfer Method...1 About SSL...1 About SSH...2 About OpenPGP...2 Using FIPS 140-2 Validated Cryptography...2
DiskPulse DISK CHANGE MONITOR
DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com [email protected] 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product
Integrating VoltDB with Hadoop
The NewSQL database you ll never outgrow Integrating with Hadoop Hadoop is an open source framework for managing and manipulating massive volumes of data. is an database for handling high velocity data.
Ipswitch WS_FTP Server
Ipswitch WS_FTP Server User s Guide Software Version 5.0 Ipswitch, Inc Ipswitch Inc. Web: http://www.ipswitch.com 10 Maguire Road Phone: 781.676.5700 Lexington, MA Fax: 781.676.5710 02421 Copyrights The
Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at www.ccsoftware.ca!
Quick Start Guide Cerberus FTP is distributed in Canada through C&C Software. Visit us today at www.ccsoftware.ca! How to Setup a File Server with Cerberus FTP Server FTP and SSH SFTP are application protocols
AnzioWin FTP Dialog. AnzioWin version 15.0 and later
AnzioWin FTP Dialog AnzioWin version 15.0 and later With AnzioWin version 15.0, we have included an enhanced interactive FTP dialog that operates similar to Windows Explorer. The FTP dialog, shown below,
Appendix. Web Command Error Codes. Web Command Error Codes
Appendix Web Command s Error codes marked with * are received in responses from the FTP server, and then returned as the result of FTP command execution. -501 Incorrect parameter type -502 Error getting
Managed File Transfer with Universal File Mover
Managed File Transfer with Universal File Mover Roger Lacroix [email protected] http://www.capitalware.com Universal File Mover Overview Universal File Mover (UFM) allows the user to combine
Installing, Uninstalling, and Upgrading Service Monitor
CHAPTER 2 Installing, Uninstalling, and Upgrading Service Monitor This section contains the following topics: Preparing to Install Service Monitor, page 2-1 Installing Cisco Unified Service Monitor, page
Legal Notes. Regarding Trademarks. 2012 KYOCERA Document Solutions Inc.
Legal Notes Unauthorized reproduction of all or part of this guide is prohibited. The information in this guide is subject to change without notice. We cannot be held liable for any problems arising from
WS_FTP Professional 12. Security Guide
WS_FTP Professional 12 Security Guide Contents CHAPTER 1 Secure File Transfer Selecting a Secure Transfer Method... 1 About SSL... 1 About SSH... 2 About OpenPGP... 2 Using FIPS 140-2 Validated Cryptography...
TECHNICAL NOTE TNOI27
TECHNICAL NOTE TNOI27 Title: FTP Synchronization Product(s): G3, DSP and Enhanced Modular Controller ABSTRACT The purpose of this document is to describe the G3 s FTP feature and the configuration steps
Integration Client Guide
Integration Client Guide 2015 Bomgar Corporation. All rights reserved worldwide. BOMGAR and the BOMGAR logo are trademarks of Bomgar Corporation; other trademarks shown are the property of their respective
Backup Software Comparison Table
Backup Software Comparison Table Features Summary SyncBackPro SyncBackSE New in Version 6: Amazon S3 and Google Storage support New in Version 6: Microsoft Azure support New in Version 6: Backup of emails
FTP Guide - Main Document Secure File Transfer Protocol (SFTP) Instruction Guide
FTP Guide - Main Document Secure File Transfer Protocol (SFTP) Instruction Guide Version 5.8.0 November 2015 Prepared For: Defense Logistics Agency Prepared By: CACI Enterprise Solutions, Inc. 50 North
Online Backup Client User Manual Linux
Online Backup Client User Manual Linux 1. Product Information Product: Online Backup Client for Linux Version: 4.1.7 1.1 System Requirements Operating System Linux (RedHat, SuSE, Debian and Debian based
Secure FTP Server. User's Guide. GlobalSCAPE
Secure FTP Server User's Guide GlobalSCAPE Table Of Contents Secure FTP Server... 1 Support... 3 What's New in Secure FTP Server 3... 4 Install and Register...6 Install... 6 Register... 6 HTTPS Trial...
Introduction. How does FTP work?
Introduction The µtasker supports an optional single user FTP. This operates always in active FTP mode and optionally in passive FTP mode. The basic idea of using FTP is not as a data server where a multitude
State of Michigan Data Exchange Gateway. SSLFTP/SFTP client setup
State of Michigan Data Exchange Gateway SSLFTP/SFTP client setup SSLFTP/SFTP (WsFTP) Setup for the State of Michigan Data Exchange Gateway (DEG) This is not a user doc on how to setup SSLFTP clients because
Device Log Export ENGLISH
Figure 14: Topic Selection Page Device Log Export This option allows you to export device logs in three ways: by E-Mail, FTP, or HTTP. Each method is described in the following sections. NOTE: If the E-Mail,
Methods available to GHP for out of band PUBLIC key distribution and verification.
GHP PGP and FTP Client Setup Document 1 of 7 10/14/2004 3:37 PM This document defines the components of PGP and FTP for encryption, authentication and FTP password changes. It covers the generation and
WS_FTP Server. User Guide
WS_FTP Server User Guide Contents CHAPTER 1 WS_FTP Server Overview What is WS_FTP Server?...1 System requirements for WS_FTP Server...1 How FTP works...3 How SSH works...3 Activating WS_FTP Server for
State of Michigan Data Exchange Gateway. Web-Interface Users Guide 12-07-2009
State of Michigan Data Exchange Gateway Web-Interface Users Guide 12-07-2009 Page 1 of 21 Revision History: Revision # Date Author Change: 1 8-14-2009 Mattingly Original Release 1.1 8-31-2009 MM Pgs 4,
IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3 April 8, 2016. Integration Guide IBM
IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3 April 8, 2016 Integration Guide IBM Note Before using this information and the product it supports, read the information
Access Instructions for United Stationers ECDB (ecommerce Database) 2.0
Access Instructions for United Stationers ECDB (ecommerce Database) 2.0 Table of Contents General Information... 3 Overview... 3 General Information... 3 SFTP Clients... 3 Support... 3 WinSCP... 4 Overview...
CounterPoint SQL and Magento ecommerce Interface
CounterPoint SQL and Magento ecommerce Interface Requirements: CounterPoint SQL: 8.3.9, 8.4.2 Magento Community Edition: 1.5.1+ (older versions are not compatible due to changes in Magento s API) MagentoGo
If you examine a typical data exchange on the command connection between an FTP client and server, it would probably look something like this:
Overview The 1756-EWEB and 1768-EWEB modules implement an FTP server; this service allows users to upload custom pages to the device, as well as transfer files in a backup or restore operation. Many IT
EXTENDED FILE SYSTEM FOR F-SERIES PLC
EXTENDED FILE SYSTEM FOR F-SERIES PLC Before you begin, please download a sample I-TRiLOGI program that will be referred to throughout this manual from our website: http://www.tri-plc.com/trilogi/extendedfilesystem.zip
WS_FTP Pro. User s Guide. Software Version 6.5. Ipswitch, Inc.
User s Guide Software Version 6.5 Ipswitch, Inc. Ipswitch, Inc. Phone: 781-676-5700 81 Hartwell Ave Fax: 781-676-5710 Lexington, MA 02421-3127 Web: http://www.ipswitch.com The information in this document
Talk-101 User Guides Web Content Filter Administration
Talk-101 User Guides Web Content Filter Administration Contents Contents... 2 Accessing the Control Panel... 3 Proxy User Management... 4 Adding a new Proxy User... 5 Modifying an existing Proxy User...
Cyber-Ark Software. Version 4.5
Cyber-Ark Software One-Click Transfer User Guide The Cyber-Ark Vault Version 4.5 All rights reserved. This document contains information and ideas, which are proprietary to Cyber-Ark Software. No part
CASHNet Secure File Transfer Instructions
CASHNet Secure File Transfer Instructions Copyright 2009, 2010 Higher One Payments, Inc. CASHNet, CASHNet Business Office, CASHNet Commerce Center, CASHNet SMARTPAY and all related logos and designs are
Accessing the FTP Server - User Manual
CENTRAL BANK OF CYPRUS Accessing the FTP Server - User Manual IT Department, CENTRAL BANK OF CYPRUS TABLE OF CONTENTS 1 EXECUTIVE SUMMARY... 1 1.1 AUDIENCE... 1 1.2 SCOPE... 1 2 CHANGES FROM THE OLD FTP
IBM Unica emessage Version 8 Release 6 February 13, 2015. Startup and Administrator's Guide
IBM Unica emessage Version 8 Release 6 February 13, 2015 Startup and Administrator's Guide Note Before using this information and the product it supports, read the information in Notices on page 83. This
File transfer clients manual File Delivery Services
File transfer clients manual File Delivery Services Publisher Post CH Ltd Information Technology Webergutstrasse 12 CH-3030 Berne (Zollikofen) Contact Post CH Ltd Information Technology Webergutstrasse
Command Line Interface Specification Linux Mac
Command Line Interface Specification Linux Mac Online Backup Client version 4.1.x and higher 1. Introduction These modifications make it possible to access the BackupAgent Client software from the command
Second Copy 8. 2010 Centered Systems
The perfect backup tool that everyone can use by Centered Systems It is not uncommon to lose an important document or a spreadsheet that you spent all day work ing on it. Not everyone lik es the back up
Working With Your FTP Site
Working With Your FTP Site Welcome to your FTP Site! The UnlimitedFTP (UFTP) software will allow you to run from any web page using Netscape, Internet Explorer, Opera, Mozilla or Safari browsers. It can
Introduction. KLS Backup 2011. Program Overview
Introduction Program Overview is a powerful backup, synchronization and disk cleaner program that allows you to back up or synchronize your data to local and network drives, cloud storage, CD/DVD disc,
Quick Introduction... 3. System Requirements... 3. Main features... 3. Getting Started... 4. Connecting to Active Directory... 4
Users' Guide Thank you for evaluating and purchasing AD Bulk Users 4! This document contains information to help you get the most out of AD Bulk Users, importing and updating large numbers of Active Directory
WinSCP PuTTY as an alternative to F-Secure July 11, 2006
WinSCP PuTTY as an alternative to F-Secure July 11, 2006 Brief Summary of this Document F-Secure SSH Client 5.4 Build 34 is currently the Berkeley Lab s standard SSH client. It consists of three integrated
Configuring Logging. Information About Logging CHAPTER
52 CHAPTER This chapter describes how to configure and manage logs for the ASASM/ASASM and includes the following sections: Information About Logging, page 52-1 Licensing Requirements for Logging, page
Bulk Image Downloader v3.0 User's Guide
Page 1 2010 Antibody Software Ltd www.antibody-software.com www.bulkimagedownloader.com Table of Contents...1 1. What is Bulk Image Downloader?...4 2. Bulk Image Downloader Applications...4 Bulk Image
$ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Cannot connect to some.host.name: $@";
NAME Net::FTP - FTP Client class SYNOPSIS use Net::FTP; $ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Cannot connect to some.host.name: $@"; $ftp->login("anonymous",'-anonymous@') or die "Cannot
How to setup FTP and Secure FTP for XD Series
How to setup FTP and Secure FTP for XD Series Use the following steps prior to enabling support for FTP services on XD Series: 1) Create NAS volume and Share(s) 2) Create Users and Groups 3) Select an
1. Product Information
ORIXCLOUD BACKUP CLIENT USER MANUAL LINUX 1. Product Information Product: Orixcloud Backup Client for Linux Version: 4.1.7 1.1 System Requirements Linux (RedHat, SuSE, Debian and Debian based systems such
IBM Campaign and IBM Silverpop Engage Version 1 Release 2 August 31, 2015. Integration Guide IBM
IBM Campaign and IBM Silverpop Engage Version 1 Release 2 August 31, 2015 Integration Guide IBM Note Before using this information and the product it supports, read the information in Notices on page 93.
File Transfer Protocol (FTP) Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Fall 2007, TAIWAN
File Transfer Protocol (FTP) Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Fall 2007, TAIWAN 1 Contents CONNECTIONS COMMUNICATION COMMAND PROCESSING
The information presented in this manual is subject to change without notice.
idt User's Guide The information presented in this manual is subject to change without notice. idt and idt In are trademarks of Management Science Associates, Inc. Microsoft and Windows are registered
File Transfer Examples. Running commands on other computers and transferring files between computers
Running commands on other computers and transferring files between computers 1 1 Remote Login Login to remote computer and run programs on that computer Once logged in to remote computer, everything you
Backup and Recovery Procedures
CHAPTER 10 This chapter provides Content Distribution Manager database backup and ACNS software recovery procedures. This chapter contains the following sections: Performing Backup and Restore Operations
EXTENDED FILE SYSTEM FOR FMD AND NANO-10 PLC
EXTENDED FILE SYSTEM FOR FMD AND NANO-10 PLC Before you begin, please download a sample I-TRiLOGI program that will be referred to throughout this manual from our website: http://www.tri-plc.com/trilogi/extendedfilesystem.zip
Adobe Marketing Cloud Using FTP and sftp with the Adobe Marketing Cloud
Adobe Marketing Cloud Using FTP and sftp with the Adobe Marketing Cloud Contents File Transfer Protocol...3 Setting Up and Using FTP Accounts Hosted by Adobe...3 SAINT...3 Data Sources...4 Data Connectors...5
Online Backup Client 3.12.5.3 Release Notes
December 2008 Version 1.0 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by other means. No rights can be derived
FTP protocol (File Transfer Protocol)
FTP protocol (File Transfer Protocol) Introduction to FTP protocol FTP protocol (File Transfer Protocol) is, as its name indicates a protocol for transferring files. The implementation of FTP dates from
Installing the SSH Client v3.2.2 For Microsoft Windows
WIN1011 June 2003 Installing the SSH Client v3.2.2 For Microsoft Windows OVERVIEW... 1 SYSTEM REQUIREMENTS... 2 INSTALLING THE SSH PACKAGE... 2 STARTING THE PROGRAMS... 5 USING THE SHELL CLIENT... 8 USING
StreamServe Persuasion SP4 Connectors
StreamServe Persuasion SP4 Connectors User Guide Rev A StreamServe Persuasion SP4 Connectors User Guide Rev A 2001-2009 STREAMSERVE, INC. ALL RIGHTS RESERVED United States patent #7,127,520 No part of
Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
How To Use The Correlog With The Cpl Powerpoint Powerpoint Cpl.Org Powerpoint.Org (Powerpoint) Powerpoint (Powerplst) And Powerpoint 2 (Powerstation) (Powerpoints) (Operations
orrelog SQL Table Monitor Adapter Users Manual http://www.correlog.com mailto:[email protected] CorreLog, SQL Table Monitor Users Manual Copyright 2008-2015, CorreLog, Inc. All rights reserved. No part
Using SSH Secure File Transfer to Upload Files to Banner
Using SSH Secure File Transfer to Upload Files to Banner Several Banner processes, including GLP2LMP (Create PopSelect Using File), require you to upload files from your own computer to the computer system
TIBCO Spotfire Automation Services 6.5. User s Manual
TIBCO Spotfire Automation Services 6.5 User s Manual Revision date: 17 April 2014 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR BUNDLED TIBCO
WS_FTP Server. User s Guide. Software Version 3.1. Ipswitch, Inc.
User s Guide Software Version 3.1 Ipswitch, Inc. Ipswitch, Inc. Phone: 781-676-5700 81 Hartwell Ave Web: http://www.ipswitch.com Lexington, MA 02421-3127 The information in this document is subject to
RecoveryVault Express Client User Manual
For Linux distributions Software version 4.1.7 Version 2.0 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by
Runbook Activity Reference for System Center 2012 R2 Orchestrator
Runbook Activity Reference for System Center 2012 R2 Orchestrator Microsoft Corporation Published: November 1, 2013 Applies To System Center 2012 - Orchestrator Orchestrator in System Center 2012 SP1 System
