Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bsub -q psfehq -o log-r169.log psana -c psana-config.cfg exp=cxif5315:run=169
bsub -q psfehq -o log-r169.log python psana-python.py

...

List of batch jobs

...

Code Block
bjobs
bjobs -u dubrovin

Status of hosts in the batch farm

List of LCLS farms: psnehfarm psfehfarm psanafarm

Code Block
bhosts
bhosts psnehfarm psfehfarm psanafarm
bhosts | grep psfehfarmps

Status of batch queues

list of LCLS queues:  psnehhiprioq psfehhiprioq psnehprioq psfehprioq psanaq psnehq psfehq

Code Block
bqueues psnehhiprioq 

list of queues: psnehhiprioq psfehiprioq              - list all batch queuse
bqueues | grep ps
bqueues psnehhiprioq psfehhiprioq psnehprioq psfehprioq psanaq psnehq psfehq

List of batch hosts

lshost - listing of all batch machines along with their resources

Code Block
lshosts | grep ps

Other commands

bqueues                     - Summary status of entire batch system organized by queues.
bqueues -l long - Detailed summary status of the 'long' queue.
lshosts         - Very long listing of all batch machines along with their resources.
bmod                            - Change the queue for a submitted job.
bhist                          - Get history information for completed jobs.
lsinfo                       - List all 'resources' defined in batch system.
busers                       - Summary of my batch activity.

qstat

 

Re-direct output in file

All POSIX operating systems have 3 streams: stdin, stdout, and stderr.

...

Code Block
command >   file.txt
command >>  file.txt  # to append
command >&  file.txt # re-direct stdout and stderr
command 1>& file.txt # 1-stdout
command 2>& file.txt # 2-stderr
command 2> /dev/null # silence error

  

References