scanning our network for MySQL servers

Is there a way to use a script or a tool to scan our network for MySQL servers. We are trying to locate how many and which servers they are.
BuffStateITAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
You can use nmap to locate systems with open ports.
You can then use that information to connect to each looking for a mysql header response.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BuffStateITAuthor Commented:
I am not sure about nmap ? is that a utility?
0
arnoldCommented:
Yes, it is a network scanning tool.
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

BuffStateITAuthor Commented:
Is there a site to download nmap from? I only work with Windows not Linux.
0
arnoldCommented:
You can download it from http://nmap.org/book/inst-windows.html
0
BuffStateITAuthor Commented:
Thank you so far. I will just have to figure the syntax for our entire network 136.183.*.*
and it looks like port 1433
0
arnoldCommented:
nmap.exe -sP -p1433 131.183.x/24
131.183.183.2-15 will work as well.
http://nmap.org/book/man-port-scanning-techniques.html
It has a guide and explanation of using the application
http://nmap.org/book/man.html

Note however, if you have firewalls they will generates port scanning alerts, so make sure to check with your network/security admins prior to running such a scan.
0
BuffStateITAuthor Commented:
Boy I just can't get the right syntax of this command yet. agghhhh
0
arnoldCommented:
Oops, the port to scan for is 3306 not 1433.

nmap -v -p3306 131.183.x.0/24
0
BuffStateITAuthor Commented:
Thanks Arnold, but below is what I come up with.
 ------------


Starting Nmap 6.40 ( http://nmap.org ) at 2013-10-18 11:02 Eastern Daylight Time

Read data files from: C:\Program Files (x86)\Nmap

Nmap done: 0 IP addresses (0 hosts up) scanned in 2.50 seconds

           Raw packets sent: 0 (0B) | Rcvd: 0 (0B)

Failed to resolve "131.183.x.0".

WARNING: No targets were specified, so 0 hosts scanned.
0
arnoldCommented:
You need to use either the CIDR notation 131.183.x.0/24 meaning the entire class C
131.183.x.2-254
there are different ways to tell nmap that it is dealing with a range of IPs.
0
BuffStateITAuthor Commented:
nmap -v -p3306 131.183.x.0/24  - is what I actually used and it gave me back that failed response.

Arnold, is there any other way of phrasing this command?
0
arnoldCommented:
131.183.x.2-254

The issue is if an IP can not be pinged it will be skipped.

You need to use -Pn to indicate the host is always alive without a check.

nmap -v -Pn -p3306 131.183.x.2-254
0
BuffStateITAuthor Commented:
Thanks Arnold, it still gave me the original failed message I uploaded I few posts ago. I'll keep trying. IF you can think of anything more let me know.

Thanks
Paul
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.