BookmarkSubscribeRSS Feed
Lenvdb
Quartz | Level 8

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
gwootton
SAS Super FREQ
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
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 596 views
  • 0 likes
  • 2 in conversation