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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Would like to add regular expressions to dbpr
From: "Zelazny, Michael Stanley" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Tue, 30 Apr 2013 16:25:34 -0700
Hi All,

Does anyone have a need to resolve regular expressions in the dbpr command?

I often issue a dbgrep immediately followed by a dbpr and thought it would be useful if I could do both together.  Example:

sioc-sys0-ml00>dbgrep("SIOC:SYS0:ML00:FWF0*")
SIOC:SYS0:ML00:FWF01
SIOC:SYS0:ML00:FWF02
sioc-sys0-ml00>dbpr("SIOC:SYS0:ML00:FWF01")
ASG:                BUSY: 0             DESC: spare         DISA: 0             
DISP: 0             DISV: 1             NAME: SIOC:SYS0:ML00:FWF01              
NORD: 1             SEVR: NO_ALARM      STAT: NO_ALARM      TPRO: 0             
VAL: (nil) 
sioc-sys0-ml00>dbpr("SIOC:SYS0:ML00:FWF02",)
ASG:                BUSY: 0             DESC: spare         DISA: 0             
DISP: 0             DISV: 1             NAME: SIOC:SYS0:ML00:FWF02              
NORD: 1             SEVR: NO_ALARM      STAT: NO_ALARM      TPRO: 0             
VAL: (nil) 

...could be replaced with:

sioc-sys0-ml00>dbpr("SIOC:SYS0:ML00:FWF0*")
SIOC:SYS0:ML00:FWF01
ASG:                BUSY: 0             DESC: spare         DISA: 0             
DISP: 0             DISV: 1             NAME: SIOC:SYS0:ML00:FWF01              
NORD: 1             SEVR: NO_ALARM      STAT: NO_ALARM      TPRO: 0             
VAL: (nil) 
SIOC:SYS0:ML00:FWF02
ASG:                BUSY: 0             DESC: spare         DISA: 0             
DISP: 0             DISV: 1             NAME: SIOC:SYS0:ML00:FWF02              
NORD: 1             SEVR: NO_ALARM      STAT: NO_ALARM      TPRO: 0             
VAL: (nil) 

In addition to the interest level argument, I'd like to add an option to display them in one column.  Example:

sioc-sys0-ml00>dbpr("SIOC:SYS0:ML00:FWF0*",0,1)
SIOC:SYS0:ML00:FWF01
    ASG:                
    BUSY: 0             
    DESC: spare         
    DISA: 0             
    DISP: 0             
    DISV: 1             
    NAME: SIOC:SYS0:ML00:FWF01              
    NORD: 1             
    SEVR: NO_ALARM      
    STAT: NO_ALARM      
    TPRO: 0             
    VAL: (nil) 
SIOC:SYS0:ML00:FWF02
    ASG:                
    BUSY: 0             
    DESC: spare           
    DISA: 0             
    DISP: 0            
    DISV: 1             
    NAME: SIOC:SYS0:ML00:FWF02              
    NORD: 1             
    SEVR: NO_ALARM      
    STAT: NO_ALARM      
    TPRO: 0             
    VAL: (nil) 

Motivation: Currently the SLAC electron beam line controls group uses an IRMIS crawler to get PV information into the RDB by crawling every IOCs st.cmd.  Our engineers add new, but valid, syntax that results in us having to massage that crawler quite a bit.  I would like to add a command to all of our IOC startup scripts that generates a list of PVs and fields that can easily crawled and inserted into the IRMIS RDB.  Example:

iocshCmd("dbpr(*,5,1) >/data/iocInfo/IOC.pvEveryField")

Opinions?

Could this be a code-a-thon topic?

Mike



Replies:
Re: Would like to add regular expressions to dbpr Andrew Johnson

Navigate by Date:
Prev: Re: EPICS Extensions Compilation Errors Janet Anderson
Next: Re: EPICS Extensions Compilation Errors Pete Jemian
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS Extensions Compilation Errors Dirk Zimoch
Next: Re: Would like to add regular expressions to dbpr Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·