Skip to content

E3-662: Improved IOC startup output

Simon Rose requested to merge e3_662_improve_iocsh_startup_output into master

The IOC startup has been improved somewhat with the displayed variables made more clear and broken up into sections.

New output:

$ iocsh
███████╗██████╗     ██╗ ██████╗  ██████╗    ███████╗██╗  ██╗███████╗██╗     ██╗     
██╔════╝╚════██╗    ██║██╔═══██╗██╔════╝    ██╔════╝██║  ██║██╔════╝██║     ██║     
█████╗   █████╔╝    ██║██║   ██║██║         ███████╗███████║█████╗  ██║     ██║     
██╔══╝   ╚═══██╗    ██║██║   ██║██║         ╚════██║██╔══██║██╔══╝  ██║     ██║     
███████╗██████╔╝    ██║╚██████╔╝╚██████╗    ███████║██║  ██║███████╗███████╗███████╗
╚══════╝╚═════╝     ╚═╝ ╚═════╝  ╚═════╝    ╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝

# Start at "2022-W32-Aug09-1137-58-CEST"
# European Spallation Source ERIC : iocsh (test-PID-1292)
#
############################################################################
##  Shell and environment variables
############################################################################
# PWD = "/home/simonrose/git/e3/e3-require"
# USER = "simonrose"
# LOGNAME = "simonrose"
# PATH = "/epics/base-7.0.6.1/require/test/bin:/epics/base-7.0.6.1/bin/linux-x86_64:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/simonrose/.local/bin:/home/simonrose/go/bin:/home/simonrose/bin"
#
############################################################################
##  EPICS variables
############################################################################
# EPICS_BASE = "/epics/base-7.0.6.1"
# EPICS_HOST_ARCH = "linux-x86_64"
# EPICS_DRIVER_PATH = "/epics/base-7.0.6.1/require/test/siteMods"
# EPICS_CA_AUTO_ADDR_LIST = ""
# EPICS_CA_ADDR_LIST = ""
# EPICS_PVA_AUTO_ADDR_LIST = ""
# EPICS_PVA_ADDR_LIST = ""
#
############################################################################
##  e3-specific variables
############################################################################
# E3_REQUIRE_VERSION = "test"
# E3_REQUIRE_LOCATION = "/epics/base-7.0.6.1/require/test"
# E3_REQUIRE_BIN = "/epics/base-7.0.6.1/require/test/bin"
# E3_REQUIRE_DB = "/epics/base-7.0.6.1/require/test/db"
# E3_REQUIRE_DBD = "/epics/base-7.0.6.1/require/test/dbd"
# E3_REQUIRE_INC = "/epics/base-7.0.6.1/require/test/include"
# E3_REQUIRE_LIB = "/epics/base-7.0.6.1/require/test/lib"
#
############################################################################
##  IOC startup commands
############################################################################
# // Set REQUIRE_IOC for its internal PVs
epicsEnvSet REQUIRE_IOC "REQMOD:localhost-1292"
#
# // Enable an exit subroutine for sotfioc
dbLoadRecords "/epics/base-7.0.6.1/db/softIocExit.db" "IOC=REQMOD:localhost-1292"
#
# // Set E3_IOCSH_TOP for the absolute path where iocsh is executed.
epicsEnvSet E3_IOCSH_TOP "/home/simonrose/git/e3/e3-require"
#
# // Load require module, version test
#
dlload /epics/base-7.0.6.1/require/test/lib/linux-x86_64/librequire.so
dbLoadDatabase /epics/base-7.0.6.1/require/test/dbd/require.dbd
require_registerRecordDeviceDriver
Loading module info records for require
# 
# // Set the IOC Prompt String
epicsEnvSet IOCSH_PS1 "localhost-1292 > "
#
iocInit
Starting iocInit
############################################################################
## EPICS R7.0.6.1-E3-7.0.6.1-patch
## Rev. 2022-08-02T10:08+0200
############################################################################
_main_: dbProcess of 'REQMOD:localhost-31099:Labels'
iocRun: All initialization complete
localhost-31099 >
Edited by Simon Rose

Merge request reports

Loading