Custom Script Logs

In this article

    Logs that contain custom script execution results are stored in the /var/log/nxbackupagent/policy_name/CustomScript directory in the AHV Backup Proxy VM.

    Logs of backup jobs are stored in the following directory: /var/log/nxbackupagent/policy_name/.

    Also, you can see the logs in the backup job session in the AHV Backup Proxy console.

    Defining Error Messages in Custom Script

    In a custom script, you can define messages that must be placed in logs upon successful or failed execution of the script.

    • You can use the following template to define a message if the custom script execution was successful.

    {
    "oob_schedule_id": 44509,

    "errorMessage": "",
    "status": "Success"
    }

    Where 44509 is the identifier of created PD snapshot.

    • You can use the following template to define a message if the script execution failed.

    {
    "oob_schedule_id": "",
    "errorMessage": "Unable to get vm_id list for Protection Domain='VeeamBackupProtection': Authentication failed.",
    "status": "Failed"
    }

    In this case the backup job will fail with an error.

    • You can use the following template to define a message if the custom script execution finished with a warning.

    {
    "oob_schedule_id": 44509,
    "errorMessage": "Pre-freeze took more time than expected",
    "status": "Warning"
    }

    Where 44509 is the identifier of created PD snapshot.

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.