Creating a backup server

The macOS agent can be configured with one or more backup servers to transmit events or update the agent itself.

If the main server is unavailable, the agent will automatically switch to the backup one. If the first backup server is unavailable, the agent will switch to the next one specified in the list.

You can specify backup servers in two ways:

  1. Via terminal:

    sudo /Library/Application\ Support/.AtomSec/StaffAgent.app/Contents/MacOS/StaffAgent add_servers 1.1.1.1 555 https://2.2.2.2:888
    

    Here is an example of adding two backup servers: 1.1.1.1 with communication port 555 and 2.2.2.2 with port 888.

    After adding new servers, restart the agent for the updated configuration to take effect:

    sudo /Library/Application\ Support/.AtomSec/StaffAgent.app/Contents/MacOS/StaffAgent restart
    
  2. Manually in the configuration file:

    2.1 Open the configuration file /Library/Caches/com.atomsec.ibatyr/config.

    2.2 Add the address of the new server and the port to connect to it in the format:

    server2 = 1.1.1.1
    port2 = 555
    

To specify the previously added server 1.1.1.1 with communication port 555 as the primary one, use the command:

sudo /Library/Application\ Support/.AtomSec/StaffAgent.app/Contents/MacOS/StaffAgent 1.1.1.1 555 restart