aspose file tools*
The moose likes Linux / UNIX and the fly likes Detecting servers present in a lan from one of the server present in the same lan Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Detecting servers present in a lan from one of the server present in the same lan" Watch "Detecting servers present in a lan from one of the server present in the same lan" New topic
Author

Detecting servers present in a lan from one of the server present in the same lan

Nidhi Garg
Greenhorn

Joined: Jun 19, 2009
Posts: 21
Hi all,


I want to find a way by which i can detect what all servers are present in my lan.
I will be using unix box for firing the command.

Please help .


Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Nidhi,

That depends why you want this: if you need to discover servers, read up on things like Bonjour and multicasting. If you need it for fail-over in your app, you usually just fire the command at the primary server until it fails, then switch to the secondary when you get exceptions. If you need it for monitoring, install something like Zabbix or Nagios.


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
 
jQuery in Action, 2nd edition
 
subject: Detecting servers present in a lan from one of the server present in the same lan