Linux Counter Client Scripts

This section contains scripts that can be run on a Linux box to ease the task of registering with the Linux Counter, and of keeping a registration up to date.

Machine Update

NOTE: This script DOES NOT UPDATE THE COUNTER YET. The data is stored, and will be merged later, but until the script is better tested, it is not copied to the main counter.

This script registers or updates a machine's info in the counter.

Instructions for use:

Here's what running machine-update -i looks like:

prompt> machine-update -i
Here you can specify some info that the script can't know for itself
Your Linux Counter reg#, if any [2]:
Your machine's counter reg#, if any [2345]:
Here is what the program has found:
bogomips   : 35.84
accounts   : 8
name       : dokka.maxware.no
kernel     : 2.0.35
users      : 0
cpu        : 586/90 (bogo 586)
memory     : 48
mailer     : sendmail
disk       : 1851
Do you want to override some of the found values? [no]:
--------------------------------------------------------
This is what will be sent to the Linux Counter if you
run the program with the -m switch. Now, NOTHING IS SENT
--------------------------------------------------------
From: hta
To: machine-registration@counter.li.org
Subject: machine-update for dokka.maxware.no

//MACHINE
accounts: 8
bogomips: 35.84
cpu: 586/90 (bogo 586)
disk: 1851
kernel: 2.0.35
key: 2345
mailer: sendmail
memory: 48
method: machine-update version 0.09
name: dokka.maxware.no
owner: 2
uniqueid: 290176264
uptime: 45 days,  2:22
users: 0
//END
prompt>

All the info sent to the counter is also stored in the file "$HOME/.linuxcounter/<machine>. You can edit the info you entered by hand by running "machine-update -i".

If you have any trouble, mail the program's output, the top few lines of the script, and any files in $HOME/.linuxcounter to Harald@Alvestrand.no.

Happy updating!


Harald Tveit Alvestrand <Harald@Alvestrand.no>