<?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: Identify LUN for each dt.entity.disk on a windows server in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/264016#M1494</link>
    <description>&lt;P&gt;we can close this request&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 09:02:10 GMT</pubDate>
    <dc:creator>AlanFoley</dc:creator>
    <dc:date>2024-11-29T09:02:10Z</dc:date>
    <item>
      <title>Identify LUN for each dt.entity.disk on a windows server</title>
      <link>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/253744#M1137</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;I have a simple DQL Disk query which provides basic Disk info - I need more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;fetch dt.entity.disk&lt;BR /&gt;| fieldsAdd belongs_to[dt.entity.host]&lt;BR /&gt;| filter belongs_to[dt.entity.host] =="HOST-xx"&lt;BR /&gt;| filterOut startsWith(entity.name,"\\")&lt;/P&gt;
&lt;P&gt;I would like to know if the following info is accessible within Dynatrace&lt;/P&gt;
&lt;P&gt;1. On a windows server to be able to identify the Logical Unit Number (LUN) for each drive as seen by the OS&lt;/P&gt;
&lt;P&gt;2. Identify if the windows drive is physically on the server or is a mapped drive (excluding \\servername\folder type mappings)&lt;/P&gt;
&lt;P&gt;If the info above is not accessible by default in Dynatrace how could it best be extracted within Dynatrace&lt;/P&gt;
&lt;P&gt;Yes I can run a PowerShell script against each server to extract this but ideally I want to be able to consume this within Dynatrace&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;Appreciate the help&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Alan&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 10:39:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/253744#M1137</guid>
      <dc:creator>AlanFoley</dc:creator>
      <dc:date>2024-11-28T10:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN for each dt.entity.disk on a windows server</title>
      <link>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/264007#M1491</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41772"&gt;@AlanFoley&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I've asked your questions our developers, and this is the information that they've provided:&lt;BR /&gt;"&amp;nbsp;&lt;SPAN&gt;1. On a Windows server to be able to identify the Logical Unit Number (LUN) for each drive as seen by the OS -&amp;gt; not possible&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Identify if the Windows drive is physically on the server or is a mapped drive (excluding \\servername\folder type mappings) -&amp;gt; not many options here other than what is already done&amp;nbsp; (starts with "\\"). Alternatively, this condition can be checked:&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;verbatimFilesystem != ntfs &amp;amp;&amp;amp; verbatimFilesystem != smb&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, in Dynatrace&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;DISK&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;entity does not represent a physical device but rather a logical partition or a mount point on Linux. It's not actually hardware monitoring but monitoring of the OS-related entities."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 06:58:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/264007#M1491</guid>
      <dc:creator>MaciejNeumann</dc:creator>
      <dc:date>2024-11-29T06:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN for each dt.entity.disk on a windows server</title>
      <link>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/264015#M1493</link>
      <description>&lt;P&gt;Thank you for the feedback&lt;BR /&gt;I can extarct the details as follows for Azure and then I will use ServiceNow to populate the LUN information into our CMDB - similar to the PowerShell command below&lt;/P&gt;&lt;P&gt;Use the following command to list disks and their LUNs:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Azure PowerShell&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Get-AzVM -ResourceGroupName &amp;lt;ResourceGroupName&amp;gt; -Name &amp;lt;VMName&amp;gt; |&lt;/P&gt;&lt;P&gt;Select-Object -ExpandProperty StorageProfile |&lt;/P&gt;&lt;P&gt;Select-Object -ExpandProperty DataDisks |&lt;/P&gt;&lt;P&gt;Select-Object Lun, Name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Windows Server PowerShell&lt;/STRONG&gt;:&lt;/P&gt;&lt;OL&gt;&lt;UL&gt;&lt;LI&gt;On the Windows VM, use:&lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;&lt;P&gt;Get-Disk | Select-Object Number, FriendlyName, OperationalStatus, Size,&lt;/P&gt;&lt;P&gt;@{Name='DriveLetters';Expression={($_ | Get-Partition).DriveLetter}},&lt;/P&gt;&lt;P&gt;@{Name='LUN';Expression={$_.UniqueId}}&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 09:01:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/264015#M1493</guid>
      <dc:creator>AlanFoley</dc:creator>
      <dc:date>2024-11-29T09:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Identify LUN for each dt.entity.disk on a windows server</title>
      <link>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/264016#M1494</link>
      <description>&lt;P&gt;we can close this request&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 09:02:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Identify-LUN-for-each-dt-entity-disk-on-a-windows-server/m-p/264016#M1494</guid>
      <dc:creator>AlanFoley</dc:creator>
      <dc:date>2024-11-29T09:02:10Z</dc:date>
    </item>
  </channel>
</rss>

