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  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Process linux system file values as PVs
From: Han Lee via Tech-talk <tech-talk at aps.anl.gov>
To: "Kunjir, Shriraj" <kunjir at frib.msu.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 11 Apr 2022 12:59:37 -0700
iocStats may be what you are looking for.


Best,
Han

On Mon, Apr 11, 2022 at 12:55 PM Kunjir, Shriraj via Tech-talk <tech-talk at aps.anl.gov> wrote:

Hello Tech-Talk,

Is it possible to process Linux system file values as PV records ? For example, we are looking to add MAC address and IP address of the IOC server as PVs.

 

A simple way to access the IOC server MAC address is  “$ cat /sys/class/net/eth0/address”  and “$ hostname -I” to access the IP address.

 

Is there a driver for accessing Linux system values ? Any examples for its usage ?

 

Thank you,
SK

 



--
Jeong Han Lee, Dr.rer.nat
Staff Scientist and Engineer
Lawrence Berkeley National Laboratory
1 Cyclotron Road Mailstop 46R0161
Berkeley, CA 94720, United States
Tel :+1-510-486-6163
Cell:+1-510-384-3868

References:
Process linux system file values as PVs Kunjir, Shriraj via Tech-talk

Navigate by Date:
Prev: Process linux system file values as PVs Kunjir, Shriraj via Tech-talk
Next: Dynamically changing HIHI PV field Marco A. Barra Montevechi Filho 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  <20222023  2024 
Navigate by Thread:
Prev: Process linux system file values as PVs Kunjir, Shriraj via Tech-talk
Next: Dynamically changing HIHI PV field Marco A. Barra Montevechi Filho 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·