Helpful Commands¶
Below you will find commonly used commands for a variety of tools relating to the cluster.
Slurm¶
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.
scontrol hold <jobid>- Suspends the specifed 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.
Misc¶
myquota- Shows your filesystem quota usage