Skip to content

Conversation

@KaushikMalapati
Copy link
Contributor

Description

I should have included this with #235 since I'm doing the same thing
I quote result before cutting and translating and store in a variable, printed with printf and newlines instead of bare echos

Motivation and Context

https://jira.slac.stanford.edu/browse/ECS-5216

How Has This Been Tested?

Interactively

[kaushikm@psbuild-rhel7-02 scripts]$ ./archive-status SP1K1:MONO:MMS:M_PI:PLC:bAllEnable_RBV

"appliance":"pscaa01"
"pvName":"SP1K1:MONO:MMS:M_PI:PLC:bAllEnable_RBV"
"pvNameOnly":"SP1K1:MONO:MMS:M_PI:PLC:bAllEnable_RBV"
"status":"Paused"
[kaushikm@psbuild-rhel7-02 scripts]$ ./ar
archive-details  archive-resume   archive-status
[kaushikm@psbuild-rhel7-02 scripts]$ ./archive-status MFX:DG1:W8:01:Timing:RxLinkUp_RBV

"pvName":"MFX:DG1:W8:01:Timing:RxLinkUp_RBV"
"status":"Not being archived"
[kaushikm@psbuild-rhel7-02 scripts]$ ./arch
archive-details  archive-resume   archive-status
[kaushikm@psbuild-rhel7-02 scripts]$ ./archive-status LM1K2:INJ_DP1_TF1_FF1:Stats2:CentroidY_RBV

"lastRotateLogs":"Never"
"pvName":"LM1K2:INJ_DP1_TF1_FF1:Stats2:CentroidY_RBV"
"connectionState":"true"
"lastEvent":"Feb\/13\/2025 15:29:07 PST"
"samplingPeriod":"1.0"
"isMonitored":"false"
"connectionLastRestablished":"Never"
"connectionFirstEstablished":"Feb\/05\/2025 11:26:30 PST"
"connectionLossRegainCount":"0"
"status":"Being archived"
"appliance":"pscaa01"

Where Has This Been Documented?

Copy link
Contributor

@slactjohnson slactjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@KaushikMalapati KaushikMalapati merged commit b1b9970 into pcdshub:master Feb 18, 2025
2 checks passed
@KaushikMalapati KaushikMalapati deleted the shellcheck-archive-status branch February 18, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants