Cisco IOS show DHCP host names

What is the cisco IOS command to sho all DHCP clients and host-names. I know sh ip dhcp binding shows the MAC addresses but I need to also find the host names which relate to the IPs. Thanks.
jsm11482Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

batry_boyCommented:
There is not a command in the Cisco IOS that will show you the hostname of a DHCP client...it simply does not keep this information.

If you want to find out the hostnames associated with the IP addresses or MAC addresses, then I would recommend a utility called Angry IP Scanner...quick, simple, free, and doesn't require an installation!  Check it out here:

http://www.angryziber.com/ipscan
0
jsm11482Author Commented:
Thanks. I'll give it a try tomorrow.
0
batry_boyCommented:
You give it a range of IP addresses to scan and it can show you the DNS hostname, the NetBIOS name, the MAC address, the name of the user account currently logged in, and can even scan for open ports, plus it's fast...use it quite often myself.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

jsm11482Author Commented:
It's been a while but I did try this. The problem is that the hosts are behind firewalls so how can I figure this out? I have access to the router. Is there any command I can run?
0
batry_boyCommented:
You say the hosts are behind a firewall but you have access to the router, so I'm a little confused on the network topology here.  Can you submit a simple network diagram showing the placement of the hosts in relation to the firewall and/or router you mention as well as where you are trying to see the hostnames from, i.e. your PC?  That will provide a clearer picture of how to do what you are wanting to do, if it's possible at all.
0
jsm11482Author Commented:
Basically someone is hoggin the network and I know their IP but I can not resolve the IP to a hostname - it appears they are behind a firewall. We basically have the main router which is the DHCP server. All clients/hosts get their IP from the router either via the wired or wireless network. I can either run a command on the router to figure out who the culprit is or I can run some softare on my laptop. I hope that makes sense, thanks!
0
batry_boyCommented:
Is the IP on the same subnet as where you are checking from?
0
jsm11482Author Commented:
Yes. And I have the MAC addreses, which I got by running: sh ip dhcp binding. If that helps.
0
batry_boyCommented:
Then if it is a Windows machine, it should respond to Netbios requests.  If it is, you can use the "nbtstat" command from a Windows command prompt and specify the IP address and it should return the hostname and possibly the user ID currently logged into that host.  You have to be on the same subnet as the target IP when using this command because Netbios is broadcast-based traffic.

So, for example, if the target IP is 10.1.1.5, then you could try issuing the following command:

nbtstat -A 10.1.1.5
0
jsm11482Author Commented:
Thank you, I did try this and all it returns is Host Not Found. This leads me to believe either NetBios is disabled or blockded (?) or it is one of the Macs here. So, let's pretend I need to know the hostname of the machine and it could me a mac or a pc. Thanks!
0
batry_boyCommented:
Do you use managed switches where you could look at the MAC address table to find out which switch port that MAC address is connected to and then physically track down the wall jack that it goes to?  I think I would try that next.
0
jsm11482Author Commented:
No we don't have managed switches here - I did think of that though - I have two people in mind who could be the culprit and I could find out their jack number but I can't relate it to the MAC anyway. Also, they are almost certainly using wireless.....good idea though......anthing else? ;-)
0
batry_boyCommented:
If you suspect that these hosts are behind firewalls, then I don't think you're going to be able to determine the hostnames remotely.  It sounds like these individuals are possibly operating outside the sanctioned parameters of company policy.  I think I would try to ferret out the individuals by blocking all IP traffic from those IP addresses with an ACL on the router and see if they speak up about the lack of connectivity.

If that sounds too much like being a "network nazi", then you may have to do this the old fashioned way and just ask the individual to show you their MAC address for identification purposes or whatever you want to tell them.

Maybe some other expert out there has some better suggestion, but I think I would take the more "hands on" approach at this point!  ;)
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
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
Routers

From novice to tech pro — start learning today.