- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 05-18-2022 12:09 PM
(1186 views)
Hi Admins
We are in a precarious position where our security teams are removing our ability to kill runaway sas jobs and sas EG jobs using the kill command with PID.
They are only giving us the ability to use pkill, which uses a job name instead of a PID.
How would we implement this as I cannot fathom how we can do it. Having used the Kill -9 <pid> has always been so great!
I can get a job name from RTM, and this will also tell me the compute server on which this job is running.
But pkill is a different kettle of fish.
pkill -x jobname
comes closest.
Is anyone else out there facing similar issues? How did you get around this?
Regds
Len
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The pkill command would not use a LSF job name but a process name, which would typically be the sas executable, so I don't think this would be helpful.
https://www.commandlinux.com/man-page/man1/pkill.1.html
Perhaps they mean the bkill command, which would let you kill a job based on it's job ID rather than process ID. You could issue this from any grid host rather than having to run it on the host where the job is running like the kill command.
https://www.ibm.com/docs/en/spectrum-lsf/10.1.0?topic=reference-bkill
https://www.commandlinux.com/man-page/man1/pkill.1.html
Perhaps they mean the bkill command, which would let you kill a job based on it's job ID rather than process ID. You could issue this from any grid host rather than having to run it on the host where the job is running like the kill command.
https://www.ibm.com/docs/en/spectrum-lsf/10.1.0?topic=reference-bkill
--
Greg Wootton | Principal Systems Technical Support Engineer
Greg Wootton | Principal Systems Technical Support Engineer