Skip to content

Commit

Permalink
Merge pull request #181 from KaushikMalapati/serverStat
Browse files Browse the repository at this point in the history
DEV: disabling serverstat off and cycle for drp nodes
  • Loading branch information
ZLLentz authored May 16, 2024
2 parents cb10fb4 + 31717b9 commit 3f52634
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/serverStat
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ if [[ $NAME == *rec* ]]; then
fi
fi

if [[ "${NAME,,}" == *drp* ]] && ([[ $CMD == "off" ]] || [[ $CMD == "cycle" ]]); then
printf "serverStat $CMD is not supported for DRP nodes as the underlying psipmi power off or psipmi power cycle commands will disable the ipmi card. Instead, use the web interface as described on:\n\nhttps://confluence.slac.stanford.edu/display/PSDMInternal/Debugging+DAQ#DebuggingDAQ-IPMI\n"
exit 1
fi

#check if this is a DAQ device
if [[ $ISSRV -lt 1 ]] && [[ $HUTCH != 'unknown_hutch' ]]; then
if [[ $HUTCH == 'cxi' ]]; then # only supporting primary daq for now
Expand Down

0 comments on commit 3f52634

Please sign in to comment.