Re: [AMMRL] AMMRL: Accounting by computer login - How to prohibit gaming the system

From: Fulton, Luke via groups.io <fko24003=uconn.edu_at_groups.io>
Date: Tue, 9 Sep 2025 20:01:08 +0000

Hi all,

Legacy circumstances and faculty disagreements can complicate things. We
almost have a different billing scheme for each instrument here...

Our department requires itemized records for individual billing events, and=
over the last year faculty asked for an expanded suite of usage metrics. I
built excel templates that provide whatever I need using text copied from
the log files. For automation with ICON I use the Inmracct.brief file, and
billing is calculated from experiment time. At our manual instrument (linux
we provide each user their own account during training and then bill for
however long they remain logged in. The logfile comes from var/log/wtmp,
and thankfully my predecessor had already written a script that pulls that
data into a more readable format:

 " Advisorname Username Mon Jan 1 10:35 - 10:48 (00:13)"

Kind regards,
Luke

Luke Fulton, PhD
CHEM BLDG R003
NMR Core Facility Director
Unit 3060
COR2E & Department of Chemistry
55 N Eagleville Road
University of Connecticut
torrs, CT 06279

email: fko24003_at_uconn.edu
(alias): luke.fulton_at_uconn.edu
mobile: (603) 953-5275
Office: (860) 486-4069

________________________________
> From: main_at_ammrl.groups.io on behalf of Alexander Morritt (SCI - Staff) via groups.io
> Sent: Tuesday, September 9, 2025 9:26 AM
> To: main_at_ammrl.groups.io <main_at_ammrl.groups.io>
> Subject: Re: [AMMRL] AMMRL: Accounting by computer login - How to prohibit gaming the system

Dear all,

I use Inmracct.brief with IconNMR for our routine spectrometers, it shows every
login/logout in the system and permissions won’t allow someone without
an admin password (or topspin itself) to edit.

I then have a script that for each account ICON accounts sums up the amount
of peak/off peak time and logs it to file to give a total number of minutes
each user has used.
This file gets used with another script to marry it up to PPMS which implies
the charge (per minute) given any subsidiaries or grants.

A bit convoluted, but it’s a system I inherited from my predecessor.

Best wishes,

Alex

Dr. Alexander Morritt |Chief Instrument Technician
Science Analytical Facility
University of East Anglia |Norwich Research Park |Norwich |NR4 7TJ
Ext. 01603 591093
Int. 1093



World Top 200 (Times Higher Education World University Rankings 2022)
UK Top 30 (The Times/Sunday Times 2022 and Complete University Guide 2022)
UK Top 20 for research quality (Times Higher Education Rankings for the Research Excellence Framework 2021)
World Top 50 for research citations (Times Higher Education World University Rankings 2022)
World Top 50 (Times Higher Education Impact Rankings 2022)
Athena SWAN Silver Award Holder (since 2019) in recognition of advancement
towards gender equality for all (Advance HE)


> From: main_at_ammrl.groups.io <main_at_ammrl.groups.io> On Behalf Of Eastman, Margaret via groups.io
> Sent: 27 August 2025 20:43
> To: main_at_ammrl.groups.io
> Subject: Re: [AMMRL] AMMRL: Accounting by computer login - How to prohibit gaming the system


Dear All:

Sorry! A few of you pointed out, and my own tests now confirm that the issue
I brought up is invalid: It is not possible for an acquisition to continue
after a user is logged out from the spectrometer computer on a Bruker
spectrometer running TopSpin. Exiting TopSpin of course requires the acquisition
to be terminated, and if the user does not exit from TopSpin the acquisition
stops upon log out.

A few of us have seen odd rogue TopSpin processes running after logout and
John Decatur’s script should eliminate them. If they arise (which
is probably more likely) from someone using switch user instead of logging
out, disabling switch user for all logins should prevent that problem. I’ve
found a method to disable switch user for all logins in Alma 9.

Margaret

> From: main_at_ammrl.groups.io on behalf of Eastman, Margaret via groups.io
> Date: Tuesday, August 26, 2025 at 12:00 PM
> To: main_at_ammrl.groups.io
> Subject: Re: [AMMRL] AMMRL: Accounting by computer login - How to prohibit gaming the system


Dear All:

Thanks for this info. In thinking more about this, I realized that I do not
want to use the Bruker accounting files to clean up after the problem happens,
but rather I need a preventative solution like the one John Decatur describes,
having the OS detect at logout time if TopSpin is still running and killing it
if it is. And I was thinking maybe the user is presented with a message requiring
that they stop the acquisition and exit TopSpin before they can log out. Then
they either must get out of TopSpin, stopping the acquisition, or not log out
to continue the acquisition in the case they were trying to cheat my accounting
method. This should also fix a problem we have encountered of users (who are not
running an acquisition) not exiting from TopSpin, after which other users cannot
run TopSpin because the license is tied up.

Margaret


> From: main_at_ammrl.groups.io on behalf of John Decatur via groups.io
> Date: Tuesday, August 26, 2025 at 9:40 AM
> To: main_at_ammrl.groups.io
> Subject: Re: [AMMRL] AMMRL: Accounting by computer login - How to prohibit gaming the system

Hi All,

I basically duplicate the info given by the last command by having scripts
in the /etc/dgm/PreSession and /etc/dgmPostSession directories. These are
executed upon login and logout. The PreSession script logs the user info
into a file while the PostSession script checks for Topspin and, if running,
kills it prior to logging output data and then executing the logout. i
then have an ancient Perl script that processes the info in this monthly
stored file. You could customize what these scripts generate to fit with
your existing processing programs.

I tell my users if they logout then their experiment stops (which is true!)
and thus I have no one attempting to circumvent paying by logging out. I have
never noticed an issue generated by killing Topspin in this way (although
almost all users exit Topspin prior to logging out).

I notice mismatched pairs occasionally in this log file (one or two a month
but those are easily cleaned up and removed. My guess is that these are the
result of a user that has, instead of logging out, either powered down the
computer or reboot it but I’ve never bothered to track down the
precise cause.

Happy to share to those in need.

John

On Aug 26, 2025, at 9:05 AM, gregory.wylie via groups.io wrote:

Hi Everyone

We have noticed that when using the Bruker accounting file we miss time, and
have started comparing our accounting with the reservation system we use. We
are also going to start using last files as well to see how things turn out
that way too. I was able to replicate some of the missing time issues we were
seeing with the Bruker accounting file. A couple things we found that cause
us problems:

1. Double starting the software

2. If the user started the software from terminal and then closes the terminal.

3. Not waiting for the software to fully close before logging out of the computer.

Most often these result in miss matched line pairs in the Bruker accounting
file so our current scripts throw them out. This has resulted in a potential
lose of ~1500 hours of billable time on 1 machine over a year. We only have
1 Bruker that runs manually all others are in IconNMR and we have not seen
any issues on these systems.

We do think using last will work better as we currently use last to compare
with the reservation system to look for users who may be abusing the rules
of usage. We do this twice a month and send out emails to offenders to be
better. We don't think users are doing anything intentionally because if we
find too many issues in a month we will ban the user from the system!

Very interested to see what others are doing as well.

Greg

Gregory P. Wylie, Ph.D

NMR Facility Manager
Texas A&M University
Department of Chemistry #3255
580 Ross St.
College Station, TX 77843-3255
gpwylie_at_tamu.edu<mailto:gpwylie_at_tamu.edu>
979.458.0705 (voice)
979.845.4719 (fax)
706.206.0007 (cell)
http://nmr.tamu.edu


John Decatur, Ph. D.

Senior Research Scientist, Director of Chemical Instrumentation
and Precision Biomolecular Characterization Facility

Department of Chemistry
3000 Broadway, Mailcode 3179
Columbia University
New York, NY 10027
212-854-2155 (voice)
212-932-1289 (fax)
jdd13_at_columbia.edu


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#2795): https://urldefense.com/v3/__https://ammrl.groups=
.io/g/main/message/2795__;!!PvDODwlR4mBZyAb0!QuJMda8ci-1AyBT04Ph5cYdhIHVU_F=
vsyOPJtNjTU-9EciFnKhQ79nW-YgUc2x2Ohm4PQGiDrLku-aNk4e24zgwh5oMD$
Mute This Topic: https://urldefense.com/v3/__https://groups.io/mt/114891633=
/7559972__;!!PvDODwlR4mBZyAb0!QuJMda8ci-1AyBT04Ph5cYdhIHVU_FvsyOPJtNjTU-9Ec=
iFnKhQ79nW-YgUc2x2Ohm4PQGiDrLku-aNk4e24zkzVpC2G$
Group Owner: main+owner_at_ammrl.groups.io
-=-=-=-=-=-=-=-=-=-=-=-



Received on Tue Sep 09 2025 - 13:04:22 MST

This archive was generated by hypermail 2.4.0 : Wed Oct 01 2025 - 14:23:05 MST