Linux command
scontrol 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show
scontrol show job [job_id]
Suspend
scontrol suspend [job_id1,job_id2,...]
Resume
scontrol resume [job_id1,job_id2,...]
Hold
scontrol hold [job_id1,job_id2,...]
Release
scontrol release [job_id1,job_id2,...]
说明
scontrol is the Slurm control tool for viewing and modifying jobs, partitions, nodes, and configuration. It is the primary administrative interface for managing a Slurm cluster's workload. Common uses include checking job status, suspending/resuming jobs, holding jobs in the queue, and modifying job parameters.
参数
- show job _job_id_
- Display detailed information about a job
- suspend _job_id_
- Suspend a running job
- resume _job_id_
- Resume a suspended job
- hold _job_id_
- Prevent a pending job from starting
- release _job_id_
- Release a held job for scheduling
- requeue _job_id_
- Return a running job to the queue
- update
- Modify job, node, or partition properties
- -d, --details
- Show detailed information
FAQ
What is the scontrol command used for?
scontrol is the Slurm control tool for viewing and modifying jobs, partitions, nodes, and configuration. It is the primary administrative interface for managing a Slurm cluster's workload. Common uses include checking job status, suspending/resuming jobs, holding jobs in the queue, and modifying job parameters.
How do I run a basic scontrol example?
Run `scontrol show job [job_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does show job _job_id_ do in scontrol?
Display detailed information about a job