Subject: Re: strange problem
To: Stefan 'Kaishakunin' Schumacher <stefan@net-tex.de>
From: DataZap <az@datazap.net>
List: netbsd-help
Date: 08/06/2006 11:52:30
Hi,

On Thu, 3 Aug 2006, Stefan 'Kaishakunin' Schumacher wrote:
> > Does anyone have any ideas on why the system goes down and what I can do
> > to keep this from happening?
>
> Are you sure the hardware is fine? Sometimes crashes are caused by bad
> RAM, CPU oder power supply.

This is something that I can't be sure of. The hardware is old.

> To test RAM and CPU you can encrypt, decrypt and compare large files,
> a corrupted RAM leads to errors in the files.
>
>
> This small skript will generate a 200m file, encrypt, decrypt and
> compare it with the source with a SHA1 hash. I use it at work to check
> PCs if they behave strange. Maybe this helps to verify the hardware
> works as expected.
>
>
> #!/bin/ksh
> typeset -i cnt=1
> typeset -i rounds=5
> typeset -i size=200
>
> while [[ $cnt -le $rounds ]]
> do
> dd if=/dev/urandom of=temp.wipe bs=1m count=$size 2>/dev/null
> sha1 temp.wipe >> temp.sha1.1
> openssl des3 -in temp.wipe -out temp.wipe.enc -e -salt -k passwd
> rm -f temp.wipe
> openssl des3 -d -in temp.wipe.enc -out temp.wipe -k passwd
> rm -f temp.wipe.nc
> sha1 temp.wipe >> temp.sha1.2
> cnt=cnt+1
> done
> diff temp.sha1.1 temp.sha1.2
> [ $? -eq 0 ] && { echo "No Error"; } || echo "Errors found!";
> rm temp.wipe.enc temp.wipe
>

I will try running this script one night when the server is not too busy
and I will let you know of the results.

Thanks,
Al