Recent

Author Topic: gettin the list of computers in network on Ubuntu  (Read 6101 times)

alehandro

  • Newbie
  • Posts: 3
gettin the list of computers in network on Ubuntu
« on: February 25, 2014, 09:42:14 am »
On web i have found several solutions how to get list of computers in network on Windows platform, but none for Linux. BTW I've recently switched from Win to Ubuntu ...

Rails

  • Guest
Re: gettin the list of computers in network on Ubuntu
« Reply #1 on: February 25, 2014, 12:35:47 pm »
man nmap


BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: gettin the list of computers in network on Ubuntu
« Reply #2 on: February 25, 2014, 01:04:00 pm »
man nmap
or perhaps on a plain vanilla Ubuntu:
Code: [Select]
sudo apt-get install nmap
man nmap
... and you can parse e.g. the XML format it spits out.

Also:
Code: [Select]
man ping
and probably
Code: [Select]
man smbclient #not sure about name; perhaps you need to install samba tools as well
depending on what OP wants exactly (e.g. is a computer something that respods to ping? Has an ftp share open? Provides nfs? Smb?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

alehandro

  • Newbie
  • Posts: 3
Re: gettin the list of computers in network on Ubuntu
« Reply #3 on: February 25, 2014, 03:03:47 pm »
Thanks for the reply ill try it out.
Aim of app is to be used in network (for daily business needs) and when it starts user can picks a computer from a list - where current and active database file is stored (firebird) and for that i needed the list of network computers.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: gettin the list of computers in network on Ubuntu
« Reply #4 on: February 25, 2014, 03:29:52 pm »
In that case, I'd first ping your subnet, then try to connect to the firebird port (3050 TCP by default, IIRC) to see if something (e.g. Firebird) is listening.

HOWEVER, why don't you just use a config file with the server IP address/hostname? An admin will have to set up a Firebird server anyway?

Quote
computer [...] where current and active database file is stored (firebird)
Note: FYI: if using Firebird for multiple users, you're supposed to use a server, not a file share with an fdb file on it and e.g. multiple embedded client. You may get data corruption, locking etc. Just thought I'd mention it.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

alehandro

  • Newbie
  • Posts: 3
Re: gettin the list of computers in network on Ubuntu
« Reply #5 on: February 25, 2014, 03:52:26 pm »
Quote
Note: FYI: if using Firebird for multiple users, you're supposed to use a server, not a file share with an fdb file on it and e.g. multiple embedded client. You may get data corruption, locking etc. Just thought I'd mention it.
well one machine has a firebird server installed and other users have fbclient.dll in applications directory. By picking up from the list server comp they connect to database on that machine. This is done in case something happens to server so a new server computer can easily replace it ( of course after installing fb server on it). Is this ok ? or im still getting something wrong?
at least this is how i started it under windows
« Last Edit: February 25, 2014, 03:56:54 pm by alehandro »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: gettin the list of computers in network on Ubuntu
« Reply #6 on: February 25, 2014, 05:28:48 pm »
@alehandro, no, that's fine.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018