> However I suspect it might be easier to start from scratch (I'd recommend using the PVXS API) to implement a separate pvSnooper program.
I agree.
For what it’s worth, the core-pva java library already contains a PVA search monitor that does a lot of what caSnooper does for Channel Access.
It’s not much code, see
https://github.com/ControlSystemStudio/phoebus/blob/master/core/pva/src/main/java/org/epics/pva/server/PVASearchMonitorMain.java
Example Usage:
$ ./pvasearchmonitor -h
USAGE: pvasearchmonitor [options]
Options:
-h
Help
-p <seconds>
Update period (default 10 seconds)
-1
Update once, then quit
-v <level>
Verbosity, level 0-5
Waits for the specified period,
then prints information about received search requests.
Output of running it while calling “pvget Demo Test AnotherPV” in another window:
$ ./pvasearchmonitor -p 10 -1
Monitoring search requests for 10 seconds...
Count Name
Last Client
Age
36 Demo
/10.1.58.230:50842
2 sec
36 Test
/10.1.58.230:50842
2 sec
36 AnotherPV
/10.1.58.230:50842
2 sec
Done.
For a C++ implementation I agree that PVXS would be a good starting point.
Thanks,
Kay
From:
Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Johnson, Andrew N. via Tech-talk <tech-talk at aps.anl.gov>
Date: Wednesday, December 6, 2023 at 12:27 PM
To: Murray, Doug <drm at slac.stanford.edu>, tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: [EXTERNAL] Re: CaSnooper Update?
HI Doug,
caSnooper was written by Ken Evans, and hasn't been maintained since 2013, before Janet Anderson retired. If SLAC wants to maintain it you're welcome to take it over, I'd be happy to provide a git repo containing
the CVS commit history.
However I suspect it might be easier to start from scratch (I'd recommend using the PVXS API) to implement a separate pvSnooper program.
- Andrew
Complexity comes for free, Simplicity you have to work for.
From:
Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Murray, Doug via Tech-talk <tech-talk at aps.anl.gov>
Date: Wednesday, December 6, 2023 at 8:49 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: CaSnooper Update?
The caSnooper tool is still being used at SLAC, is it being used elsewhere and is there interest in having it updated to support pvAccess?