03-23-2016 08:17 AM
Im working in an automobile industry as an sas admin and new to this role .
Users extract the reports through SAS EG and SAS EG tool is connected to sas server .Its on windows platform . I have access to SAS management console . I would like to trace the users who are active on SAS EG and would like to know the login time , date and other details etc .
We dont have SAS Environment manager .
Can i get the solution ?
03-23-2016 08:23 AM
in the configuration tree for the workspace server (/../.../Lev1/SASApp/WorkspaceServer) you find a file (WorkspaceServer_usermods.sh) that is specifically there to add customization that will be preserved over updates of the SAS software. In that, you could add a line that saves the information that you want to a file which you can later analyse.
03-23-2016 06:50 PM
Another one: the macro variable _Clientapp resoves to 'SAS Enterprise Guide'. You can use that information in the apppserver_autoexec_usermode.sas to do what you want.
03-24-2016 04:51 AM
If you can't get SAS Environment Manager installed and APM enabled, another option would be to parse and report from the SAS Metadata Server log files yourself. You can report on both failed and successful logins. Here is an example of an EG connection where you can see the date/time, user id, client IP address and client app name:
2016-03-24T18:43:47,689 INFO  :sasdemo - New client connection (395863) accepted from server port 8561 for user sasdemo. Encryption level is Credentials using encryption algorithm SASPROPRIETARY. Peer IP address and port are [::ffff:192.168.0.123]:55883 for APPNAME=SAS Enterprise Guide.
... and here's an example of a failed login:
2016-03-24T18:48:10,686 WARN  :sas - New client connection (399601) rejected from server port 8561 for user sasdemo. Peer IP address and port are [::ffff:192.168.0.123]:55886 for APPNAME=SAS Enterprise Guide.
If you want to go further and track their usage of SAS Workspace Servers (and SAS Stored Process Servers) you could also look at the SAS Object Spawners log files too.
04-06-2016 04:25 AM
Hello Paulhomes ,
Thanks for your rely . Can you please explain me procedure step by step as im unable to extract the user data .
Thanks in advance .
04-06-2016 11:31 PM
Step by step instructions for something of this scale (installing/configuring and using SAS Environment Manager with APM, or writing and scheduling robust/secure cross-platform multi-log parsing/reporting) would make for a very long SAS communities thread!
If you need more than general suggestions and pointers to relevant online docs, I'd recommend contacting SAS Professional Services or one of the SAS Partners in your region to see if they can help.