BookmarkSubscribeRSS Feed
kali95
Calcite | Level 5

Hello ,

 

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 ?

5 REPLIES 5
Kurt_Bremser
Super User

One option:

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.

LinusH
Tourmaline | Level 20

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.

Data never sleeps
PaulHomes
Rhodochrosite | Level 12

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 [03754817] :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 [03755267] :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.

kali95
Calcite | Level 5

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 .

 

Regards,

Kal

PaulHomes
Rhodochrosite | Level 12

Hi Kal,

 

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.

 

Regards

Paul

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2965 views
  • 4 likes
  • 4 in conversation