If anyone wants the columns to line up to make the log easier to read, you
can fiddle with the LFT & RHT functions on the fields that aren't
fixed-length, maybe something like...
IF HPJOBTYPE="S"
FILE CAPTURE=LOGON.PUB,OLD
ECHO ![lft("!HPUSER ", 9)] , &
!HPJOBTYPE , &
![rht(" !HPJOBNUM", 6)] , &
!HPYYYYMMDD , &
!HPINTROTIME , &
![rht(" !HPCPUSECS", 6)] >> *CAPTURE
ENDIF
(meanwhile, I hope/assume that the "capture" logfile is circular, so it
automagically cleans up the old stuff ? )
I have similar formatting in dozens of circular application log files, and
it works fine, but I haven't actually logged log-ons (yet).
----- Original Message -----
From: "Newton, Ernie" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, September 09, 2009 16:45
Subject: Re: [HP3000-L] Login Report
Hi Reginald,
Without getting into the complications of system logging, I added
to a logon UDC some logic that looks for the variable HPJOBTYPE="S".
I then capture the information that I'm looking for and put it in a file.
This is what the logic looks like...
IF HPJOBTYPE="S"
FILE CAPTURE=LOGON.PUB,OLD
ECHO !HPUSER , &
!HPJOBTYPE , &
!HPJOBNUM , &
!HPYYYYMMDD , &
!HPINTROTIME , &
!HPCPUSECS >> *CAPTURE
ENDIF
It's just a quick and dirty little thing, but it meets my needs.
Ernie
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf
Of Reggie Monroe
Sent: Wednesday, September 09, 2009 4:32 PM
To: [log in to unmask]
Subject: [HP3000-L] Login Report
Is there a way to create customized reports displaying who logged into an
Hp3000 system.
[cid:image005.jpg@01CA316B.045A5110]
Reginald C. Monroe Jr | Sr. Systems Administrator | Mercury Insurance
555 W. Imperial Hwy. Brea, CA 92821
(714) 671-6753 Direct (714) 671-6541 Fax
www.mercuryinsurance.com<http://www.mercuryinsurance.com>
This email and/or any files or attachments transmitted with it are
confidential and intended solely for the use of the individual or entity to
whom they are addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are not
the intended recipient, or the employee or agent responsible for delivering
the message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this e-mail and/or any files or
attachments transmitted with it is strictly forbidden. If you have received
this email in error, please delete the e-mail and/or any files or
attachments, and also notify the system manager
([log in to unmask]) of the error. Please note that any views
or opinions presented in this email are solely those of the author and do
not necessarily represent those of the company. Finally, the recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email and/or any files or attachments transmitted with it.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
The Yolo County Office of Education has scanned this message for viruses and
dangerous content
This message, including any attachments, is intended solely for the use of
the named recipient(s) and may contain confidential and/or privileged
information. Any unauthorized review, use, disclosure or distribution of
this communication(s) is expressly prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy any and all
copies of the original message.
* 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 *
|