<?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: SIM : SQL-Query for System Health Status in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098648#M50063</link>
    <description>you can see halth status in devices table.&lt;BR /&gt;You can use below query:&lt;BR /&gt;SELECT devices.OverallStatus, devices.Name, devices.ProductType FROM  devices  ORDER BY OverallStatus DESC  &lt;BR /&gt;&lt;BR /&gt;To see health status of devices. here health status are in integer format so to convert it use below:&lt;BR /&gt;0  - Unknown&lt;BR /&gt;1  - OK&lt;BR /&gt;2  - OK&lt;BR /&gt;3  - Minor&lt;BR /&gt;4  - Major&lt;BR /&gt;5  - Critical&lt;BR /&gt;6  - &lt;BR /&gt;7  - &lt;BR /&gt;8  - &lt;BR /&gt;9  - Disable&lt;BR /&gt;&lt;BR /&gt;Hope u need only above.</description>
    <pubDate>Thu, 20 Mar 2008 03:32:16 GMT</pubDate>
    <dc:creator>Change_happens</dc:creator>
    <dc:date>2008-03-20T03:32:16Z</dc:date>
    <item>
      <title>SIM : SQL-Query for System Health Status</title>
      <link>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098645#M50060</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;how can I query System Health Status within&lt;BR /&gt;the corresponding Database? Which table holds&lt;BR /&gt;this information?&lt;BR /&gt;&lt;BR /&gt;I just want to extract System Health Status&lt;BR /&gt;in a quick way without Web-GUI.&lt;BR /&gt;&lt;BR /&gt;We use HPSIM 5.1 with SP2 on Windows and Oracle&lt;BR /&gt;10g2 on HP-UX.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;MiMe</description>
      <pubDate>Wed, 19 Mar 2008 06:35:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098645#M50060</guid>
      <dc:creator>MiMe</dc:creator>
      <dc:date>2008-03-19T06:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: SIM : SQL-Query for System Health Status</title>
      <link>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098646#M50061</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You will want to query the "devices" table in the SIM database (assuming SQL 2000/2005 database).&lt;BR /&gt;&lt;BR /&gt;Within that table is a column called "OverallStatus".  A "Heathly" server has a value of "1".  I am not sure of the exact values of other status types.  It does look like a "Minor" server is 3.  For example I have server right now with a failed SCSI drive that shows a 3 in that column.&lt;BR /&gt;&lt;BR /&gt;So I guess a simple query would be:&lt;BR /&gt;&lt;BR /&gt;SELECT    TOP 100 PERCENT dbo.devices.Name AS [Server Name], dbo.devices.OverallStatus AS [Server Status]&lt;BR /&gt;FROM      dbo.devices &lt;BR /&gt;WHERE     dbo.devices.ProductTypeStr = 'Server'&lt;BR /&gt;ORDER BY dbo.devices.Name&lt;BR /&gt;&lt;BR /&gt;Then you could create a lookup table based on what your findings are for status values (1 = Normal, 3 = Minor, etc.) to give you a more readable output.&lt;BR /&gt;&lt;BR /&gt;Nelson</description>
      <pubDate>Wed, 19 Mar 2008 20:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098646#M50061</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2008-03-19T20:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: SIM : SQL-Query for System Health Status</title>
      <link>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098647#M50062</link>
      <description>Or sorry, I see you mentioned Oracle.  I don't know if the table structure is the same in Oracle.  And my query is MS SQL server specific...</description>
      <pubDate>Wed, 19 Mar 2008 20:58:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098647#M50062</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2008-03-19T20:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: SIM : SQL-Query for System Health Status</title>
      <link>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098648#M50063</link>
      <description>you can see halth status in devices table.&lt;BR /&gt;You can use below query:&lt;BR /&gt;SELECT devices.OverallStatus, devices.Name, devices.ProductType FROM  devices  ORDER BY OverallStatus DESC  &lt;BR /&gt;&lt;BR /&gt;To see health status of devices. here health status are in integer format so to convert it use below:&lt;BR /&gt;0  - Unknown&lt;BR /&gt;1  - OK&lt;BR /&gt;2  - OK&lt;BR /&gt;3  - Minor&lt;BR /&gt;4  - Major&lt;BR /&gt;5  - Critical&lt;BR /&gt;6  - &lt;BR /&gt;7  - &lt;BR /&gt;8  - &lt;BR /&gt;9  - Disable&lt;BR /&gt;&lt;BR /&gt;Hope u need only above.</description>
      <pubDate>Thu, 20 Mar 2008 03:32:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098648#M50063</guid>
      <dc:creator>Change_happens</dc:creator>
      <dc:date>2008-03-20T03:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: SIM : SQL-Query for System Health Status</title>
      <link>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098649#M50064</link>
      <description>That was the solution!&lt;BR /&gt;Thx!&lt;BR /&gt;MiMe</description>
      <pubDate>Thu, 20 Mar 2008 07:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098649#M50064</guid>
      <dc:creator>MiMe</dc:creator>
      <dc:date>2008-03-20T07:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: SIM : SQL-Query for System Health Status</title>
      <link>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098650#M50065</link>
      <description>Question solved!</description>
      <pubDate>Thu, 20 Mar 2008 07:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/sim-sql-query-for-system-health-status/m-p/5098650#M50065</guid>
      <dc:creator>MiMe</dc:creator>
      <dc:date>2008-03-20T07:01:31Z</dc:date>
    </item>
  </channel>
</rss>

