uptime script for linux (suse 9.2)

first script – puts uptime and w to file

#!/bin/bash
rm dmesg_linux.txt # removes existing dmesg file
uptime > dmesg_linux.txt # uptime piped to dmesg
w > dmesg_linux.txt # w piped to dmesg

chron set to once per hour – maybe every half hour or 15 minutes

second script – places dmesg_linux.txt on server every 15 – 30 minutes

#!/bin/bash
ftp -n ftp.xxxx.com # ftp.xxxx.com is replaced with name of ftp
quote user username # username on ftp
quote pass passwd # password of said usernam on ftp
binary
put dmesg_linux.txt # file to place on ftp
quit
!

link at right

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *