...
Description:
This is one of the steps used in automation of archiver configuraitonconfiguration.
This assumes the requests for the archiver are somehow stored in the IOC (perhaps in INFO fields) and then submitted as archive files.
Archive files are consolidated together into a IOC_DATA like folder and can be identified using a bash glob expression.
Archive files are space/tab separated text files with these rules
1) They can have blank lines
2) They can have comment lines beginning with a #
3) Space/tab separated lines are interpreted as PVName, sampling period (in secs), sampling method (one of scan/monitor).
4) The PVName is mandatory; the other two are optional in which case defaults (optional arguments to this script) are applied.
Notes:
Info |
---|
Archives PVs in $IOC_DATA/<IOC>/archive/*.archive files modified within the past 7 days |
Info |
---|
Defaults archive parameters for PVs to 1.0s, MONITOR |
lclsPauseDisconnectedPVs
...
Cronjob:
Code Block | ||||
---|---|---|---|---|
| ||||
lcls-prod01 00 2 * * 3,4 /afs/slac/g/lcls/package/ArchiverAppliance/tools/script/lclsPauseDisconnectPVs.sh |
Log:
Code Block | ||||
---|---|---|---|---|
| ||||
/tmp/lclsPauseDisconnectedPVs.log |
Schedule: Every Wednesday and Thursday at 02:00
Description:
Gets a list of PVs that are disconnected and then pauses those that have not connected for a specified amount of time.
Notes:-
Info |
---|
Pauses PVs that have not connected for the past 24 hours |
lclsResumeAllPausedPVs
...
Cronjob:
Code Block | ||||
---|---|---|---|---|
| ||||
lcls-prod01 00 3 * * * /afs/slac/g/lcls/package/ArchiverAppliance/tools/script/lclsResumeAllPausedPVs.sh |
Log:
Code Block | ||||
---|---|---|---|---|
| ||||
/tmp/lclsResumeAllPausedPVs.log |
Schedule: Daily at 03:00
Description:
This script gets a list of PVS that are paused and then resumes the archive request for each active PV.
Optionally, we can pass in a folder with a list of .archive files.
Only those paused PV's which are present in archive files that have been modified recently will be checked
Notes:-
Info |
---|
Attempts to resume all paused PVs in the LCLS Archiver Appliance instance |
...
Info |
---|
Waits 2 seconds for PVs to connect |
...
Info |
---|
Processes 10 PVs at a time |
lclsSetupEnv
...
Notes:-
Info |
---|
Runs from custom Python3 conda environment |
...
Info |
---|
Uses EPICS 3.15.5-1.0 environment |
Info |
---|
...
Sends emails to controls-cd@slac.stanford.edu |
Info |
---|
...
Sets IOC_DATA to LCLS production directory |