Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
andreaf-it
Novice
Posts: 5
Liked: never
Joined: Sep 11, 2018 11:57 am
Full Name: Andrea Fantinel
Contact:

connection error script collect result endpoint

Post by andreaf-it »

Hi,
I try to edit a script for collect result of endpoint backup installed on different workstation.
I try to use this script but the result is SERVER CONNECTION ERROR.
Someone has idea how to fix this problem? or know an other way to do the same thing?
Thak you
Andrea

Code: Select all

"   Start to Veeam EPB connect to servers..."
foreach($Server in $VebServers)
    {  
    $jobtemp = @()
    try
        {
            $jobtemp += Get-EventLog -LogName "Veeam Agent" -ComputerName $Server.Destination -Newest 3 | where {$_.message -like "*Success*" -or $_.message -like "*Fail*" -or $_.message -like "*Warning*" }
            foreach($jobtemp1 in $jobtemp)
            {  
                #$MessageTemp1 = "Warning" # This is a work-around. All messages that is not Success or Fail become a Warning
                
                if($jobtemp1.Message -like "*Success*" )
                    {
                        $MessageTemp1 = "Success"
                    }
                else
                    {
                        $MessageTemp1 = "Failed"
                    } 
                else
                    {
                        $MessageTemp1 = "Warning"
                    }                   


                $jobSrvs1 += New-Object -TypeName psobject -Property @{jobname=$jobtemp1.Source; result=$MessageTemp1; 'Desc'=$Server.Desc + " (" + $Server.Destination + ")"; 'Date'=$jobtemp1.TimeGenerated} 
             }
             "    " + $Server.Desc + " Processed Correctly..."
         }
     catch #Server connection error
        {
        $jobSrvs1 += New-Object -TypeName psobject -Property @{jobname="SERVER CONNECTION ERROR!"; result="---"; 'Desc'=$Server.Desc + " (" + $Server.Destination + ")"; 'Date'="" }
        "    Error processing " + $Server.Desc + " !!"
Dima P.
Product Manager
Posts: 14415
Liked: 1576 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: connection error script collect result endpoint

Post by Dima P. »

Hello Andrea.

Have you tried to rely on Windows events generated by Veeam Agent for Windows? Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests