How to Find the Node Where a Job is Running in a SLURM Cluster
If you're working with a SLURM cluster and need to find out which node a particular job is running on, you can use the scontrol
command. This command, however, may require sufficient permissions.
Command to Use
scontrol show job JOBID
Replace JOBID
with the actual job ID you're interested in.
What to Look For
The command will output various details about the job. Specifically, look for the NodeList
field to find out the node where the job is running.
Example Output
JobId=12345 JobName=example_job
...
NodeList=node12
...
In the above example, the job with JobId 12345 is running on node12
.
Comments
Post a Comment