Linux-Watch
      . . . keeping an eye on the penguin   
Home  |  News  |  Forum  |  Blogs  |  Videos  |  Resource Library

Keywords: Match:
Shutting down idle PCs with Linux
Oct. 23, 2008

This simple project describes building a low-powered embedded Linux system to find and shut down idling Linux and Windows PCs left on by careless, energy-wasting users. Suitable for deployment on a Linksys WRT54G or NSLU2, it leverages the open source Argus network monitoring tool, along with custom perl scripts.

The project was put together by Nathan Harrington, and published on IBM's DeveloperWorks website. It uses the server portion of the open source Argus network monitor (not to be confused with the argus monitor) to tally up packets from each system. Calling an argus client (racluster, in this example), a perl script reads the tallies at intervals, and compares the level of activity against a set threshold established in advance for each machine. When the threshold is exceeded, the perl script contacts the idling machine and shuts it down. The perl-based "listener" script running on the client side uses challenge and response, with Blowfish encryption, to authenticate the request before calling shutdown.

For large networks, a device with multiple Ethernet connections would work best, Harrington said. Left as an exercise to the reader are code additions to shut down systems that are only fetching mail every 15 minutes, and muted systems endlessly downloading media streams. Harrington offers no suggestion for handling complaints from users who lose unsaved work, however. The full story, complete with code downloads, can be found here.


-- Henry Kingman


Do you have comments on this story?


Talkback here

NOTE: Please post your comments regarding our articles using the above link. Be sure to use this article's title as the "Subject" in your posts. Before you create a new thread, please check to see if a discussion thread is already running on the article you plan to comment on. Thanks!



Related Stories:


(Click here for further information)


7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

4 Legal Reasons to Control Internet Access
The Internet is obviously a valuable resource for many organizations. However, many are exposed to legal liability concerns because they fail to control Internet access. Learn if you're safe in this white paper.

Rapidly Resolve J2EE Application Problems
Whether you are in the process of building J2EE applications or have J2EE applications already running in production, you must ensure that they deliver the expected ROI. Learn how in this white paper.

Load Testing 2.0 for Web 2.0
There are many unknowns in stress testing Web 2.0 applications. Find out how to test the performance of Web 2.0 in this white paper.

Build Better Games Online
For the game infrastructure providers, life is complex. Making money from games has become more complicated. Why? Find out in this white paper.

Building a Virtual Infrastructure from Servers to Storage
This white paper discusses the virtual storage solutions that reduce cost, increase storage utilization, and address the challenges of backing up and restoring Server environments.

Gaining Faster Wireless Connections with WiMAX
Welcome to what is quickly becoming the hyperconnected world where anything that would benefit from being connected to the network will be connected. Learn more in this white paper.

Is Your Desktop a Security Threat?
The new wave of sophisticated crimeware not only targets specific companies, but also targets desktops and laptops as backdoor entryways into those business’ operations and resources. Learn how to stay safe in this white paper.

Increasing SAN Reliability by 100 Percent
Storage area networks (SAN) are a strong part of storage plans. Learn how to increase your reliability and uptime by 100 percent in this case study.

 



Got a HOT tip?   please tell us!

ADVERTISEMENT
(Advertise here)

Latest Linux-Watch Posts

• GPLv2 copyright suit targets 14 firms
• Amid controversy, Microsoft launches open source foundation
• As open source surges, Microsoft admits Linux threat
• Open source lobbying group emerges
• Open source Linux device drivers submitted by -- Microsoft?
• Google names Chrome OS partners
• Google's new OS marries Linux and Chrome
• Debian plans draw sharp warning from GNU guru
• OpenSource World announces keynote speakers
• Linux 2.6.30 gets new filesystems
More Linux-Watch posts

DesktopLinux headlines:
• All-in-one PC has dual-core Atom
• Fedora 13 alpha arrives amid controversy
• Linux summit dissects MeeGo
• Nettop taps Ion 2 GPU
• Debian live CD distro rev'd
• OpenSUSE 11.3 hits second milestone, features KDE 4.4 desktop
• Ubuntu Netbook Remix enlightens ARM support
• RHEL 5.5 advances KVM, WiFi
• Hot-patch service boasts reboot-free server updates
• Linux Mint 8 achieves final KDE version
More DesktopLinux news

LinuxDevices headlines:
More LinuxDevices news

Dev Shed Dev Shed
Powered By Dev Shed


Linux conquers smartphones!

...read all about 'em

Visit the...



news feed

Home  |  News  |  Forum  |  About  |  Contact
 

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
Tech RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video | VARs | Channel News

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | Enterprise Network Security | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | Security IT Hub | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | igrep

Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2010 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.