How to: Use BIG-IP Next Central Manager to generate and upload to iHealth a QKView file for BIG-IP Next instances

Overview

You can generate a QKView file for a BIG-IP Next instance (either standalone or HA configuration), which is automatically uploaded to F5 iHealth. Additionally, you can download the QKView file directly from BIG-IP Next Central Manager for a limited time after it is generated.

Prerequisites

  • BIG-IP Next instances are added to BIG-IP Next Central Manager.

  • If generating a QKView task for BIG-IP Next HA instances, identify whether you are generating a QKView file for the active or standby node, or both.

  • F5 iHealth account credentials including the Client ID and Secret. If you have not yet updated credentials:

    1. On the new iHealth site, login with your email and password.

    2. In the API Token area, click Generate New Credentials.

  • (Optional) A F5 Support case number.

Procedures

You can generate and download a QKView file that is automatically uploaded to iHealth for a BIG-IP Next standalone or HA instance using the BIG-IP Next Central Manager’s UI or API:

Generate a QKView file for a BIG-IP Next instance

When generating a QKView file from BIG-IP Next Central Manager, the generated file is automatically uploaded to your iHealth account.

If you have not yet created a iHealth account, you need to create one before you proceed. Go to F5 iHealth to create an account.

Once the QKView file generation process is complete, review the status to ensure the QKView file was successfully uploaded to iHealth:

  • Completed - The QKView file was generated and automatically sent to the iHealth account.

  • Failed - The QKView file either failed to generate, or was generated, but was not sent to the iHealth account. The error will be indicated in the status.

Use one of the following procedures based on your BIG-IP Next instance configuration, and whether you are using the UI or API:

Generate a QKView file for a BIG-IP Next HA instance - UI

  1. Click the Workspace icon next to the F5 logo, and click Instances.

  2. From the left menu click My Instances.

  3. Select the row for a BIG-IP Next HA instance, click Actions… and then Create QKView. Alternatively, you can click the instance name, and then click QKView Files from the instance properties panel menu.

  4. Click Create.

  5. Enter the required iHealth credentials:

  6. Enter the Client ID.

  7. Enter the Secret.

  8. (Optional) To overwrite previously saved credentials select an Expiry Date for BIG-IP Next Central Manager to store iHealth credentials (up to 6 months).

    1. Click Submit and confirm the action.

  9. Click Generate.

  10. Enter a QKView File Name.

  11. (Optional) Enter your F5 Support Case Number.

  12. At the bottom of the panel, select whether to generate a QKView for either the active, standby, or both nodes.

  13. Click Generate.

The QKView file list displays the status of the node(s) selected. Generating a QKView file can take a few minutes. Review the statuses to ensure the file was uploaded to iHealth.

Generate a QKView file for a standalone BIG-IP Next instance - UI

  1. Click the Workspace icon next to the F5 logo, and click Instances.

  2. From the left menu click My Instances.

  3. Select the row for a BIG-IP Next standalone instance, click Actions… and then Create QKView. Alternatively, you can click the instance name, and then click QKView Files from the instance properties panel menu.

  4. Click Create.

  5. Select the row for a BIG-IP Next HA instance, click Actions… and then Create QKView. Alternatively, you can click the instance name, and then click QKView Files from the instance properties panel menu.

  6. Click Create.

  7. Enter the required iHealth credentials:

  8. Enter the Client ID.

  9. Enter the Secret.

  10. (Optional) To overwrite previously saved credentials select an Expiry Date for BIG-IP Next Central Manager to store iHealth credentials (up to 6 months).

    1. Click Submit and confirm the action.

  11. Click Generate.

  12. Enter a QKView File Name.

  13. (Optional) Enter your F5 Support Case Number.

  14. Click Generate.

Generating a QKView file can take a few minutes. Review the statuses to ensure the file was uploaded to iHealth.

Generate a QKView file for a BIG-IP Next instance - API

Send a post request to generate a QKView file for a BIG-IP Next instance. The generated QKView file is automatically uploaded to the iHealth account listed in the request. Ensure that you have the following information available:

  • instance_id - To view a full list of managed instances, send the following get request: GET https://{{bigip_next_cm_mgmt_ip}}/api/v1/spaces/default/instances

  • filename - Add a unique file name to identify the QKView file.

  • ihealth_user and ihealth_password - Have your iHealth account credentials ready. To check if your credentials are valid use the OpenAPI for QKView: F5 BIG-IP Next API Specification - QKView Feature.

  • f5_support_case - (Optional) you can add an F5 support case number to iHealth and share with the listed case owner.

