- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- SIM : SQL-Query for System Health Status
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 11:35 PM
тАО03-18-2008 11:35 PM
how can I query System Health Status within
the corresponding Database? Which table holds
this information?
I just want to extract System Health Status
in a quick way without Web-GUI.
We use HPSIM 5.1 with SP2 on Windows and Oracle
10g2 on HP-UX.
Thanks in advance!
MiMe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2008 01:57 PM
тАО03-19-2008 01:57 PM
Re: SIM : SQL-Query for System Health Status
You will want to query the "devices" table in the SIM database (assuming SQL 2000/2005 database).
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.
So I guess a simple query would be:
SELECT TOP 100 PERCENT dbo.devices.Name AS [Server Name], dbo.devices.OverallStatus AS [Server Status]
FROM dbo.devices
WHERE dbo.devices.ProductTypeStr = 'Server'
ORDER BY dbo.devices.Name
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.
Nelson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2008 01:58 PM
тАО03-19-2008 01:58 PM
Re: SIM : SQL-Query for System Health Status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2008 08:32 PM
тАО03-19-2008 08:32 PM
SolutionYou can use below query:
SELECT devices.OverallStatus, devices.Name, devices.ProductType FROM devices ORDER BY OverallStatus DESC
To see health status of devices. here health status are in integer format so to convert it use below:
0 - Unknown
1 - OK
2 - OK
3 - Minor
4 - Major
5 - Critical
6 -
7 -
8 -
9 - Disable
Hope u need only above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 12:00 AM
тАО03-20-2008 12:00 AM
Re: SIM : SQL-Query for System Health Status
Thx!
MiMe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 12:01 AM
тАО03-20-2008 12:01 AM