Upgrading Wazuh agents on HP-UX endpoints
Follow the steps to upgrade the Wazuh agent on HP-UX endpoints.
Download the latest HP-UX installer.
Stop the Wazuh agent.
# /var/ossec/bin/wazuh-control stop
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
Only for upgrades from version 4.2.7 or lower:
Delete the ossec user and group.
# groupdel ossec # userdel ossec
Create the wazuh user and group.
# groupadd wazuh # useradd -G wazuh wazuh
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
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
Start the wazuh-agent.
# /var/ossec/bin/wazuh-control start