Reports until 10:29, Tuesday 14 February 2017
H1 SUS (CDS, GRD)
jeffrey.kissel@LIGO.ORG - posted 10:29, Tuesday 14 February 2017 - last comment - 11:21, Tuesday 14 February 2017(34125)
QUAD Reset All Button / Script Converted to Python
J. Kissel, T. Shaffer, D. Barker
WP #6484
FRS #4231

TJ and I have re-written the problematic PERL script,
    /opt/rtcds/userapps/release/sus/common/scripts/wdreset_all.pl
in python, and saved it to the same location, just with a .py extension,
    /opt/rtcds/userapps/release/sus/common/scripts/wdreset_all.py

In order to test the new script, we've also modified the QUAD's watchdog screen,
    /opt/rtcds/userapps/release/sus/common/medm/quad/SUS_CUST_QUAD_WD.adl
and confirmed that the script works
    - on Debian *and* Ubuntu machines
    - for several different optics (we used ETMX and ETMY).

Both of the above new script and screen modification have been committed to the userapps repo.

We will write an ECR to change this permanently for all SUS.
Comments related to this report
jeffrey.kissel@LIGO.ORG - 11:21, Tuesday 14 February 2017 (34131)
I attach the new version of the python code. This replaces the perl code (quoted below, because not even the aLOG supports uploading .pl files!):
    #!/usr/bin/perl -I /ligo/cdscfg

    use strict; use warnings;
    use stdenv;
    INIT_ENV($ENV{IFO});
    use lib $ENV{USERAPPS_DIR} . '/guardian';
    use CaTools;

    # This script attempts to reset the watchdog, then the DACKILL.
    # If successful, returns with 0 status.
    # If fails, tries to print a reason, exits with status 1.
    # Accepts 1 argument: the subsystem name

    # Usage: ./wdreset_all H1:SUS-ETMX

    my $SubSys = uc(shift);

    caPut("${SubSys}_WD_RESET", 1);
    sleep(1);
    caPut("${SubSys}_DACKILL_RESET", 1);

Also, ECR has been filed: E1700056
Non-image files attached to this comment