The Features Menu :: FTP


param.cgi?cmd=getftpattr

Get INSTAR Cloud Server Parameter

  • ft_server: FTP Server Address
  • ft_port: FTP Server Port
  • ft_username: FTP Username
  • ft_password: FTP Password
  • ft_mode: FTP Mode Port (0) or Passive (1)
  • ft_dirname: FTP Directory
  • ft_autocreatedir: Automatically create the directory 0 (no), 1 (yes)
  • ft_dirmode: 0 (Create a new Folder every Day), 1 (All Files in One Directory)
  • ft_ssl: FTPS Encryption - 0:None, 1:SSL, 2: TLS

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getftpattr

ft_server="";
ft_port="21";
ft_username="";
ft_password="";
ft_dirname="/";
ft_dirmode="0";
ft_autocreatedir="1";
ft_ssl="0";
response="200";

GET: http://192.168.2.168/param.cgi?cmd=getftpattr&-usr=admin&-pwd=instar

ft_server="";
ft_port="21";
ft_username="";
ft_password="";
ft_dirname="/";
ft_dirmode="0";
ft_autocreatedir="1";
ft_ssl="0";
response="200";

SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setftpattr&-ft_server=192.168.178.1&-ft_port=21&-ft_username=ftpuser&-ft_password=123456&-ft_mode=1&-ft_dirname=.%2F&-ft_autocreatedir=1&-ft_dirmode=1&-ft_ssl=0

param.cgi?cmd=testftp

Function | Get Test FTP Server Parameter

  • chn: 1st, 2nd or 3rd audio channel: 1, 2, 3
  • Result: -0:succeed, -1: unknown error, -2: no connection to server, -3: username or password error, -4: path error, -5: no connection to server

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=testftp
result=1;

GET: http://192.168.2.168/param.cgi?cmd=testftp&-usr=admin&-pwd=instar