Downloading and installing the AS3 package

The AS3 package is an RPM file you download, and then upload to the BIG-IP system using the iControl/iApp LX framework. Alternatively, you can see our Quick Start.

Downloading the RPM file

The first task is to download the latest RPM file. Go to the F5 AS3 site on GitHub, and download the latest (highest numbered) RPM file.

Uploading and installing the AS3 file on the BIG-IP

After you download the RPM, you must upload and then install it on your BIG-IP system. You can use the BIG-IP Configuration utility or cURL (you can alternatively use SCP to upload the file to /var/config/rest/downloads, but you would still have to use cURL command to install the package). Use only one of the following procedures.

Installing AS3 using the BIG-IP Configuration utility

From the Configuration utility:

  1. Before you can use the Configuration utility, you must enable the framework using the BIG-IP command line. From the CLI, type the following command: touch /var/config/rest/iapps/enable. You only need to run this command once (per BIG-IP system).

  2. Click iApps > Package Management LX. Your AS3 version number may be different than the one shown in the following example.

    ../_images/install1.png
  3. Click the Import button.

    ../_images/install2.png
  4. Click Choose File and then browse to the location you saved the RPM file, and then click Ok.

  5. Click the Upload button.

    ../_images/install3.png

Installing AS3 using cURL from the Linux shell

If you want to use cURL to install AS3, use the following command syntax. First, set the file name and the BIG-IP IP address and credentials, making sure you use the appropriate RPM file name, including build number (36 in the following example), and BIG-IP credentials.

FN=f5-appsvcs-3.0.0-36.noarch.rpm

CREDS=admin:password

IP=IP address of BIG-IP

Copy the following commands to upload the package. If you uploaded the RPM by another method, you can skip these commands.

LEN=$(wc -c $FN | cut -f 1 -d ' ')

curl -kvu $CREDS https://$IP/mgmt/shared/file-transfer/uploads/$FN -H 'Content-Type: application/octet-stream' -H "Content-Range: 0-$((LEN - 1))/$LEN" -H "Content-Length: $LEN" -H 'Connection: keep-alive' --data-binary @$FN

Copy the following commands to install the package.

DATA="{\"operation\":\"INSTALL\",\"packageFilePath\":\"/var/config/rest/downloads/$FN\"}"


curl -kvu $CREDS "https://$IP/mgmt/shared/iapp/package-management-tasks" -H "Origin: https://$IP" -H 'Content-Type: application/json;charset=UTF-8' --data $DATA

Updating AS3

When F5 releases a new version of AS3, use the same procedure you used to initially install the RPM. For example, if you used the Configuration utility, when you click Import and then select the new RPM, the system recognizes you are upgrading AS3:

../_images/upgrade.png

Note

Installing or uninstalling AS3 does not affect the BIG-IP configuration created by AS3.

Reverting to a previous version of AS3

If for any reason you want to revert to a previous version of AS3, you must first remove the version of AS3 on your BIG-IP system (iApps > Package Management LX > f5-appsvcs > Uninstall). After you uninstall, you can import the RPM for the version of AS3 you want to use.


Verifying the integrity of the AS3 RPM package

F5 Networks provides a checksum for each of our AS3 releases so you can confirm the integrity of the RPM package.

You can get a checksum for a particular template by running one of the following commands, depending on your operating system:

Linux: sha256sum <path_to_template>

Windows using CertUtil: CertUtil –hashfile <path_to_template> SHA256

You can compare the checksum produced by that command against the .sha256 file in the dist directory (https://github.com/F5Networks/f5-appsvcs-extension/tree/master/dist).