case.qstatus is a script in CIMEROOT/CIME/Tools.

$ ./case.qstatus --help
usage: case.qstatus [-h] [-d] [-v] [-s] [caseroot]

Shows the batch status of all jobs associated with this case.

Typical usage is simply:

positional arguments:
  caseroot       Case directory to query.
                 Default is current directory.

  -h, --help     show this help message and exit

Logging options:
  -d, --debug    Print debug information (very verbose) to file /home/runner/work/cime/cime/CIME/Tools/case.qstatus.log
  -v, --verbose  Add additional context (time and file) to log messages
  -s, --silent   Print only warnings and error messages