Thread: Discovering remote OS

  1. #1
    Registered User Mortissus's Avatar
    Join Date
    Dec 2004
    Location
    Brazil, Porto Alegre
    Posts
    152

    Discovering remote OS

    Hi!

    I need to make a tool to use in my office. Many times users need to know what machines are in Linux and what are in Windows. Is there any way to do this? Is there any protocol?
    We work with parallel computing, and need to create dynamic lists of available hosts to create a cluster. I could use tools, like nmap, I think, but I want to do something on my own.

    Thanks any kind of help.

  2. #2
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    Have each box run a little app that simply sends whatever OS it's running to anyone who connects to it on a certain port. Try to connect to that port on every computer in the office and see who's running what.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    I think nmap dose OS detection by examining the tcp packets, different OSes probably implament the tcp/ip stack in slightly different ways.

  4. #4
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    Heres a better idea. Assign different host names to linux and windows machines. Here our machines are named Dev-WinXp-09. Theres probably an easy way to resolve the name of a computer given its IP address, so if you adopt (or already have) a similar naming structure this should be pretty easy.

  5. #5
    Registered User Mortissus's Avatar
    Join Date
    Dec 2004
    Location
    Brazil, Porto Alegre
    Posts
    152
    These are very good ideas! Thanks to you both!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Remote debug not working in Visual Studio 2003
    By Bassquake in forum Tech Board
    Replies: 12
    Last Post: 08-22-2008, 12:11 PM
  2. Howto make own application for remote control handling
    By s-men in forum Windows Programming
    Replies: 16
    Last Post: 08-16-2008, 04:22 PM
  3. Detecting if OS is Windows???
    By Ktulu in forum Windows Programming
    Replies: 2
    Last Post: 11-19-2006, 02:49 AM
  4. Remote thread problem
    By RubbeR DuckY in forum C++ Programming
    Replies: 6
    Last Post: 08-08-2006, 12:24 PM
  5. a simple OS
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 06-06-2004, 10:47 PM