Skip to content

Generating diagnostic data using Qkview utility

erjac77 edited this page Jun 28, 2018 · 2 revisions
- name: Generate diagnostic data
  hosts: bigips
  connection: local
  roles:
    - erjac77.module-f5bigip
  vars:
    http_user: admin
    http_pass: admin
    http_port: 443
    qkview_file_name: "{{ inventory_hostname }}.qkview"
    qkview_max_file_size: 0
    qkview_timeout: 500
    qkview_exclude: [audit, secure]
    qkview_source_path: /var/tmp/
    qkview_dest_path: /var/config/rest/madm
    qkview_download_path: "{{ playbook_dir }}/files/{{ qkview_file_name }}"

  tasks:

    - name: Generate a Qkview file
      f5bigip_util_qkview:
        f5_hostname: "{{ inventory_hostname }}"
        f5_username: "{{ http_user }}"
        f5_password: "{{ http_pass }}"
        f5_port: "{{ http_port }}"
        filename: "{{ qkview_file_name }}"
        max_file_size: "{{ qkview_max_file_size }}"
        timeout: "{{ qkview_timeout }}"
        exclude: "{{ qkview_exclude }}"
    
    - name: Move the Qkview file into the madm folder
      f5bigip_util_unix_mv:
        f5_hostname: "{{ inventory_hostname }}"
        f5_username: "{{ http_user }}"
        f5_password: "{{ http_pass }}"
        f5_port: "{{ http_port }}"
        file_name: "{{ qkview_file_name }}"
        source_path: "{{ qkview_source_path }}"
        dest_path: "{{ qkview_dest_path }}"
    
    - name: Download the Qkview file
      f5bigip_shared_file_transfer_madm:
        f5_hostname: "{{ inventory_hostname }}"
        f5_username: "{{ http_user }}"
        f5_password: "{{ http_pass }}"
        f5_port: "{{ http_port }}"
        file_name: "{{ qkview_file_name }}"
        download_path: "{{ qkview_download_path }}"
Clone this wiki locally