PowerShell script exchange
Post Reply
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Proxy

Post by marius roma »

How can I detect the proxy used by a given backup or replica job?
Regards
marius
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Proxy

Post by veremin » 1 person likes this post

Kindly, check our online Help Center. Thanks.
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Re: Proxy

Post by marius roma »

Many thanks
marius
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Re: Proxy

Post by marius roma »

I suspect I asked the wrong question.
I made a test and I discovered that I get the list of proxyies that could be used by a given job.
I need instead to get the proxy that was used by a given task, the one listed in the job's statistics as:

Code: Select all

26/05/2016 16:17:44 :: Using backup proxy <Proxy_name> for disk Hard disk 1 [hotadd] 
26/05/2016 16:18:54 :: Using backup proxy <Proxy_name> for disk Hard disk 2 [hotadd] 
How can I get such information?
Regards
Marius
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Proxy

Post by veremin »

In this case you should get the list of task sessions and parse their logs to get the required data. If I'm not mistaken, there has been already a script doing the very same operation. I will try to find it either here or in my inbox and let you know in accordance. Thanks.
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Proxy

Post by veremin » 1 person likes this post

I managed to find it; take a look and see whether it meets your expectations. Thanks.
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Re: Proxy

Post by marius roma »

Thank you for the pointer.
I looked at it but the sample looks to do something different from what I need to do.
I need to see which proxy was used by a given task, to see how the tasks were distribuited among the proxyies.
Can I get such information from any property of the task?
Regards
Marius
veremin
Product Manager
Posts: 20271
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Proxy

Post by veremin »

The referenced script provides a great example on how task session logs can be parsed, and how gotten information can be matched to proxy server names, etc.. Also, it illustrates how resulting data can be represented in understandable way.

You will have to change selection algorithm, so that instead of active sessions only finished ones are caught, and slightly modify the output. Feel free to provide your feedback in the mentioned thread.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests