Upgrading the Config Scan Agent

For the AppViewX Config Scan Agent, AppViewX introduces a versioning and an auto-upgrade process that is aimed at ensuring you can deploy new features, fixes, and security updates consistently and securely across all endpoints.
Important: Currently, agent version upgrade is supported only for the Linux v2.0.0 (2026.1) and Windows v1.0.0 (2026.1) base versions. If your current agent version is Linux v1.0.0 (2025.11), please ensure that you replace the older version with the Linux v2.0.0 (2026.1) version.

Upgrading a Linux-based Installation of the Config Scan Agent

The config scan tar bundle downloaded from the release portal also includes an executable binary (config-scan-agent), an upgrade script (config_scan_upgrade.sh), and a scheduler script (config_scan_upgrade_scheduler.sh). You can:
  • Manually use the upgrade script to download the latest binary and replace the existing one
  • Schedule the upgrade process to run automatically at regular intervals

Manually Initiating Upgrades

Prerequisites

Ensure that you have the following:

  • Configuration file (config.ini)
  • Secret key file (secret.key)
  • jq, tar, and realpath utilities installed in the Linux machine
  • Sudo privileges
To manually run the upgrade script:
  1. Assign executable permission to the upgrade script.
    chmod +x ./config_scan_upgrade.sh
  2. Execute the following command:
    ./config_scan_upgrade.sh \
    --config /path/to/config.ini \
    --key /path/to/secret.key \
    --agent /path/to/config-scan-agent \
    –-no-delay
    
    Here:
    • /path/to/config.ini is the absolute path of the config.ini configuration file
    • /path/to/secret.key is the absolute path of secret.key secret key file
    • /path/to/config-scan-agent is the absolute path of config-scan-agent binary
    The command checks the version of the currently installed agent. If the agent is not up to date and an upgrade is required, the upgrade script is triggered, which identifies the latest available version of the agent and initiates the upgrade. The following log messages are displayed on the terminal:
    If the agent version is up to date and an upgrade is not required, the following log messages are displayed:
    Note: To view how to use the upgrade script, run this command with the --help flag. For the complete list of additional commands that can be used for the config scan agent configuration, click here.

Scheduling the Upgrade Process

Prerequisites

Ensure that you have the following:

  • Configuration file (config.ini)
  • Secret key file (secret.key)
  • Upgrade script (config_scan_upgrade.sh) and scheduler script (config_scan_upgrade_scheduler.sh) placed in the same folder as the agent
  • jq, tar, and realpath utilities installed in the Linux machine
  • Sudo privileges
To schedule the upgrade process:
  1. Assign the executable permission to the scheduler and upgrade scripts.
    chmod +x config_scan_upgrade_scheduler.sh 
    chmod +x config_scan_upgrade.sh
  2. Schedule the upgrade process.
    sudo ./config-scan-agent --config /path/to/config.ini --secret-key /path/to/secret.key
            --schedule-upgrade
    Here:
    • /path/to/config.ini is the absolute path of the config.ini configuration file
    • /path/to/secret.key is the absolute path of secret.key secret key file
    Executing this command creates a systemd service that checks for available upgrades every 6 hours and initiates an upgrade if one is available.
    Note: To set a custom upgrade check interval, use the above command with the --interval flag. However, remember that the minimum required interval duration is 90 minutes.
    For example, to set the interval to 90 minutes, execute the following command:
    sudo ./config-scan-agent --config /path/to/config.ini --secret-key /path/to/secret.key --schedule-upgrade --interval 1h30min
    Note: To view how to use the upgrade script, run this command with the --help flag. For the complete list of additional commands that can be used for the config scan agent configuration, click here.
  3. To check logs for the running systemd service, execute the following command:
    journalctl -u config_scan_upgrade.service

Upgrading a Docker-based Installation of the Config Scan Agent

Prerequisite:

Ensure that you have access to images.appviewx.com.

  1. Pull the latest Docker image of the AppViewX Config Scan Agent from the AppViewX Docker Registry.
    docker pull images.appviewx.com/appviewx/pqc_config_scan:latest
  2. Execute the agent using the installation instructions given here.

Upgrading a Windows-based Installation of the Config Scan Agent

The config scan tar bundle downloaded from the release portal also includes an executable binary (config-scan-agent.exe), an upgrade script (config_scan_upgrade.ps1), a scheduler script (config_scan_upgrade_scheduler.ps1), and a batch file (config_scan_upgrade_scheduler.bat). You can:
  • Manually use the upgrade script to download the latest binary and replace the existing one
  • Schedule the upgrade process to run automatically at regular intervals
Note: The agent binary and upgrade scripts will be digitally signed using the AppViewX Intermediate Certificate. This certificate will be added to the Windows Trusted Publishers store to ensure seamless execution of the binary and upgrade scripts without any security restrictions.

Manually Initiating Upgrades

Prerequisites

Ensure that you have the following:

  • Configuration file (config.ini)
  • Secret key file (secret.key)
  • Administrator user/SYSTEM account privileges
To upgrade the agent manually:
Execute the following command in PowerShell:
./config_scan_upgrade.ps1 \
-config /path/to/config.ini \
-key /path/to/secret.key \
-agent /path/to/config-scan-agent.exe \
-no_delay
Here:
  • /path/to/config.ini is the absolute path of the config.ini configuration file
  • /path/to/secret.key is the absolute path of secret.key secret key file
  • /path/to/config-scan-agent is the absolute path of config-scan-agent binary
The command checks the version of the currently installed agent. If the agent is not up to date and an upgrade is required, the upgrade script is triggered, which identifies the latest available version of the agent and initiates the upgrade. The following log messages are displayed on the terminal:
If the agent version is up to date and an upgrade is not required, the following log messages are displayed:
Note: To view how to use the upgrade script, run this command with the --help flag. For the complete list of additional commands that can be used for the config scan agent configuration, click here.

Scheduling the Upgrade Process

Prerequisites

Ensure that you have the following:

  • Configuration file (config.ini)
  • Secret key file (secret.key)
  • Upgrade script (config_scan_upgrade.ps1), scheduler script (config_scan_upgrade_scheduler.ps1), and batch script (config_scan_upgrade_scheduler.bat) placed in the same folder as the agent
  • Administrator user/SYSTEM account privileges
To schedule the upgrade check and automatic agent update process:
  1. Create the configuration file and the secret key file.
  2. To schedule the upgrade process, run the following command in PowerShell:
    ./config-scan-agent.exe --config /path/to/config.ini --secret-key /path/to/secret.key --schedule-upgrade
    Here:
    • /path/to/config.ini is the absolute path of the config.ini configuration file
    • /path/to/secret.key is the absolute path of secret.key secret key file
    Executing this command creates a scheduled task that checks for available upgrades every 6 hours and initiates an upgrade if one is available.
    Note: To set a custom upgrade check interval, use the above command with the --interval flag. However, remember that the minimum required interval duration is 90 minutes.
    For example, to set the interval to 90 minutes, execute the following command in PowerShell:
    ./config-scan-agent.exe --config /path/to/config.ini --secret-key /path/to/secret.key --schedule-upgrade --interval 1h30min
    Logs for the scheduled task can be viewed at the following location: c:\agent\logs.
    Note: To view how to use the upgrade script, run this command with the --help flag. For the complete list of additional commands that can be used for the config scan agent configuration, click here.