LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to find Unix based host names over network (https://www.linuxquestions.org/questions/linux-general-1/how-to-find-unix-based-host-names-over-network-744769/)

pbbalaji 08-03-2009 10:15 AM

how to find Unix based host names over network
 
Hi All,

I need help in finding the linux machine host names over my office network.
with script or any tool.
please help me in this regard.

Thanks in Advance.
Balaji.

TB0ne 08-03-2009 10:25 AM

Quote:

Originally Posted by pbbalaji (Post 3629662)
Hi All,

I need help in finding the linux machine host names over my office network.
with script or any tool.
please help me in this regard.

Thanks in Advance.
Balaji.

A quick Google search would have led you to nmap. However, there aren't any tools that are fool-proof. Machines could be turned off, behind a firewall, have iptables on them, etc., and not show up.

If you need 100% accuracy, get a notepad and pen, and walk around your office.

pbbalaji 08-03-2009 11:58 PM

Hi Boss,

Thanks for the reply, My office is occupied with all Windos machines, recently management is showing interest in moving to linux (opensource), in part of that, unable to track those machines, so I am in quest of any tool are script to discover only LINUX based machines.

I believe NMAP helps in finding all host names, but i need only LINUX based machines.

Thanks in Advance.

Regards,
Balaji, IT.

TB0ne 08-04-2009 01:58 PM

Quote:

Originally Posted by pbbalaji (Post 3630382)
Hi Boss,

Thanks for the reply, My office is occupied with all Windos machines, recently management is showing interest in moving to linux (opensource), in part of that, unable to track those machines, so I am in quest of any tool are script to discover only LINUX based machines.

I believe NMAP helps in finding all host names, but i need only LINUX based machines.

Thanks in Advance.

Regards,
Balaji, IT.

I'm not your boss.

Nmap can do OS discovery as well. If you only need Linux based machines, then just pull out the linux (or non-windows) systems out of the list that you get returned to you.

Again, it's not 100% accurate...see my previous post.

nowonmai 08-06-2009 11:06 AM

try nmap -O -oX nmap.xml <subnet> and parse the XML output to extract the Linux only hosts.


All times are GMT -5. The time now is 01:00 PM.