How To Guides > Edge Cache Pre-Population > Creating a pre-population job with the CLI

Create a Pre-population Job in the CLI

Add and configure pre-population jobs using CLI commands.

  1. Click System > Tools and click Console.
  2. Log into the console.

    The prompt exinda-appliance > is displayed.

  3. To enter configuration mode, type enable then configure terminal.

    The prompt exinda-appliance (config) # is displayed.

  4. To create the pre-population job, at the prompt type the following command with the appropriate parameters:

    acceleration prepopulate <name> {location|username|password|recursive|start|stop}

    where:

    • <name> is the name of the pre-population job.
    • location cifs <server> <path> configures an SMB server and path.
    • location http <url> configures an HTTP path.
    • username | password is the authentication information for the server.
    • recursive fetches all the files in the specified directory, as well as those in sub-directories.
    • start | stop controls the transfer.
  5. To view the pre-population rules and the status of those rules, run the following command:

    show acceleration prepopulate

Examples

In the following examples, the pre-populate job is called videos.

  • All files and folders from the "Public\Documentation" folder on a Windows file share:

    exinda-appliance (config) # acceleration prepopulate videos location cifs MYSERVER public\documentation

  • Including a username and password for authenticating to the server:

    Exinda-appliance (config) # acceleration prepopulate videos username myname password mypassword

  • Download the entire path specified, including sub-folders:

    Exinda-appliance (config) # acceleration prepopulate videos recursive

  • Start the pre-populate job:

    Exinda-appliance (config) # acceleration prepopulate start

  • Display the status of the pre-population job:

    Exinda-appliance (config) # show acceleration prepopulate videos