EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025
<== Date ==> <== Thread ==>

Subject: RE: How to know which CA client(IP address) modified a PV
From: "Mercado, Ronaldo \(DLSLtd, RAL, LSCI\) via Tech-talk" <tech-talk at aps.anl.gov>
To: LiangChih Chiang <yehnan174 at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 12 May 2025 08:39:26 +0000

Hi,

 

Thanks for writing.

Sorry for the lack of documentation for pvlogging.

I typed below instructions to use the module based on examples I have seen.

For step 3, I haven’t seen any example use anything other than the default.

Regards,

Ronaldo

 

1. add pvlogging to your lib files, e.g. in xxApp/src/Makefile

 

xx_LIBS += pvlogging

 

2. add pvlogging to your dbd files, e.g. in xxApp/src/Makefile

 

xx_DBD += pvlogging.dbd

 

3. Set up an access file in the startup script.

   The suggested default is 'data/access.acf'

e.g. in st.cmd add

 

asSetFilename "/dls_sw/prod/R3.14.12.3/support/pvlogging/1-3/data/access.acf"

 

 

4. Optional step, load a blacklist in the startup script, e.g.

 

load_logging_blacklist 'SR02J-CS-IOC-01App/data/auto_blacklist'

 

---- example contents for a blacklist file (generated using  iocbuilder) --

Automatically generated, do not edit

SR02J-MO-SERVC-01:FIELD

---- end of example contents --

 

From: LiangChih Chiang <yehnan174 at gmail.com>
Sent: 12 May 2025 03:30
To: Mercado, Ronaldo (DLSLtd,RAL,LSCI) <ronaldo.mercado at diamond.ac.uk>
Cc: tech-talk at aps.anl.gov
Subject: Re: How to know which CA client(IP address) modified a PV

 

I tried caPutLog and succeeded.

Need more time to configure the access security file to restrict what to log.

 

 

I can't find the document of the pvlogging module.

Is there any?

 

 

On Fri, May 9, 2025 at 6:16PM Mercado, Ronaldo (DLSLtd,RAL,LSCI) <ronaldo.mercado at diamond.ac.uk> wrote:

Hi,

 

I have used pvlogging for this purpose.

 

https://github.com/DiamondLightSource/pvlogging

 

Regards,

Ronaldo

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of LiangChih Chiang via Tech-talk
Sent: 09 May 2025 04:15
To: J. Lewis Muir <jlmuir at imca-cat.org>
Cc: tech-talk at aps.anl.gov
Subject: Re: How to know which CA client(IP address) modified a PV

 

Thanks.

 

caPutLog seems to be a satisfying solution. I will give it a try.

 

The log messages include host information as the following excerpt from the documentation:

 

    The actual log message sent from the IOC has this format:  

    <iocLogPrefix><date> <time> <host> <user> <pv> <change>

 

 

 

 

 

On Fri, May 9, 2025 at 10:58AM J. Lewis Muir <jlmuir at imca-cat.org> wrote:

On 05/09, LiangChih Chiang via Tech-talk wrote:
> How to know which CA client(IP address) modified a PV in EPICS version 3.14.
>
> I searched and got two methods:
>
> What other methods do you use or recommend?

Haven't used it myself, but there's caPutLog:

  https://github.com/epics-modules/caPutLog

Lewis

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom.

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom.

References:
How to know which CA client(IP address) modified a PV LiangChih Chiang via Tech-talk
Re: How to know which CA client(IP address) modified a PV J. Lewis Muir via Tech-talk
Re: How to know which CA client(IP address) modified a PV LiangChih Chiang via Tech-talk
RE: How to know which CA client(IP address) modified a PV Mercado, Ronaldo (DLSLtd, RAL, LSCI) via Tech-talk
Re: How to know which CA client(IP address) modified a PV LiangChih Chiang via Tech-talk

Navigate by Date:
Prev: Re: How to know which CA client(IP address) modified a PV LiangChih Chiang via Tech-talk
Next: fedora 42 and makeBaseApp -t example Heinz Junkes via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025
Navigate by Thread:
Prev: Re: How to know which CA client(IP address) modified a PV LiangChih Chiang via Tech-talk
Next: Re: How to know which CA client(IP address) modified a PV Shen, Guobao via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025
ANJ, 12 May 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·