<?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 SQL Query to Show historic Drive Space Usage in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/sql-query-to-show-historic-drive-space-usage/m-p/4254114#M62021</link>
    <description>--Just posting this if anyone needs something like it.&lt;BR /&gt;&lt;BR /&gt;select DATEADD(SECOND, Snapshot.CollectionDateTime / 1000, '19691231 20:00') AS CollectDate, R_LogicalDisks.DeviceName, R_LogicalDisks.Description, R_LogicalDisks.SizeMb, R_LogicalDisks.UsedMb, (R_LogicalDisks.SizeMb - R_LogicalDisks.UsedMb) AS FreeMB,R_LogicalDisks.UsedPercent from R_LogicalDisks  &lt;BR /&gt;Left OUTER JOIN Snapshot on R_LogicalDisks.SnapshotID=SnapShot.SnapshotID&lt;BR /&gt;WHERE R_LogicalDisks.Description like '%Fixed%' AND NOT R_LogicalDisks.UsedMB is NULL AND NOT ((R_LogicalDisks.SnapShotID=-1) OR (R_LogicalDisks.SnapShotID is NULL)) AND DeviceKey in &lt;BR /&gt;(select devices.deviceKey from devices  &lt;BR /&gt;LEFT OUTER JOIN notices ON devices.deviceKey = notices.deviceKey  &lt;BR /&gt;LEFT OUTER JOIN DB_deviceInfoEx ON devices.deviceKey = DB_deviceInfoEx.deviceKey &lt;BR /&gt;LEFT OUTER JOIN IPAddress ON devices.deviceKey = IPAddress.deviceKey and IPAddress.ipIndex = 0 &lt;BR /&gt;LEFT OUTER JOIN associated_device_data ON devices.deviceKey = associated_device_data.deviceKey  &lt;BR /&gt;LEFT OUTER JOIN deviceProtocolInfo ON devices.deviceKey = deviceProtocolInfo.deviceKey &lt;BR /&gt;LEFT OUTER JOIN simAggrStatus ON devices.deviceKey = simAggrStatus.deviceKey  &lt;BR /&gt;LEFT OUTER JOIN LockdownStatus ON devices.deviceKey = LockdownStatus.deviceKey  &lt;BR /&gt;LEFT OUTER JOIN DeviceStatusValue ON devices.deviceKey = DeviceStatusValue.deviceKey and DeviceStatusValue.StatusSourceId= 6 &lt;BR /&gt;JOIN consolidatedNodeAuths ON devices.mxGuid = consolidatedNodeAuths.NodeId and consolidatedNodeAuths.userID = '000000065b882db90000000400000007'   &lt;BR /&gt;WHERE ( (  devices.productType = 1)  )  ) &lt;BR /&gt; &lt;BR /&gt;order by  R_LogicalDisks.DeviceName ASC, R_LogicalDisks.Description ASC, CollectionDateTime ASC&lt;BR /&gt;--order by R_LogicalDisks.UsedPercent DESC&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Aug 2008 19:15:39 GMT</pubDate>
    <dc:creator>Ben Hanson_1</dc:creator>
    <dc:date>2008-08-18T19:15:39Z</dc:date>
    <item>
      <title>SQL Query to Show historic Drive Space Usage</title>
      <link>https://community.hpe.com/t5/server-management-systems/sql-query-to-show-historic-drive-space-usage/m-p/4254114#M62021</link>
      <description>--Just posting this if anyone needs something like it.&lt;BR /&gt;&lt;BR /&gt;select DATEADD(SECOND, Snapshot.CollectionDateTime / 1000, '19691231 20:00') AS CollectDate, R_LogicalDisks.DeviceName, R_LogicalDisks.Description, R_LogicalDisks.SizeMb, R_LogicalDisks.UsedMb, (R_LogicalDisks.SizeMb - R_LogicalDisks.UsedMb) AS FreeMB,R_LogicalDisks.UsedPercent from R_LogicalDisks  &lt;BR /&gt;Left OUTER JOIN Snapshot on R_LogicalDisks.SnapshotID=SnapShot.SnapshotID&lt;BR /&gt;WHERE R_LogicalDisks.Description like '%Fixed%' AND NOT R_LogicalDisks.UsedMB is NULL AND NOT ((R_LogicalDisks.SnapShotID=-1) OR (R_LogicalDisks.SnapShotID is NULL)) AND DeviceKey in &lt;BR /&gt;(select devices.deviceKey from devices  &lt;BR /&gt;LEFT OUTER JOIN notices ON devices.deviceKey = notices.deviceKey  &lt;BR /&gt;LEFT OUTER JOIN DB_deviceInfoEx ON devices.deviceKey = DB_deviceInfoEx.deviceKey &lt;BR /&gt;LEFT OUTER JOIN IPAddress ON devices.deviceKey = IPAddress.deviceKey and IPAddress.ipIndex = 0 &lt;BR /&gt;LEFT OUTER JOIN associated_device_data ON devices.deviceKey = associated_device_data.deviceKey  &lt;BR /&gt;LEFT OUTER JOIN deviceProtocolInfo ON devices.deviceKey = deviceProtocolInfo.deviceKey &lt;BR /&gt;LEFT OUTER JOIN simAggrStatus ON devices.deviceKey = simAggrStatus.deviceKey  &lt;BR /&gt;LEFT OUTER JOIN LockdownStatus ON devices.deviceKey = LockdownStatus.deviceKey  &lt;BR /&gt;LEFT OUTER JOIN DeviceStatusValue ON devices.deviceKey = DeviceStatusValue.deviceKey and DeviceStatusValue.StatusSourceId= 6 &lt;BR /&gt;JOIN consolidatedNodeAuths ON devices.mxGuid = consolidatedNodeAuths.NodeId and consolidatedNodeAuths.userID = '000000065b882db90000000400000007'   &lt;BR /&gt;WHERE ( (  devices.productType = 1)  )  ) &lt;BR /&gt; &lt;BR /&gt;order by  R_LogicalDisks.DeviceName ASC, R_LogicalDisks.Description ASC, CollectionDateTime ASC&lt;BR /&gt;--order by R_LogicalDisks.UsedPercent DESC&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2008 19:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/sql-query-to-show-historic-drive-space-usage/m-p/4254114#M62021</guid>
      <dc:creator>Ben Hanson_1</dc:creator>
      <dc:date>2008-08-18T19:15:39Z</dc:date>
    </item>
  </channel>
</rss>

