--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/232acefa-9eff-436d-01ab-9cda2f494ecd%40appliserver.com.
Thank you for your time!
if there is already a command line program that provides this functionality, why don't you just call it and then parse the result?
In case of windows shares I think that there is a NETBIOS locator or something similar that keeps a list of all connected computers. You may query it.
The solution can be different depending on what you need to obtain or what your share server is... (for example I use a linux server and with smcstatus command I have a list of all the clients logged in (they may be turned on but not logged as far as I know)).
The catch-all solution is to set a wakeup time in the BIOS... almost all BIOS have this feature: swtich it on at 7:00 am and turn it off by some windows feature after X hours of not use, or at specific time. It all depends on what you need.
BTW: are you sure the Wake-on-lan feature is working on your motherbords?
??? what's unclear from my OP:
"I would like to obtain the list of networked
computers."
Hi Dan,
??? what's unclear from my OP:
"I would like to obtain the list of networked
computers."
Sorry, to me "networked computers" is a too broad definition.
I can say that in the past we used two methods to gather informations on PC connected to a network via cable:- PING to broadcast (it was possible at the time, should be still, but you need to check) so that every PC that is ON (also not logged) will reply. From the arp table or the reply you can list the connected PC
- PING to every address in the space. If your network is 192.168.X.Y/24 you may have only 256 pc connected, ping each one and if they reply you will know which one is ON. Of course if you have a /16 network or, worse, a /8 network it will be impossible
- on a /8, segmented network, we created a script that queried all the routers and dumped the IPs registered on each port, doing the query every X minutes.
You may also call smbstatus every 10 minutes and collect the IPs.
If you have a server other than samba, like an internal web server, an internal antivirus server, a NTP server, or better yet a DNS server, you may access their log and extract the IP. The DNS server is a fantastic way to intercept all the PC that are ON but do not login to samba: when Windows starts it performs a lot of DNS queries...
Hello,
If you use Windows, maybe you can take some idea here :
http://www.goldenstag.net/dbase/
Download dUFLPPlus_12A.zip
In NetSender.wfm ( open like a txt file )
Look : function GetNetworkComputers() and function GetNetworkDomains()
It easy to translate
Regards,
Bernard
.
I have put a response with Microsoft Outlook software but it do not change the banner of the discussion.