1# @Language: Markdown
2# @Software: VS Code/MacDown/Typora/Vim
3# @Author : Di Wang
4# @Email : [email protected]
provided shell commands in 7.0.8
:
1epics> help
2# ClockTime_Report asDumpHash asInit
3asSetFilename asSetSubstitutions ascar asdbdump
4asphag aspmem asprules aspuag astac
5callbackParallelThreads callbackQueueShow
6callbackSetQueueSize casr cd coreRelease
7date dbCreateAlias dbDumpBreaktable dbDumpDevice
8dbDumpDriver dbDumpField dbDumpFunction dbDumpLink dbDumpMenu
9dbDumpPath dbDumpRecord dbDumpRecordType
10dbDumpRegistrar dbDumpVariable dbLoadDatabase dbLoadGroup dbLoadRecords
11dbLoadTemplate dbLockShowLocked dbNotifyDump dbPutAttribute
12dbPvdDump dbPvdTableSize dbReportDeviceConfig dbStateClear
13dbStateCreate dbStateSet dbStateShow dbStateShowAll dba
14dbap dbb dbc dbcar dbd
15dbel dbgf dbgl dbgrep dbhcr
16dbior dbjlr dbl dbla dbli
17dblsr dbnr dbp dbpf dbpr
18dbpvar dbs dbsr dbstat dbtgf
19dbtpf dbtpn dbtr dlload echo
20eltc epicsEnvSet epicsEnvShow epicsEnvUnset
21epicsMutexShowAll epicsParamShow epicsPrtEnvParams
22epicsThreadResume epicsThreadShow epicsThreadShowAll
23epicsThreadSleep errlog errlogInit errlogInit2
24exit generalTimeReport gft help
25installLastResortEventProvider iocBuild iocInit iocLogInit
26iocLogPrefix iocLogShow iocPause iocRun iocshCmd
27iocshLoad iocshRun on pft postEvent
28pval pvasr pwd refdiff refmon
29refsave refshow registerAllRecordDeviceDrivers
30registryDeviceSupportFind registryDriverSupportFind registryDump
31registryFunctionFind registryRecordTypeFind
32scanOnceQueueShow scanOnceSetQueueSize scanpel
33scanpiol scanppl setIocLogDisable
34softIocPVA_registerRecordDeviceDriver startPVAServer stopPVAServer
35system taskwdShow tpn var
36
37Type 'help <command>' to see the arguments of <command>. eg. 'help db*'
#
Note that, trailing comment does not work as you thought inside iocsh. if you run command like outputWhenHigherThan(12, 10) # output 10 when value > 12
, do not be too surprised with the result.
1epics> help #
2
3# newline-terminated comment
4epics> echo #123
5#123
6epics> echo # 123
7#
8epics> echo # echo 123 > test.log
9epics> system "cat test.log"
10#
access security related
1epics> as
2asDumpHash asSetFilename ascar asphag asprules
3astac asInit asSetSubstitutions asdbdump aspmem
4aspuag
db related
- dba, db address
- dbla, db list alias
- dbl, db list
- dbgrep, db search
- dbgf
- dbpf
- dbpr
- dbtr, process record and print record
- dbnr, print number of records
- dbb, set breakpoint
- dbd, delete breakpoint
- dbs, single step
- dbc, continue
- dbp, print suspended record
- dbap, auto print record that has a breakpoint when processed
- dbstat, print list of suspended records, and breakpoints set in locksets
1# db address
2epics> dba calc
3Record Address: 0x5598f77c66f0 Field Address: 0x5598f77c69a0 Field Description: 0x5598f7752290
4 No Elements: 1
5 Record Type: calc
6 Field Type: 10 = DBF_DOUBLE
7 Field Size: 8
8 Special: 0
9DBR Field Type: 10 = DBR_DOUBLE
10epics> dbCreateAlias pdbbase calc clac:alias
11epics> dbla
12clac:alias -> calc
13epics> dbtr ai
14ACKS: MINOR ACKT: YES ADEL: 0 AFTC: 0
15AFVL: 0 ALST: 13 AMSG: AOFF: 0
16ASG : private ASLO: 1 BKPT: 00 DESC:
17DISA: 0 DISP: 0 DISS: NO_ALARM DISV: 1
18DTYP: Soft Channel EGU : EGUF: 0 EGUL: 0
19EOFF: 0 ESLO: 1 EVNT: FLNK: CONSTANT
20HHSV: MAJOR HIGH: 80 HIHI: 90 HOPR: 0
21HSV : MINOR HYST: 1 INIT: 0 INP : CONSTANT
22LALM: 20 LBRK: 0 LCNT: 0 LINR: NO CONVERSION
23LLSV: MAJOR LOLO: 10 LOPR: 100 LOW : 20
24LSV : MINOR MDEL: 0 MLST: 13 NAME: ai
25NAMSG: NSEV: NO_ALARM NSTA: NO_ALARM ORAW: 0
26PACT: 0 PHAS: 0 PINI: RUNNING PREC: 3
27PRIO: LOW PROC: 0 PUTF: 0 ROFF: 0
28RPRO: 0 RVAL: 0 SCAN: Passive SDIS: CONSTANT
29SDLY: -1 SEVR: MINOR SIML: CONSTANT SIMM: NO
30SIMS: NO_ALARM SIOL: JSON_LINK {const: 3.14159} SMOO: 0
31SSCN: 65535 STAT: LOW SVAL: 3.14159
32TIME: 2024-05-25 13:20:57.409527694 TPRO: 0 TSE : 0
33TSEL: CONSTANT UDF : 0 UDFS: INVALID UTAG: 0
34VAL : 13
error log
- eltc, Control display of error log messages on console
- errlog, Send a message to the log server
- errlogInit, errlogInit2
hardware related
- dbior
- dbhcr
scan related
- scanOnceQueueShow
- scanOnceSetQueueSize
- scanpel, Print Event Lists
- scanpiol, Print I/O Event Lists
- scanppl, Print Periodic Lists
Time related
- generalTimeReport
- ClockTime_Report
1epics> help installLastResortEventProvider
2
3installLastResortEventProvider
4
5Installs the optional Last Resort event provider at priority 999,
6which returns the current time for every event number
7epics> help ClockTime_Report
8
9ClockTime_Report interest_level
10
11Reports the IOC's OS clock synchronization status:
12 - On VxWorks and RTEMS when synchronized:
13 * Synchronization time provider priority
14 * Initial and last synchronization times
15 * Synchronization interval
16 - Otherwise:
17 * Program start time
CA related
- casr, Channel Access Server Report
- dbel, prints the Channel Access event list for the specified record
- dbcar, Shows status of Channel Access links (CA_LINK)
1epics> casr 4
2Channel Access Server V4.13
3No clients connected.
4CAS-TCP server on 0.0.0.0:5064 with
5 CAS-UDP name server on 0.0.0.0:5064
6 Last name requested by 172.29.165.14:43519:
7 User '', V4.13, Priority = 0, 0 Channels
8Sending CAS-beacons to 1 address:
9 172.29.175.255:5065
10Free-lists total 350120 bytes, comprising
11 7 client(s), 512 channel(s), 512 monitor event(s), 0 putNotify(s)
12 16 small (16384 byte) buffers, 4294967295 jumbo (10000024 byte) buffers
13Server resource id table:
14 Bucket entries in use = 0 bytes in use = 32800
15 Bucket entries/hash id - mean = 0.000000 std dev = 0.000000 max = 0
16epics> dbel ai 2
171 PV Event Subscriptions ( monitors ).
18 VAL { VALUE ALARM }, thread=0x7f190c000f60, queue empty
PVA related
- pval
- pvasr
- refdiff, reference counter
- refmon
- refsave
- refshow
Test related
- dbtgf, test get field; Old: gft
- dbtpf, test put field; Old: pft
- dbtpn, test Process notify; Old: tpn
- dblsr, lock set report
- dbLockShowLocked
Miscellaneous
- epicsParamShow
- epicsPrtEnvParams
- epicsEnvShow
- on, ??????? how to use?
- iocshCmd, run ioc shell command
- iocshRun, run ioc shell command, with macro
- iocshLoad, load a file with macro
1epics> help on
2
3on 'error' 'continue' | 'break' | 'wait' [value] | 'halt'
4
5Change IOC shell error handling.
6 continue (default) - Ignores error and continue with next commands.
7 break - Return to caller without executing futher commands.
8 halt - Suspend process.
9 wait - stall process for [value] seconds, then continue.
10epics> on error halt
11Interactive shell ignores on error ...