POST https://{{bigip_next_cm_mgmt_ip}}/api/v1/spaces/default/instances/{instance_id}/qkviews

Request body example with iHealth credentials and F5 Support case number:

{
  "instance_id": "f4a0bdb2-8b31-4a8e-aee9-7f2ac2b629d2",
  "filename": "qkview_file",
  "source": "INSTANCE",
  "storage": "EXTERNAL",
  "ihealth_user": "user_admin",
  "ihealth_password": "user_password",
  "save_credential": true,
  "user_agent": "CM",
  "f5_support_case": "C351101",
  "share_with_case_owner": false,
  "visible_in_gui": false
}

Successful response example:

{
  "_links": {
    "self": {
      "href": "/v1/qkviews/43b7bd5b-5b61-4a64-8fe4-68ef8ed910f2"
    }
  },
  "qkview_id": "43b7bd5b-5b61-4a64-8fe4-68ef8ed910f2",
  "task_id": "3325e40d-d9f2-4ab7-adb3-4ce1b6dbd48e"
}

Download a QKView file

Once you generate a QKView file, you can download the QKView file to your local network. If the QKView file generation task fails, retry generating the QKView.

Note: QKView files are retained for a limited time on BIG-IP Next Central Manager. Depending on the outcome of the file generation, the following is the amount of time a QKView file is saved after it is generated:

  • The QKView task status is Completed - 1 day

  • The QKView task status is Failed- 7 days

  • QKView file task record information from the instance log - 90 days

Once a QKView file is uploaded to iHealth, you can download directly from your iHealth account.

Use one of the following procedures based on whether you are using the UI or API:

Download a QKView file - UI

  1. Click the Workspace icon next to the F5 logo, and click Instances.

  2. From the left menu click My Instances.

  3. Select the name of the instance to open the instance properties panel.

  4. From the panel menu, click QKView Files.

  5. Select the check box for the QKView file row.

  6. Click Download.

The QKView file is downloaded to your local system’s downloads. You can manually upload the file to iHealth or F5 support.

Note: Do not cancel the action during the download.

Download a QKView file and upload to iHealth - API

Once you have successfully generated a QKView file, you can download it to your local system. Ensure you have the following information:

  • qkview_id - The ID number created when the file was generated. For a list of all QKView file information send the following get request: GET https://{{bigip_next_cm_mgmt_ip}}/api/v1/spaces/default/instances/{instance_id}/qkviews

GET https://{{bigip_next_cm_mgmt_ip}}/api/v1/spaces/default/instances/{instance_id}/qkviews/files/{id}/download

To upload the downloaded QKView file to iHealth use the following post request:

POST https://{{bigip_next_cm_mgmt_ip}}/api/v1/spaces/default/instances/{instance_id}/qkviews/{id}/upload

Request body example:

{
  "username": "user",
  "user_agent": "Chrome",
  "description": "Description about the request",
  "f5_support_case": "case",
  "share_with_case_owner": false,
  "visible_in_gui": true
}

Delete a QKView file log entry

You can delete a QKView file from your instance QKView file log and delete the QKView file from BIG-IP Next Central Manager, if applicable. When removing a QKView log entry for a BIG-IP Next HA instance, you must delete all log entries associated with the QKView generation task.

Deleting a log entry from BIG-IP Next Central Manager does not impact your upload to iHealth.

Note: QKView file log entries are automatically removed from BIG-IP Next Central Manager after 90 days. Depending on the status, QKView files can be downloaded from BIG-IP Next Central Manager within 1 or 7 days after it is generated.

Use one of the following procedures based on whether you are using the UI or API:

Delete a QKView file log entry - UI

  1. Click the Workspace icon next to the F5 logo, and click Instances.

  2. From the left menu click My Instances.

  3. Select the name of the instance to open the instance properties panel.

  4. From the panel menu, click QKView Files.

  5. Select the check box for the QKView file row. If you have generated multiple files for an HA instance, select all rows associated with the HA instance.

  6. Click Delete.

The QKView file log entry is removed from the list.

Delete a QKView file log entry - API

Ensure you have the following information:

  • qkview_id - The ID number created when the file was generated. For a list of all QKView file information send the following get request: GET https://{{bigip_next_cm_mgmt_ip}}/api/v1/spaces/default/instances/{instance_id}/qkviews

Use the following delete request to remove the QKView file from the instance log:

DELETE https://{{bigip_next_cm_mgmt_ip}}/api/v1/spaces/default/instances/{instance_id}/qkviews/{id}