Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1960
  • Last Modified:

Using MAC addresses from DHCP to send wake on lan packets to all machines.

We have recently migrated a linux dhcp server to windows 2003.

The Linux system had a quick script that read mac addresses from the dhcp leases file, and I could then send a wake on lan packet to all the pc`s dhcp had "seen".

Since moving to windows I am struggling to get hold of the mac addresses from dhcp, or a utility to send the WOL Packets.

Is this possible? If so how?

Thanks
0
rob_keeling
Asked:
rob_keeling
  • 3
  • 2
1 Solution
 
grsteedCommented:
Have you tried netsh?  From this link

http://technet2.microsoft.com/WindowsServer/en/Library/0afbe4e4-f31d-47ae-81c8-c48aed1a34e11033.mspx?mfr=true

From the command prompt enter "netsh dhcp server scope" then this command is available.

"show clients

Displays all of the available version 4 clients for the current scope. Used without parameters, this command displays the following information for each client: IP address, subnet mask, unique ID, lease expiration, and type.
Syntax

show clients[{0 | 1}]
Parameters
{0 | 1}
Indicates the detail level of the output: 0-Shows the following information for each client: IP address, subnet mask, unique ID, lease expiration, and data type (default), 1-Shows all of the information that 0 provides and also displays the fully qualified domain name of each client.
Remarks
•      

To view the output of this command effectively, increase the width of the command prompt window to at least 95 characters."


This link shows what the output looks like

http://www.dx21.com/HOME/ARTICLES/P2P/ARTICLE.ASP?CID=33

the MAC is the Unique ID in the output.


Hope this helps.

Gary
0
 
rob_keelingAuthor Commented:
OK, that really helps getting the data out of dhcp. The next stage it converting this to a format useable with a wol package.

Previously this was using grep on linux, which of course doesn`t exist natively in windows.

Hitting google for stage  two, but any suggestions greatly recieved.

Thanks

Rob
0
 
grsteedCommented:
Check out this link

http://www.softpanorama.org/Unixification/index.shtml

Click on the SFU for UNIX commands for windows.  I haven't used it so I can't vouch for it.


Cheers,

Gary
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
rob_keelingAuthor Commented:
Gary,

Yes I have seen some of this, and the cygwin equivelents. Actually I am stuck trying to find a win32 command line program to send wake on lan packets!

Tried several last night, all with no response from the PC`s. Didn`t think windows firewall would stop them being transmitted?

Going to try a manual cut copy paste across to the old linux server and confirm WOL is ok from there.

Rob
0
 
grsteedCommented:

Here's a good tutorial on WOL.
http://www.activexperts.com/activsocket/tutorials/wol/

Here's a link to a WOL client.
http://ahh.sourceforge.net/wol/

There's supposed to be a program from AMD that's free, but I couldn't find it on their site.

Cheers,

Gary

0
 
GreenfieldITCommented:
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now