Skip to content

Commit

Permalink
Merge pull request #178 from slactjohnson/arch_resume
Browse files Browse the repository at this point in the history
Add in new script for resuming PVs in the archiver.
  • Loading branch information
slactjohnson authored Apr 11, 2024
2 parents 08c0a9a + 834a553 commit 82cb7d4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions scripts/archive-resume
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
usage()
{
cat << EOF
usage: $0 <PV>
Resume archiving of a PV in the archiver, e.g. $0 GDET:FEE1:241:ENRC
EOF
}

if [[ -z $1 ]]; then
usage
exit 1
fi

if [[ ($1 == "--help") || ($1 == "-h") ]]; then
usage
exit 0
fi

result=$(curl -s "http://pscaa01.slac.stanford.edu:17665/mgmt/bpl/resumeArchivingPV?pv=$1")
echo
echo $result | cut -d'{' -f2 | cut -d '}' -f1 | tr ',' '\n'
echo

0 comments on commit 82cb7d4

Please sign in to comment.