From a14bd937def5d108c086580090a62cc840098dfe Mon Sep 17 00:00:00 2001
From: Pete Jemian <prjemian@gmail.com>
Date: Mon, 1 Apr 2013 18:53:46 +0000
Subject: [PATCH] write list of PVs to a file, log the date/time this IOC
 finished booting on the console

---
 iocBoot/iocCygwin/st.cmd  | 6 ++++++
 iocBoot/iocLinux/st.cmd   | 6 ++++++
 iocBoot/iocSolaris/st.cmd | 7 +++++++
 iocBoot/iocvxWorks/st.cmd | 7 +++++++
 4 files changed, 26 insertions(+)

diff --git a/iocBoot/iocCygwin/st.cmd b/iocBoot/iocCygwin/st.cmd
index 5fa4387..8a43517 100644
--- a/iocBoot/iocCygwin/st.cmd
+++ b/iocBoot/iocCygwin/st.cmd
@@ -154,6 +154,10 @@ dbLoadRecords("$(DEVIOCSTATS)/db/ioc.db","IOCNAME=xxx, TODFORMAT=%m/%d/%Y %H:%M:
 
 ###############################################################################
 iocInit
+###############################################################################
+
+# write all the PV names to a local file
+dbl > dbl-all.txt
 
 ### startup State Notation Language programs
 #seq &kohzuCtl, "P=xxx:, M_THETA=m9, M_Y=m10, M_Z=m11, GEOM=1, logfile=kohzuCtl.log"
@@ -200,3 +204,5 @@ motorUtilInit("xxx:")
 
 dbcar(0,1)
 
+# print the time our boot was finished
+date
diff --git a/iocBoot/iocLinux/st.cmd b/iocBoot/iocLinux/st.cmd
index ec47268..31e43da 100644
--- a/iocBoot/iocLinux/st.cmd
+++ b/iocBoot/iocLinux/st.cmd
@@ -168,6 +168,10 @@ dbLoadRecords("$(DEVIOCSTATS)/db/iocAdminSoft.db","IOC=xxx")
 
 ###############################################################################
 iocInit
+###############################################################################
+
+# write all the PV names to a local file
+dbl > dbl-all.txt
 
 ### startup State Notation Language programs
 #seq &kohzuCtl, "P=xxx:, M_THETA=m1, M_Y=m2, M_Z=m3, GEOM=1, logfile=kohzuCtl.log"
@@ -211,3 +215,5 @@ dbcar(0,1)
 # motorUtil (allstop & alldone)
 motorUtilInit("xxx:")
 
+# print the time our boot was finished
+date
diff --git a/iocBoot/iocSolaris/st.cmd b/iocBoot/iocSolaris/st.cmd
index f4b0a7f..7850d8c 100644
--- a/iocBoot/iocSolaris/st.cmd
+++ b/iocBoot/iocSolaris/st.cmd
@@ -145,6 +145,10 @@ dbLoadRecords("$(DEVIOCSTATS)/db/ioc.db","IOCNAME=xxx, TODFORMAT=%m/%d/%y %H:%M:
 
 ###############################################################################
 iocInit
+###############################################################################
+
+# write all the PV names to a local file
+dbl > dbl-all.txt
 
 ### startup State Notation Language programs
 #seq &kohzuCtl, "P=xxx:, M_THETA=m1, M_Y=m2, M_Z=m3, GEOM=1, logfile=kohzuCtl.log"
@@ -197,3 +201,6 @@ saveData_Init("saveData.req", "P=xxx:")
 motorUtilInit("xxx:")
 #var sscanRecordDebug,1
 #var debug_saveData,1
+
+# print the time our boot was finished
+date
diff --git a/iocBoot/iocvxWorks/st.cmd b/iocBoot/iocvxWorks/st.cmd
index b4dc35d..8d16ad8 100644
--- a/iocBoot/iocvxWorks/st.cmd
+++ b/iocBoot/iocvxWorks/st.cmd
@@ -238,6 +238,10 @@ dbLoadRecords("$(MOTOR)/motorApp/Db/trajectoryScan.db","P=xxx:,R=traj1:,NAXES=8,
 shellPromptSet "iocvxWorks> "
 iocLogDisable=0
 iocInit
+###############################################################################
+
+# write all the PV names to a local file
+dbl > dbl-all.txt
 
 ### Startup State Notation Language (SNL) programs
 # NOTE: Command line limited to 128 characters
@@ -334,3 +338,6 @@ dbcar(0,1)
 
 # motorUtil (allstop & alldone)
 motorUtilInit("xxx:")
+
+# print the time our boot was finished
+date
-- 
GitLab