vnmr accounting workaround

From: William C. Stevens <wstevens_at_siu.edu>
Date: Fri, 14 Jan 2005 10:48:36 -0600

When I was home, someone asked me about the workaround to get
vnmr_accounting to work under Solaris 8. Now I'm at work and have the info,
but I've forgotten who asked me. Please forgive the repetition:

If you have a Solaris 2.6 or 7 machine, get the /usr/lib/acct/fwtmp program
from it and transfer it to your Solaris 8 machine. I always create and use
/export/home/root as a directory for root's "base of operations" (Solaris
patch clusters, etc.). Put your old fwtmp there.

Now, the script below uses your Solaris 8 fwtmp to operate on
/var/adm/wtmpx and output it to a temporary file wtmpx.tmp - - this is a
text file and you can edit it if you wish. Next you use the Solaris 7 fwtmp
to operate on the temporary file and output it to /var/adm/wtmp. The
temporary file is then deleted and the accounting software is started. If
you are just having a look, you want to keep the touch command commented
out. If you finish producing bills, you can zero out /var/adm/wtmpx after
everything has worked.

A Solaris 7 fwtmp is attached if you need it. You will need to be mindful
of permissions.

Bill

oldbarney:wstevens 2>cat nmrbills
#!/bin/sh
vnmrsystem=/vnmr
export vnmrsystem
/usr/lib/acct/fwtmp < /var/adm/wtmpx > /var/adm/wtmpx.tmp
/export/home/root/fwtmp -ic < /var/adm/wtmpx.tmp > /var/adm/wtmp
rm /var/adm/wtmpx.tmp
#touch /var/adm/wtmpx
/vnmr/bin/vnmr_accounting

William C. Stevens, Ph.D. Nuclear Magnetic Resonance Facility
Director Southern Illinois University
                                 Carbondale, IL 62901-4405
618-453-6498 voice
618-453-6408 fax wstevens_at_siu.edu
                                 http://opie.nmr.siu.edu
Received on Fri Jan 14 2005 - 13:23:34 MST

This archive was generated by hypermail 2.4.0 : Sat Jun 10 2023 - 15:51:35 MST