www.relvarsoft.com rus Relative Variable Software

woncli.zip
[woncli] wake-on-LAN CLI, Version 1.3
[C] 2009-2011 Relative Variable Software [RVS], http://www.relvarsoft.com/

Syntax: woncli [-w X] option
One of the following options may be used:
 [-lan lan_ip_addr] -m mac ip_addr[:port] [password]
                            send a magic packet to wake-up a remote computer
  lan_ip_addr               IP address or name of local LAN card
                            (may need if a computer has more than one LAN card)
  mac                       MAC address of a remote computer
  ip_addr                   IP address or name of a remote computer/network
  port                      remote UDP port to send a magic packet, default=9
  password                  password for wake-up
                            (supported by some LAN cards only)
 -us                        suspend a local computer
 -hi                        hibernate a local computer
 -sh                        shutdown a local computer
 -rb                        reboot a local computer
May be used alone or with any option above:
 -w X                       wait X milliseconds before command execution

Examples:
  woncli -m 00:11:22:33:44:55 192.168.1.1
  woncli -m 00:11:22:33:44:55 myserver.com
  woncli -m 00:11:22:33:44:55 192.168.1.1:11222
  woncli -m 00:11:22:33:44:55 myserver.com:11222
  woncli -m 00:11:22:33:44:55 192.168.1.1 00:11:22:33:44:55
  woncli -m 00:11:22:33:44:55 myserver.com:11222 00:11:22:33:44:55
  woncli -lan 192.168.7.2 -m 00:11:22:33:44:55 255.255.255.255
  woncli -lan mypclan2 -m 00:11:22:33:44:55 255.255.255.255
  woncli -w 200 -rb
  woncli -w 1000 -us
  woncli -w 1000

download
woncli.zip
31 kbytes
OS: Windows 2000 or above
Need to note that using of woncli is not enougth to wake up a computer. It is required to turn a remote computer. A target of this tune is to enable a wake up by a magic packet. A LAN card shall be powered on with a connected Ethernet link to receive a magic packet. It may be reached by BIOS and OS settings.

Check remote computer's network card settings that a wake up by magic packet feature is enabled. For example:
change LAN setting to allow wake up by a magic packet

To wake up only by a magic packet do the following:
enable returning back from suspend by a magic packet

A select of ip_addr depends on a network topology.
1. If a router remembers a computer's IP address for a long time after going a computer to suspend, you may use just an IP address of a computer.
wake up via a router, MAC address is known


2. Otherwise it is required to use a broadcast IP address, which comes from a remote computer's IP address and a network mask (for example, if a remote computer has an IP address equal 192.168.1.3 and a network mask 255.255.255.0, when a broadcast address is 192.168.1.255). For broadcasting it is possible to use an IP address like 255.255.255.255. But if a computer has more than one LAN card, need to use -lan parameter.
wake up via a router, MAC address is unknown


3. If a computer is placed inside a local network connected to the Internet via NAT, ip_addr is equal to an external IP address of the router. Need to add a record with broadcast IP address inside a local network to router's NAT for UDP port 9. It is possible to use a different UDP port number for external access to the router. For example:
wake up by a magic packet via Internet

NAT settings to wake up


Also woncli allows to:
- reboot a local computer
- power off a local computer
- suspend a local computer
- hibernate a local computer
- make a pause during execution


download
woncli.zip
31 kbytes
OS: Windows 2000 or above
Edition 05.01.2010