Skip to content

Helpful Commands

Below you will find commonly used commands for a variety of tools relating to the cluster.

Slurm

  • squeue --start
    • Shows projected start time for projected jobs.
  • sacct
    • Lists information on finished and currently running jobs, including job status and exit codes.
  • sacct -u <username>
    • Lists information on currently running and recently finished jobs for the specified user.
  • sacct -S <start-date> -s <state>
    • Lists all jobs that started before the start date or time that are in the specified state.
  • scancel -u <username> -t <state>
    • Cancels all of the jobs for the specific user that are in the specified state.
  • sacct -a -o user,start,end,node,partition,alloctres%60 -X -S now-30days
    • Print job history information for all users from the last 30 days
  • scontrol hold <jobid>
    • Suspends the specified job by putting it in a 'HOLD' state.
  • scontrol resume <jobid>
    • Resumes the specified job from the 'HOLD' state.
  • scontrol show job <jobid>
    • Shows detailed queue and resource allocation information for the specified job.
  • sinfo
    • Displays information on all of the cluster partitions, including the nodes available in them.
  • sinfo -T
    • Shows information on cluster node reservations, including reservation period, name, and reserved nodes.
  • squeue
    • Displays the short-form information for all currently running and queued jobs.
  • squeue -u <username> -l
    • Lists the long-form information about currently running jobs for a specific user.
  • squeue -u <username> -t <state>
    • Lists information about a specific users jobs that are in the specified state.
  • sview
    • If X11 forwarding is enabled, this command launches a graphical interface for viewing cluster information.
  • slogin
    • This is a wrapper script around srun which can be used to quickly launch an interactive job.
  • sinfo -l -N
    • Print node/partition/CPU/memory info for every node in the cluster.
  • scontrol show node <nodename>
    • Print detailed information for <nodename>
  • scontrol show partitions
    • Print detailed information for each and every partition in the cluster.
  • scontrol show partition <partition name>
    • Print detailed information for <partition name>.
  • sprio -l
    • Print priority information for jobs waiting in the queue.
  • sshare -a
    • Print fairshare values for all users.

Misc