You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
358 B
Python
18 lines
358 B
Python
6 years ago
|
"""
|
||
|
Sample script to detect all SQLServer instances
|
||
|
"""
|
||
|
|
||
6 years ago
|
from Net2Scripting.network.sqlserver import SqlServerFinder
|
||
6 years ago
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
|
||
|
inst = SqlServerFinder()
|
||
|
print("Please wait for the servers to respond...")
|
||
|
srvs = inst.find()
|
||
|
if srvs:
|
||
|
for s in srvs:
|
||
|
print(s)
|
||
|
else:
|
||
|
print("No servers detected")
|