Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
Net::Wake(3) User Contributed Perl Documentation Net::Wake(3)

Net::Wake - A package to send packets to power on computers.

To send a wake-on-lan packet via UDP: Net::Wake::by_udp('', '00:00:87:A0:8A:D2');
Or directly from the command line:
perl -MNet::Wake -e "Net::Wake::by_udp(undef,'00:00:87:A0:8A:D2')"

This package sends wake-on-lan (AKA magic) packets to turn on machines that are wake-on-lan capable.
For now there is only one function in this package: Net::Wake::by_udp([$host], $mac_address, [$port]);
You can omit the colons in the $mac_address, but not leading zeros.
Generally speaking, you should use a broadcast address for $host. Using the host's last known IP address is usually not sufficient since the IP address may no longer be in the ARP cache. A $host value of '' is implied if $host is undef. If you wish to send a magic packet to a remote subnet, you can use a variation of '', given that you know the subnet mask to generate the proper broadcast address.

Copyright 1999-2003 Clinton Wong
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2003-06-11 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.