Remotely Upgrading Wazuh Agents – CLI Method

This entry is part 1 of 4 in the series Wazuh - SIEM and XDR

Views: 139

To upgrade agents using the command line, use the agent_upgrade tool as follows:

<span class="line"><span style="color: #F97583">/var</span>
<span style="color: #B392F0">/ossec/bin/agent_upgrade -l</span></span>

    [root@wazuh-server wazuh-user]# /var/ossec/bin/agent_upgrade -l
    ID    Name                                Version                   
    001   zyberpatrol-pdc                     Wazuh v4.7.1   

    <span class="line"><span style="color: #F97583">/var</span>
    <span style="color: #B392F0">/ossec/bin/agent_upgrade -a 001</span></span>

    [root@wazuh-server wazuh-user]# /var/ossec/bin/agent_upgrade -a 001

    Upgrading…

    Upgraded agents:
           Agent 001 upgraded: Wazuh v4.7.1 -> Wazuh v4.7.3

    <span class="line"><span style="color: #F97583">/var</span>
    <span style="color: #B392F0">/ossec/bin/agent_control -i 001</span></span>

    [root@wazuh-server wazuh-user]# /var/ossec/bin/agent_control -i 001

    Wazuh agent_control. Agent information:
      Agent ID:   001
      Agent Name: zyberpatrol-pdc
      IP address: any
      Status:     Active

      Operating system:    Microsoft Windows Server 2022 Standard Evaluation
      Client version:      Wazuh v4.7.3
      Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
      Shared file hash:    4a8724b20dee0124ff9656783c490c4e
      Last keep alive:     1712982456

      Syscheck last started at:  Sat Apr 13 04:26:16 2024
      Syscheck last ended at:    Sat Apr 13 04:26:43 2024

    Series NavigationIngesting OPNsense logs into Wazuh SIEM >>