Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • getftplog - get information about the server for logging; returns a response in the form

    Code Block
    <ftplog server="ftp://server.com" login="myuser1" port="" enablelog="0" lifetime="110000" period="3600" status="Disable"/>

    , where:

    • server - the address of the FTP server;
    • port - port of the server, if the field is empty, then passive connection mode is used, when parameters are detected automatically;
    • login - user login;
    • password - the password of the user;
    • enablelog - enabled or disabled logging to the server (0 - disabled, 1 - enabled);
    • enablelogvideo - saving of video files to the server iis enabled or disabled (0 - disabled, 1 - enabled);
    • lifetime - the lifetime of the files, in seconds (the default is 7 days, ie 604800 seconds), if the value is 0, the files from the server are not deleted;
    • status - describes the status of the connection to the server:
      • Disable - Logging is disabled;
      • Enable - the logging is enabled, but the connection to the server has not yet been established (there is no data to send to the server yet);
      • Normal - normal operation;
      • messages are reported here if there are connection errors;
  • setftplog - set the logging parameters to the server. Extra options are:
    • server - the address of the FTP server;
    • port - server port, if you specify an empty field, then passive connection mode is used, when parameters are detected automatically;
    • login - user login;
    • password - the password to the server;
    • lifetime - the lifetime of the files, in seconds (minimum 24 hours, a maximum of six months), if the value is 0, files from the server are not deleted;
    • enablelog - logging process to the server is enabled or disabled  (0 - disabled, 1 - enabled);
    • enablelogvideo - saving video to the server is enabled or disabled  (0 - disabled, 1 - enabled).
  • sendftplog - send files (if available) to FTP server with the parameters specified by the "setftplog" command.

When specifying parameters, if the new configuration is different from the current one, the temporary log and dump files are sent to the FTP server, new logging parameters are applied. In addition, the settings are saved in the device's permanent memory, an additional save command is not required.

...