RE: [U2] UV - Tracking file writes Unclassified}
If all you want is counts, you can enable collection of file statistics using FILE.USAGE.CLEAR command. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] UV - Tracking file writes
I need to track all processes that write to a specific file. At one time I remember that you could set some type of trigger to do this. If someone could provided me the information on how to do this, or direct me to the documentation that covers this I would appreciate it. Jim Koca --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UV - Tracking file writes
A trigger would be an ideal method as it's non-intrusive to your existing code. There are some caveats though. Basically you'd create a UNIBASIC program that could have any logic you want. In your case, probably something that writes to an audit file. You then attach this program to your file via a CREATE.TRIGGER command most likely defining it as an UPDATE trigger (there are some rules and parameters that you can get from the docs). Since your goal is to identify processes, the caveat would be how to identify the process. The trigger is based strictly on the file and doesn't really care what process initiated it. Depending on your platform and how your system is put together, @VERB or @SENTENCE might give you what you need or you might have to come up with something different. HTH Mike Randall -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Koca Sent: Wednesday, July 12, 2006 1:15 PM To: u2-users@listserver.u2ug.org Subject: [U2] UV - Tracking file writes I need to track all processes that write to a specific file. At one time I remember that you could set some type of trigger to do this. If someone could provided me the information on how to do this, or direct me to the documentation that covers this I would appreciate it. Jim Koca --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UV - Tracking file writes
I use file triggers quite frequently to trace down problems with processes. You can find the documentation for this in the Universe SQL Reference manual. Jim Koca wrote: I need to track all processes that write to a specific file. At one time I remember that you could set some type of trigger to do this. If someone could provided me the information on how to do this, or direct me to the documentation that covers this I would appreciate it. Jim Koca --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UV - Tracking file writes
The UV SQL Reference manual gives a pretty good description. The odd part is cataloging the trigger program; if you're pick flavor, you'll need to create an information flavor CATALOG verb (although I don't remember if I was working on a Windows or Unix box?). Also, before the Trigger subroutine can Write to a file, it must first READU the record. And I think you need to be on UV 10.x to use triggers with files. HTH, Mark -Original Message- I need to track all processes that write to a specific file. At one time I remember that you could set some type of trigger to do this. If someone could provided me the information on how to do this, or direct me to the documentation that covers this I would appreciate it. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UV - Tracking file writes Unclassified}
Mike, -Original Message- From: [EMAIL PROTECTED] On Behalf Of Mike Randall Sent: Thursday, 13 July 2006 05:46 To: u2-users@listserver.u2ug.org Subject: RE: [U2] UV - Tracking file writes A trigger would be an ideal method as it's non-intrusive to your existing code. [snip] Since your goal is to identify processes, the caveat would be how to identify the process. The trigger is based strictly on the file and doesn't really care what process initiated it. Depending on your platform and how your system is put together, @VERB or @SENTENCE might give you what you need or you might have to come up with something different. I wonder what would be in the SYSTEM(9001) CALL Stack in a trigger program? It might be able to tell you exactly where you came from. Mike HTH Mike Randall The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/