<?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: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853185#M25770</link>
    <description>&lt;P&gt;In my case I got back client IP addresses so if you want DNS names then maybe loop over them and do a dig or nslookup command on the IP address to get a hostname if available. I can't tell from your screenshot whether you were seeing IP addresses or hostnames in SAS Management Console - I see IP addresses in mine - exactly what I see in the ALLCLIENTS table.&amp;nbsp; I would use a command like "dig +short -x 10.1.2.3" to get a hostname for the 10.1.2.3 IP address.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 05:06:13 GMT</pubDate>
    <dc:creator>PaulHomes</dc:creator>
    <dc:date>2023-01-11T05:06:13Z</dc:date>
    <item>
      <title>How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/846988#M25765</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Could someone help me extract SASApp - Workspace Server information in an output dataset/file?&lt;BR /&gt;&lt;BR /&gt;I have already tried PROC IOMOPERATE with &lt;A href="mailto:sasadm@saspw" target="_blank"&gt;sasadm@saspw&lt;/A&gt;&amp;nbsp;connection profile. Blog:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2016/02/15/using-proc-iomoperate/" target="_self"&gt;PROC IOMOPERATE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives information for all the active PIDs and users in a dataset (Information is available in SAS MC).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saxenp08_1-1669790931079.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77843iC9DB85FA5BD6C6B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saxenp08_1-1669790931079.png" alt="saxenp08_1-1669790931079.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What I need further is - when clicking on an active PID, the "Properties" information of the specific user, which is available under the Clients tab (need "Hostname" to be specific). The HostName, available from PROC IOMOPERATE, differs from the Host Name present under the Properties (The Properties Host Name tells about the remote desktop information). I need this information to create a stored process which will capture information for all the active PIDs, and active users and then from which machine the user is connected to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saxenp08_6-1669791736814.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77848iA14910197BEDCF2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saxenp08_6-1669791736814.png" alt="saxenp08_6-1669791736814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you in advance!&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 07:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/846988#M25765</guid>
      <dc:creator>saxenp08</dc:creator>
      <dc:date>2022-11-30T07:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/847773#M25766</link>
      <description>&lt;P&gt;What information are you looking. Perhaps these two will help&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2016/02/20/proc-iomoperate-custom-task/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2016/02/20/proc-iomoperate-custom-task/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2016/02/15/using-proc-iomoperate/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2016/02/15/using-proc-iomoperate/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 13:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/847773#M25766</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-12-05T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853064#M25767</link>
      <description>Hello, and thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;The solutions you have suggested I have already tried (also suggested in my query). The problem is I need to capture the VDI info, which I have shared via screenshot. All the other information is available using the proc iomoperate, but only information is missing which I must extract.</description>
      <pubDate>Tue, 10 Jan 2023 13:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853064#M25767</guid>
      <dc:creator>saxenp08</dc:creator>
      <dc:date>2023-01-10T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853068#M25768</link>
      <description>&lt;P&gt;I don't know any way to extract the information using code. While using the old "metabrowse" in the display manager (classic sas programming tool) i wasn't able to find anything useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18432"&gt;@PaulHomes&lt;/a&gt; or &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19750"&gt;@MichelleHomes&lt;/a&gt; have an idea.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 14:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853068#M25768</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-01-10T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853184#M25769</link>
      <description>&lt;P&gt;You wouldn't normally be able to find this type of dynamic run-time information in metadata but it is available from PROC IOMOPERATE using the list clients features - see &lt;A href="https://support.sas.com/documentation/cdl/en/biasag/62612/HTML/default/viewer.htm#n20033intelplatform00srvradm.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/biasag/62612/HTML/default/viewer.htm#n20033intelplatform00srvradm.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took the sample code by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt; in his blog post linked above and tweaked it to add an allclients table that contains the 3x columns provided by list clients: client (userid), peer (workstation IP address and port) and entertime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I posted the sample code in a gist at &lt;A href="https://gist.github.com/paulhomes/029f77032e809e2a1d8ee7a13fc52c14" target="_blank"&gt;https://gist.github.com/paulhomes/029f77032e809e2a1d8ee7a13fc52c14&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 05:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853184#M25769</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2023-01-11T05:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853185#M25770</link>
      <description>&lt;P&gt;In my case I got back client IP addresses so if you want DNS names then maybe loop over them and do a dig or nslookup command on the IP address to get a hostname if available. I can't tell from your screenshot whether you were seeing IP addresses or hostnames in SAS Management Console - I see IP addresses in mine - exactly what I see in the ALLCLIENTS table.&amp;nbsp; I would use a command like "dig +short -x 10.1.2.3" to get a hostname for the 10.1.2.3 IP address.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 05:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853185#M25770</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2023-01-11T05:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853216#M25771</link>
      <description>Thank you very much for this. I will give it a try.&lt;BR /&gt;&lt;BR /&gt;By the way, for me, it is not the IP address under "Hostname", though. It has the information of the remote desktop (VDI) linked to that specific process id. I will try the solution you've suggested and provide an update.</description>
      <pubDate>Wed, 11 Jan 2023 10:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/853216#M25771</guid>
      <dc:creator>saxenp08</dc:creator>
      <dc:date>2023-01-11T10:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/855054#M25809</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Sorry for the late update.&lt;BR /&gt;&lt;BR /&gt;The solution with the list allclient works as it gives me the relevant IP address. But there is a minor issue.&lt;BR /&gt;&lt;BR /&gt;It captures information for all clients but misses one client every time. The message I received in the log file is as follows:&lt;BR /&gt;&lt;BR /&gt;NOTE: The LIST ATTRIBUTES command completed.&lt;BR /&gt;NOTE: Compression was disabled for data set WORK.CLIENTSxxx because compression overhead would increase the size of the data set.&lt;BR /&gt;NOTE: The data set WORK.CLIENTSxxx has 0 observations and 3 variables.&lt;/P&gt;&lt;P&gt;NOTE: The LIST CLIENTS command completed.&lt;BR /&gt;&lt;BR /&gt;So because of this null dataset, if the active sessions from the "list attrs" is n then I am getting n-1 results from list clients.&lt;BR /&gt;&lt;BR /&gt;I am working to find out why this is happening, but if you have any idea, can you please help?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 11:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/855054#M25809</guid>
      <dc:creator>saxenp08</dc:creator>
      <dc:date>2023-01-23T11:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/855502#M25818</link>
      <description>&lt;P&gt;An empty clients table means that server has no clients at that time. Typically this would be a server that might live for a while after the last client disconnects. You will get this for things like the SAS Stored Process Server and SAS Pooled Workspace Server. I just replicated your scenario by having a single active workspace server session and validating the SAS Stored Process server in SAS Management Console (to ensure a server process was started). My PIDs table had 2 rows for the 2 servers (workspace and stored process) and the clients table had only 1 row for the currently connected workspace server client - the stored process server had no clients.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect you are seeing something similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 06:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/855502#M25818</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2023-01-25T06:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/857764#M25929</link>
      <description>&lt;P&gt;Hello again,&lt;BR /&gt;&lt;BR /&gt;finally, I was able to test the completed solution.&lt;BR /&gt;&lt;BR /&gt;The generated report uses "allclients" and tells the information up to the "clients" level.&lt;BR /&gt;&lt;BR /&gt;For Host DNS under the "client properties" level, using "dig +short -x IP" works to get a hostname for the active IP address.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for all the help also addressing my other doubt regarding missing entries.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/857764#M25929</guid>
      <dc:creator>saxenp08</dc:creator>
      <dc:date>2023-02-08T14:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract SAS Management console information (SASApp - Workspace Server) in a dataset/file?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/857913#M25938</link>
      <description>It's great to hear you have it all working now. Thanks for reporting back and marking it as solved.</description>
      <pubDate>Thu, 09 Feb 2023 00:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/m-p/857913#M25938</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2023-02-09T00:22:29Z</dc:date>
    </item>
  </channel>
</rss>

