Upgrading Wazuh agents on HP-UX systems
Follow the steps to upgrade the Wazuh agent on HP-UX systems.
Download the latest HP-UX installer.
Stop the Wazuh agent.
# /var/ossec/bin/wazuh-control stop
Backup the
ossec.conf
configuration file.# 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.
# tar -xvf wazuh-agent-4.7.5-1-hpux-11v3-ia64.tar
Restore the
ossec.conf
configuration file.# 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
Note
When upgrading agents from versions earlier than 4.x, make sure that the communication protocol is compatible. Up to that point, UDP was the default protocol and it was switched to TCP for later versions. Edit the agent configuration file ossec.conf
to update the protocol or make sure that your Wazuh manager accepts both protocols.