cancel
Showing results for 
Search instead for 
Did you mean: 

File change alert from nonstop

TushR
05 Base Camper

File change alert from nonstop

Dear Team,

 

Is it possible to monitor any change on an Edit file (filecode 101) from NonStop.

I need to generate an alert immediately if a file that is being monitored is updated.

 

Thanks in advance,

tushR

1 ACCEPTED SOLUTION

Accepted Solutions

Re: File change alert from nonstop

Hi @TushR ,

 

I was able to tack down an old example extractor that you might be able to adapt for what you need. I've attached a zip file that contains all of the files and the example uses a TACL routine to format the output of the 'FILE INFO' command which it returns to an extractor script. It also includes a record definition, which you would need to add to the UDEFSREC file of all Prognosis servers that need to use this record.

The zip file contains a readme file that explains what each file does. Providing this 'as-is' so you have something to reference if you need to create your own solution.

 

Regards,

Scott

View solution in original post

4 REPLIES 4

Re: File change alert from nonstop

Hi @TushR ,

 

You can use the 'ADD FILE' parameter in the DISC configuration to capture FILEDET data on a file or group of files. I think you may be able to use this to identify when a file has been opened for read. You would need to have the Disk Manager product licensed in order to run STDC.

If this is what you're looking for, you can find more information under 'DISC Configuration Syntax'.

Hope this helps!

Regards,

Scott

 

TushR
05 Base Camper

Re: File change alert from nonstop

@Scott_Clement ,

 

Thank you for your response..

We have done the configuration in DISC configuration and I can able to see it in dashboard as well.

How we can determined that file is updated? we don't want alert while file is opened for reading but we want to a notify once it gets changed.

For Example:  "XYZ" file (CODE 101) is opened from long period for reading but if any record in file gets changed or any new record add in it then we need an alert.

 

Thanks,

tushR

Re: File change alert from nonstop

Hi @TushR,

The only metrics I can think of (that might detect a change after the file is written to) are the Write Rate fields in that record (i.e. Logical writes, Cache writes and Physical writes). I'm just not sure if Measure is going to be able to detect a small update to an edit file in your specific scenario. Collecting the FILEDET record to a database while you run a couple of tests (i.e. simulating your scenario where the file is being written to) should tell you if Measure can detect when the file gets written to. 

 

If the FILEDET record doesn't help, the only other suggestion would be to create a user defined record and a simple command line extractor that will pick up the last modified timestamp using the 'FUP INFO' command. That might allow you to detect when the file was last modified and generate an alert. There are sections in the product guide that describe how to set up a user defined record and an extractor script. We also include some packaged examples in the product if you need some examples to refer to. In the EXTRACTOR configuration, you should find a log file extractor example:

EXTRACT LOG (FSCOL, PAUDEXT, AUDITLOG, 0, 2000)

 

A file extractor example:

EXTRACT FILE (FSCOL, PTCHEXT, P119PTCH.AUDITLOG, 0 )

 

And a command extractor example:

EXTRACT COMMAND (FSCOL, RDFSTEXT, "RUN RDFST", 0)

 

If creating your own extractor solution is a bit overwhelming, you also have the option of engaging with our Professional Services team who should be able to build a solution to suit your needs. If that's an option you'd like to pursue, either contact your account manager or let us know and we can have them give you a call.

Hopefully this helps!

 

Regards,

Scott

Re: File change alert from nonstop

Hi @TushR ,

 

I was able to tack down an old example extractor that you might be able to adapt for what you need. I've attached a zip file that contains all of the files and the example uses a TACL routine to format the output of the 'FILE INFO' command which it returns to an extractor script. It also includes a record definition, which you would need to add to the UDEFSREC file of all Prognosis servers that need to use this record.

The zip file contains a readme file that explains what each file does. Providing this 'as-is' so you have something to reference if you need to create your own solution.

 

Regards,

Scott

View solution in original post

Webinar: Keep the modern workforce connected

Unified Communications has always been an important part of companies' digital transformation efforts due to its ability to enable rich virtual collaboration and communication. But with COVID-19, we've reached a break-through point.

Join Bill Haskins, Sr. Analyst & Partner, Unified Communications at Wainhouse Research, and John Ruthven, CEO at IR discuss UC challenges companies are experiencing due to the COVOID-19 crisis.

Join webinar