I need to find the job in the queued, rendered, completed state.in commandline

Such as the title
So I can open it more accurately turn on or turn off the slave machine.