<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need the list of Active Users using SAS Environment Manager in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/821631#M24641</link>
    <description>&lt;P&gt;Not Environment Manager, but if you have Windows servers then the attached Powershell script produces a current list of users (you'll need to change the extension to .ps1). I schedule it to run every 15 minutes on our compute server, and I can then load the resulting CSV files into SAS and process them. It can't tell when a user disconnects but I can estimate that to some time in the 15 minutes before their process disappears. Alternatively, you may be able to parse the Object Spawner log. I've not tried that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 15:12:30 GMT</pubDate>
    <dc:creator>Nigel_Pain</dc:creator>
    <dc:date>2022-07-05T15:12:30Z</dc:date>
    <item>
      <title>Need the list of Active Users using SAS Environment Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/821482#M24629</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to find the list of active users and the connection time-in and out using SAS Environment manager.&lt;BR /&gt;But in our environmment the Report center is currently unavailable, as the Service Architecture has not been initialized. So unable to see the reports related to APM and ACM.&lt;BR /&gt;Is there any other way we can get the list of active users, using the SAS Environment manager.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Siddhu1&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 14:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/821482#M24629</guid>
      <dc:creator>siddhu1</dc:creator>
      <dc:date>2022-07-04T14:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need the list of Active Users using SAS Environment Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/821601#M24638</link>
      <description>No, that is not a function of SAS Environment Manager. The SAS Web Administration Console (/SASAdmin) has a list of users and their last login time, though this is limited to users who have logged in to the web interfaces. The report center ETLs pull this information from the Metadata Server logs which you could do manually using this program:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/greg-wootton/sas-programs/blob/main/Server%20Administration/metadata_log_parser.sas" target="_blank"&gt;https://github.com/greg-wootton/sas-programs/blob/main/Server%20Administration/metadata_log_parser.sas&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/821601#M24638</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-07-05T13:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need the list of Active Users using SAS Environment Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/821631#M24641</link>
      <description>&lt;P&gt;Not Environment Manager, but if you have Windows servers then the attached Powershell script produces a current list of users (you'll need to change the extension to .ps1). I schedule it to run every 15 minutes on our compute server, and I can then load the resulting CSV files into SAS and process them. It can't tell when a user disconnects but I can estimate that to some time in the 15 minutes before their process disappears. Alternatively, you may be able to parse the Object Spawner log. I've not tried that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 15:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/821631#M24641</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2022-07-05T15:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need the list of Active Users using SAS Environment Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/822250#M24656</link>
      <description>&lt;P&gt;Thanks Pain for the reply and will be checking this.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 12:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/822250#M24656</guid>
      <dc:creator>siddhu1</dc:creator>
      <dc:date>2022-07-08T12:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need the list of Active Users using SAS Environment Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/835318#M25130</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13516"&gt;@Nigel_Pain&lt;/a&gt;&amp;nbsp;Using our local sas Admin account, I tried your excellent PowerShell script as Administrator. Seeing the full cmdline including&amp;nbsp;SERVERCOMPONENT/A5FRC3I9.AY000005 is great for identifying the Logical server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Results from&amp;nbsp;Get-Process -Name sas -IncludeUserName are much more limited but better than nothing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you view your results? I am trying to design something suitable for SysAdmins on the desktop of Windows Data Center 2019. For SAS users, I can create a Stored Process. PowerShell GUI looks promising for RDP users.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 21:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/835318#M25130</guid>
      <dc:creator>acfarrer</dc:creator>
      <dc:date>2022-09-26T21:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need the list of Active Users using SAS Environment Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/835402#M25131</link>
      <description>&lt;P&gt;I'm glad it's useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you say, Get-Process is quite limiting. Get-WmiObject is useful for getting the owner, parent and command line, although having identified how to do this last one I don't think I actually use it. I should really think about replacing Get-WmiObject with the newer Get-CimInstance but sometimes life's too short, and it works!&lt;/P&gt;
&lt;P&gt;I use a SAS program to join this data with parsed object spawner logs and data from our business directory database. This gives me data sets with full organisational information which I can use for monitoring purposes and also for recharging our licence costs. Nobody else uses it!&lt;/P&gt;
&lt;P&gt;But given that the results of the Powershell are in the CSV files, other tools could be used for processing them fairly easily (not as nicely as SAS, I would contend&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;).&lt;/P&gt;
&lt;P&gt;Have to say, I love Powershell! I was brought kicking and screaming from a Solaris environment when it was decided to move our SAS servers to Windows about 10 years ago. I'd been scratching my head trying to work out how to replace a whole load of shell scripts with Windows .bat files (not possible!) But then someone suggested I look at Powershell and the rest, as they say, is history.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 10:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/835402#M25131</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2022-09-27T10:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need the list of Active Users using SAS Environment Manager</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/835454#M25135</link>
      <description>&lt;P&gt;I am encouraged by your endorsement of PowerShell. I have dabbled for years but it is hard to replace 20 years of shell scripts.&lt;/P&gt;
&lt;P&gt;Regarding gathering usage metrics, I have found that management are rarely interested until there is an issue - review of licensing costs or some other product they have been convinced is cheaper. Lately, it has been cloud cost estimates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One day before I retire, I am hoping there will be in person user group meetings to discuss this stuff.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 15:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Need-the-list-of-Active-Users-using-SAS-Environment-Manager/m-p/835454#M25135</guid>
      <dc:creator>acfarrer</dc:creator>
      <dc:date>2022-09-27T15:47:57Z</dc:date>
    </item>
  </channel>
</rss>

