How can I see the resources that are actually allocated to my SLURM job?

I tried using the command lscpu but it isn’t giving me correct information.

lscpu shows the system spec of entire compute node. This node maybe shared by many others in your group. To check the resources SLURM allocated to your job, please use scontrol show jobid –d <JOBID>. This shows all information/parameters associated with your job.