Move WsusContent on Windows SBS 2008

On a Windows SBS 2008 server, you can easily experience huge issues with data filling up the system hard drive. If you look closer, you will probably see that there is one folder which is constantly growing up : WsusContent. This folder is used by Windows for the system updates, but it can be moved without troubles using the wsusutil tool. Method Open a DOS command on the server and move to the WSUS directory: C:\Program Files\Update Services\Tools Now to move WsusContent, run the following command: wsusutil movecontent <path to your new WSUS directory> <log file> For example: wsusutil movecontent E:\WSUS C:\log_movecontent_wsus.txt This command will create UpdateServicesPackages and WsusContent directories in your new WSUS location, and copy their contents. Once it's done, you can remove the old directories. ...

How to stress-test a CPU on a Linux server

In some cases, you may want to voluntarily stress-test the CPU of a Linux server to see what happens (monitoring stuff for example). Method First, create a file on your hard drive with the following command: dd if=/dev/urandom of=testfile count=20 bs=1024k Next, create a shell script with a md5sum loop as below, and named it "stress_cpu": #!/bin/sh i=0 while [ 1 ] do md5sum testfile i=`expr $i + 1` echo "Iteration: $i" done Make the script executable : chmod +x stress_cpu Then, you just need to execute it and your CPU load will increase instantly. ./stress_cpu Ctrl-C will end it, as always. ...