Skip to content
Patrick Martin edited this page Nov 4, 2013 · 10 revisions

Deployment

The intent is: any OS, anywhere.

relocatable

Copy the executables and then run. A standard set of dependencies are all that are needed.

only local configuration file (or none)

For Netcontroller.exe there is a config file sought in the application directory: defaulthosts.txt The content is as per

MACHINE,AB-CD_EF-01-23-45,"my laptop"

The unlikely event of machine names with embedded spaces will need to be quoted.

POSIX dependencies

Dump of file swakeup.exe

File Type: EXECUTABLE IMAGE Image has the following dependencies:

cygwin1.dll
KERNEL32.dll

MinGW Dependencies

$ cut -f 2 -d":" swakeup.txt | cut -f1 -d"=" | sort | uniq Display of File SWAKEUP.EXE

   msvcrt.dll
   WS2_32.dll
 KERNEL32.dll

Windows Dependencies

$ cut -f 2 -d":" wakeup.txt | cut -f1 -d"=" | sort | uniq Display of File WAKEUP.EXE

   user32.dll
  wsock32.dll
 advapi32.dll
 kernel32.dll
 oleaut32.dll

$ cut -f 2 -d":" NetController.txt | cut -f1 -d"=" | sort | uniq Display of File NETCONTROLLER.EXE

      mpr.dll
    gdi32.dll
    ole32.dll
   user32.dll
  version.dll
  wsock32.dll
 advapi32.dll
 comctl32.dll
 kernel32.dll
 netapi32.dll
 oleaut32.dll

Components

In the Windows build there are 3 components and one config file

Image

NetController.exe

  • Simple one form app
  • searches the Windows containers, and fetches IP and MAC addresses
  • automatically loads the config
  • saves the config
  • scans the machine list for status

Wakeup.exe

usage text

one argument is required.

usage:

Wakeup.exe macaddress [port] [ipaddress]

will send the magic packet to the specified IP address

the port 9 will be used as the default port

the broadcast address (255.255.255.255) will be used as the default

return codes: 0 if functions successful, -1 for invalid arguments, non-zero otherwise.

the error code may be a WSA code

For a successful operation, there is no output.

SWakeup.exe

usage text is

invalid argument count

usage

\swakeup.exe macaddress

macaddress in format aa:bb:cc:dd:ee:ff or aa-bb-cc-dd-ee-ff

sends a WOL packet to the local broadcast address on port 9

For a successful operation, there is no output.