We do this at exit point of logon nobreak udc to capture data on usage
who/what/when/how much/where from..
setvar log "!hpdatetime#!hpuser.!HPACCOUNT,!HPGROUP#!hpconnmins#"
setvar log "!log!HPSTDIN_NETWORK_NODE#!HPSTDIN_NETWORK_ADDR#!HPLDEVIN#"
SETVAR LOG "!LOG!HPDATEF#"
FILE ULOGFILE,OLD
ECHO !LOG >>*ULOGFILE
Assumes ULOGFILE exists. Gives us lines like this:
20050221110641900#SMSPC.STOCK2K,ASP#78#PCOOTEPORT..ORG#192.168.51.35#561#MON
, FEB 21, 2005#
With this we can tell if connection was in office, dialup, VPN etc, connect
time. By comparing stats from field ISP bills we can see when people get on
to get email, but don't connect to HP. I put the # in so I can parse the
data readily if asked to turn it into a fixed format, but so far have been
able to do all I have been asked by just listing the file, or searching for
strings in it. Eg, when was last time xyz used the system, and for how long.
When we get our new menu up that logs program usage, we can figure out when
xyz ran as well....
jp
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf
Of Greg Stigers
Sent: Wednesday, 4 May 2005 1:13 PM
To: [log in to unmask]
Subject: [HP3000-L] writing a line of variables to a permanent file
I have a request to capture some info, most of which is available as
variables, and the rest of which can easily be set as variables. With that,
what is a clean way to append such a line to a permanent file?
Greg Stigers
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|