case.qstatus is a script in CIMEROOT/scripts/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
  -d, --debug    Print debug information (very verbose) to file /home/titters/devel/E3SM/cime/master/scripts/Tools/case.qstatus.log
  -v, --verbose  Add additional context (time and file) to log messages
  -s, --silent   Print only warnings and error messages