BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
D4RkM4N
Fluorite | Level 6

Hi all,

 

Currently in the company all the processes are executed under the user sassrv, but I want to know the metauser of each PID in order to really know which user is executing it, is this possible?

 

Is there any code that I can run as an administrator to know this information?

 

D4RkM4N_0-1614009525309.png

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
Another option would be to search for the process ID in the Object Spawner logs:
[sas@trcv090 Logs]$ grep 'Created ' ObjectSpawner_2021-02-22_trcv090_23168.log
2021-02-22T12:53:19,400 INFO [00000224] :sasdemo - Created process 23257 using credentials sassrv for user sasdemo (child id 0).
2021-02-22T12:54:59,045 INFO [00000366] :sasdemo - Created process 23525 using credentials sassrv for user sasdemo (child id 1).
2021-02-22T13:00:10,338 INFO [00001055] :sasdemo - Created process 23719 using credentials sassrv for user sasdemo (child id 2).
[sas@trcv090 Logs]$
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

3 REPLIES 3
gwootton
SAS Super FREQ
The -METAUSER option would be in the command line submitted by the Object Spawner, so you could see this with ps -ef on Linux:

[sas@trcv090 ~]$ ps -ef | grep sasdemo
sassrv 20574 20572 1 11:16 ? 00:00:00 /sas94/software/compute/SASFoundation/9.4/sasexe/sas -memsize 0 -cpucount ACTUAL -noterminal -netencryptalgorithm SASProprietary -metaserver trcv003.trc.sas.com -metaport 8561 -metarepository Foundation -locale en_US -objectserver -objectserverparms delayconn sph=trcv090.trc.sas.com protocol=bridge spawned spp=34197 cid=39 pb classfactory=440196D4-90F0-11D0-9F41-00A024BB830C server=OMSOBJ:SERVERCOMPONENT/A5RWD7FM.AZ00000C cel=credentials lb recon grid -METAUSER sasdemo@!*(generatedpassworddomain)*! -METAPASS C29f2C64d5748B26b7FF7d384D283650
--
Greg Wootton | Principal Systems Technical Support Engineer
D4RkM4N
Fluorite | Level 6

Hi,

 

Thanks for your help, but i try this and not working. 

 

I do not know if the console is not showing me all the complete lines and for that reason I do not see the metauser.

 

D4RkM4N_0-1614013364214.png

 

code.PNG

 

 

gwootton
SAS Super FREQ
Another option would be to search for the process ID in the Object Spawner logs:
[sas@trcv090 Logs]$ grep 'Created ' ObjectSpawner_2021-02-22_trcv090_23168.log
2021-02-22T12:53:19,400 INFO [00000224] :sasdemo - Created process 23257 using credentials sassrv for user sasdemo (child id 0).
2021-02-22T12:54:59,045 INFO [00000366] :sasdemo - Created process 23525 using credentials sassrv for user sasdemo (child id 1).
2021-02-22T13:00:10,338 INFO [00001055] :sasdemo - Created process 23719 using credentials sassrv for user sasdemo (child id 2).
[sas@trcv090 Logs]$
--
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
  • 3 replies
  • 641 views
  • 2 likes
  • 2 in conversation