Upgrading Wazuh agents on Solaris systems

Select your Solaris version and follow the steps to upgrade the Wazuh agent.

  1. Download the latest Solaris 11 installer. Choose one option depending on the host architecture.

  2. Stop the Wazuh agent.

    # /var/ossec/bin/wazuh-control stop
    
  3. Upgrade the Wazuh agent. Choose one option depending on the host architecture.

    • Solaris 11 i386:

      # pkg install -g wazuh-agent_v4.4.3-sol11-i386.p5p wazuh-agent
      
    • Solaris 11 sparc:

      # pkg install -g wazuh-agent_v4.4.3-sol11-sparc.p5p wazuh-agent
      
  4. Start the Wazuh agent.

    # /var/ossec/bin/wazuh-control start
    
  1. Download the latest Solaris 10 installer. Choose one option depending on the host architecture.

  2. Stop the Wazuh agent.

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

    # cp /var/ossec/etc/ossec.conf ~/ossec.conf.bk
    # cp /var/ossec/etc/client.keys ~/client.keys.bk
    
  4. Remove the Wazuh agent.

    # pkgrm wazuh-agent
    
  5. Install the Wazuh agent. Choose one option depending on the host architecture.

    • Solaris 10 i386:

      # pkgadd -d wazuh-agent_v4.4.3-sol10-i386.pkg wazuh-agent
      
    • Solaris 10 sparc:

      # pkgadd -d wazuh-agent_v4.4.3-sol10-sparc.pkg wazuh-agent
      
  6. Restore the ossec.conf and 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
    

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.