copy https announcement-file

Last Updated : Dec 07, 2021 |
Downloads a file from an HTTP or HTTPS server to the announcement directory of the gateway. If an URL with a username (for example, username@host) is used with the command, the HTTP command prompts for the password. Here, the password can be blank.
Prolog information
Note:
If you install increased RAM, the command works only if an announcement file system exists. An announcement file system is created when one of the following occurs:
  • The gateway is registered to Communication Manager, and at the SAT interface of the Communication Manager, you enter enable announcement-board.
  • You run a backup or restore operation (without reset).

Syntax

copy https announcement-file <file-url> [transfer-type] [<destination-filename>]

Parameters

Parameter
Description
Possible Values
Default Value
URL
The URL contains the following elements in order:
  • http://or https://
  • username (optional) followed by @
  • webserver host:- IPv4 address, IPv6 address, or Fully Qualified Domain Name of the remote HTTP or HTTPS server
  • :webserver port (optional)
  • /file path
  • path
  • filename
https://
transfer-type
The transfer type depending on the type of verification. The options are:
  • secure: verifies the certificate and hostname, applicable for https
  • certificate: verifies the webserver TLS certificate, applicable for https
  • unsecure: no TLS certificate verification required
  • secure
  • certificate
  • unsecure
  • secure for https
  • unsecure for http
destination-filename
The destination file name, including full path, if a name change is required. File name must not include blank spaces.
Up to 32 characters, not including the path

User level

read-write

Context

general

Example

To download the announcement file from the HTTP server http://www/example.com/files/ann123.wav:
Gxxx-001cp(super)# copy http announcement-file http://www.example.com/files/ann123.wav
To download the announcement file from the HTTPS server at IP address 2001:db8::c657:8699 ann1234 and save it in the announcement directory of the gateway using the transfer type as secure and using login
Gxxx-001cp(super)# copy https announcement-file [
2001:db8::c657:8699]:443/ann.wav secure
To download the announcement file from the HTTPS server https://user@1.2.3.4/ann_files/ann12.wav and save it in the announcement directory of the gateway using the transfer type as secure and using login
Gxxx-001cp(super)# copy https announcement-file 
https://user@1.2.3.4/ann_files/ann12.wav cert
Password: