Hi Mike,
On 2013-04-30 Zelazny, Michael Stanley wrote:
>
> 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?
You can already use the command below on vxWorks to generate a .db file
containing all the non-default design-time field values of all record
instances currently loaded by the IOC:
dbDumpRecord(pdbbase,0,0) > all.db
I think this should also work from RTEMS under CEXP, but iocsh doesn't have
any way of passing a NULL as the second argument (the record type name string)
which is currently necessary to dump all record types. You'd have to issue
one command for each record type to use this command from iocsh with existing
versions of Base, although I will fix that to accept '*' or an empty string.
It should be relatively easy to create a new command to generate the output
that you asked for if dbDumpRecord doesn't work for you, although I'm not sure
that having an 'output format' argument is a good idea for user commands,
probably better to use a different command completely.
- Andrew
--
It is difficult to get a man to understand something, when his salary
depends upon his not understanding it. -- Upton Sinclair
- Replies:
- Re: Would like to add regular expressions to dbpr Benjamin Franksen
- References:
- Would like to add regular expressions to dbpr Zelazny, Michael Stanley
- Navigate by Date:
- Prev:
CSS 3.1.x PVManager / JCA ClassCastException marcus . michalsky
- Next:
Re: Would like to add regular expressions to dbpr Benjamin Franksen
- 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
- Navigate by Thread:
- Prev:
Would like to add regular expressions to dbpr Zelazny, Michael Stanley
- Next:
Re: Would like to add regular expressions to dbpr Benjamin Franksen
- 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
|