Comprehensive data protection for all workloads
Post Reply
sergio.alegre
Novice
Posts: 4
Liked: never
Joined: Dec 02, 2015 10:54 am
Full Name: Sergio Alegre
Contact:

SureBackup check an especific port is LISTENING

Post by sergio.alegre » Mar 09, 2018 1:56 pm

Hi i have seen this way to check services:
https://www.veeam.com/blog/automate-rec ... ackup.html

But i need to check some ports which has to be LISTENING and are not services.

Can someone using this yet share the .bat code to do so?

Thanks in advance!

SBarrett847
Service Provider
Posts: 309
Liked: 40 times
Joined: Feb 02, 2016 5:02 pm
Full Name: Stephen Barrett
Contact:

Re: SureBackup check an especific port is LISTENING

Post by SBarrett847 » Mar 12, 2018 12:50 pm

You could try powershell scripting with Test-Netconnection to a specific port? As to how to get "TcpTestSucceeded : True" returned to Veeam, I don't know.

Code: Select all

PS C:\Users\administrator> Test-NetConnection www.google.com -Port 443


ComputerName     : www.google.com
RemoteAddress    : 209.85.203.147
RemotePort       : 443
InterfaceAlias   : Ethernet
SourceAddress    : 10.16.1.12
TcpTestSucceeded : True

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 46 guests