Upgrading Wazuh agents on HP-UX endpoints

Follow the steps to upgrade the Wazuh agent on HP-UX endpoints.

  1. Download the latest HP-UX installer.

  2. Stop the Wazuh agent.

    # /var/ossec/bin/wazuh-control stop
    
  3. Backup the /var/ossec/etc/ossec.conf and /var/ossec/etc/client.keys files:

    # cp /var/ossec/etc/ossec.conf ~/ossec.conf.bk
    # cp /var/ossec/etc/client.keys ~/client.keys.bk
    
  4. Only for upgrades from version 4.2.7 or lower:

    1. Delete the ossec user and group.

      # groupdel ossec
      # userdel ossec
      
    2. Create the wazuh user and group.

      # groupadd wazuh
      # useradd -G wazuh wazuh
      
  5. Deploy the Wazuh agent files.

    # gzip -d wazuh-agent-4.11.0-1-hpux-11v3-ia64.tar.gz
    # tar -xvf wazuh-agent-4.11.0-1-hpux-11v3-ia64.tar
    
  6. Restore the /var/ossec/etc/ossec.conf and /var/ossec/etc/client.keys files:

    # mv ~/ossec.conf.bk /var/ossec/etc/ossec.conf
    # chown root:wazuh /var/ossec/etc/ossec.conf
    # mv ~/client.keys.bk /var/ossec/etc/client.keys
    # chown root:wazuh /var/ossec/etc/client.keys
    
  7. Start the wazuh-agent.

    # /var/ossec/bin/wazuh-control start