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: 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 |
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