Tool

John Wohlers's picture
tool
Reads:

2769

Score:
0
0
 
Comments:

0

Group Wake on LAN

Author Info

6 January 2004 - 8:05am
Submitted by: John Wohlers

license: 
GPL

This is a quick little utility I put together based on a code snippet I found on the Net.

This script queries LDAP for workstations that are members of specified groups. The script then uses the "zenwmMACAddress" attribute of workstation objects to send a Wake on LAN packet to eachworkstation.

I use this script to power on all of the workstations locatedin our library each morning.

To use this script you will need Perl and the Net::LDAP module then,just customize the script to fit your environment.

The following four changes are absolutely necessary:

1. Edit the first line to reflect your path to Perl.
2. Place the full DN to each workstation group you wish to wake in the"wakeup_groups" array. (notice the lack of a trailing comma on the lastgroup in the array)
3. Edit the search_base variable to reflect your tree's organization.
4. Edit "ldapservername" to reflect the name of your LDAP server.

Any other changes you may need to make should be self-explanatory by using the comments in the script.

AttachmentSize
nds_wake.zip1.36 KB




User Comments

Post new comment

Anonymous
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <i> <cite> <code> <img> <ul> <ol> <li> <div> <dl> <dt> <dd> <b> <strong> <h1> <h2> <h3> <pre> <table> <td> <tr> <th> <blockquote>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
6 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

© 2012 Novell