Novell is now a part of Micro Focus


Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

Remotely turn on workstations and servers.


Posted:13 Sep 2006
File Size:77KB
License:free for Admins Club Members
Home Page:
Publisher:D Jack


Please read the note from our friends in legal before using this file.


Module SENDMAG.NLM is designed for remote turning on of workstations and other servers from the NetWare server level. This program sends so called "magic packet" to a computer which is to be switched on remotely.

This effect can be obtained provided that the mainboard of the managed computer has the WAKE ON LAN function and it is set in the BIOS to the value ENABLED.

  1. Installation of SENDMAG program on NetWare server:
    SENDMAG module (SENDMAG.NLM) should be copied to a controlled server to SYSTEM folder on SYS volume.

  2. Start SENDMAG.NLM module:
    The program can be executed immediately from a server console level or using CRON module it can turn on workstations and servers at the given moment. To start SENDMAG program one should use the syntax as below:
    SENDMAG /aNetworkIPAddress /mMACAddress /pPortNumber
    NetworkIPAddress - IP address of a network in which there is a remote computer that is to be turned on. This address should be given accordingly to the class of the network.
    • for the network ( A class ) one should give as a parameter address 10
    • for the network ( B class ) one should give as a parameter address 172.20
    • for the network ( C class ) one should give as a parameter address 192.168.1
    MACAddress - 12-characters MAC address of a network card of the station to which is sent MAGIC PACKET. PortNumber - IP port number of the remote computer. It is an optional parameter. While omitted the default value is set to 7.

  3. Example of a program call:
    SENDMAG /a10 /m003C5678D0AF
    SENDMAG /a172.20 /m00CD34567890 /p2000
    SENDMAG /a192.168.1 /m1234567890AF
  4. A sample of the CRONTAB file used by CRON program:
    00 08 * * 1-5 SENDMAG /a192.168.1 /m0034567890AF
    01 08 * * 1-5 SENDMAG /a192.168.1 /m0054567890AF
    02 08 * * 1-5 SENDMAG /a192.168.1 /m0084567890AF
    03 08 * * 1-5 SENDMAG /a192.168.1 /m0094567890AF
    04 08 * * 1-5 SENDMAG /a192.168.1 /m00C4567890AF
    In the example above NetWare server will turn on remotely the stations with the given MAC addresses every day from monday to friday in succession from 8.00 till 8.04 o'clock.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates