ConnectFtp

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command connects to FTP server on the specified GSM port, using specified server parameters IP address or Host Name, User Name and Password. It requires that Data session on the specified GSM port be already up. If any of required parameters is not needed it can be specified as NULL string ("").
Command waits until connection is established or optional timeout (entered in seconds) expired, or general timeout expired.


COMMAND

Command Input arguments Returns
ConnectFtp Port index, FTP Server IP address of Host Name, [:Peer Port,] User Name, Password [Timeout] In the case of error, Error Code

All error messages are available in Data Commands Status Message list


EXAMPLE

~# ConnectFtp 0 ftp.iqsim.com "dupon" "parismonamour"
FTP CONNECTED

~# ConnectFtp 1 82.97.16.83 "dupon" "parismonamour"
DESTINATION HOST NOT REACHABLE

~# ConnectFtp 1 82.97.16.83 "dupon" "parismonamour"
TIMEOUT EXPIRED

~# ConnectFtp 0 ftp.iqsim.com "dupon" "toto"
PASSWORD REJECTED BY SERVER

~# ConnectFtp 0 ftp.iqsim.com "dupon" "parismonamour"
DATA LINK IS DOWN